Fork of the vendor (Boundary Devices) u-boot for Reform 2, with minor tweaks. The goal is to migrate to mainstream u-boot or barebox ASAP. The main impediment so far is the 4GB RAM config.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

59 lines
1.1 KiB

  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  4. ifndef CONFIG_CPU_BIG_ENDIAN
  5. CONFIG_SYS_LITTLE_ENDIAN = 1
  6. else
  7. CONFIG_SYS_BIG_ENDIAN = 1
  8. endif
  9. ifdef CONFIG_SYS_LITTLE_ENDIAN
  10. ARC_CROSS_COMPILE := arc-linux-
  11. PLATFORM_LDFLAGS += -EL
  12. PLATFORM_CPPFLAGS += -mlittle-endian
  13. endif
  14. ifdef CONFIG_SYS_BIG_ENDIAN
  15. ARC_CROSS_COMPILE := arceb-linux-
  16. PLATFORM_LDFLAGS += -EB
  17. PLATFORM_CPPFLAGS += -mbig-endian
  18. endif
  19. ifeq ($(CROSS_COMPILE),)
  20. CROSS_COMPILE := $(ARC_CROSS_COMPILE)
  21. endif
  22. ifdef CONFIG_ARC_MMU_VER
  23. CONFIG_MMU = 1
  24. endif
  25. ifdef CONFIG_CPU_ARC750D
  26. PLATFORM_CPPFLAGS += -mcpu=arc700
  27. endif
  28. ifdef CONFIG_CPU_ARC770D
  29. PLATFORM_CPPFLAGS += -mcpu=arc700 -mlock -mswape
  30. endif
  31. ifdef CONFIG_CPU_ARCEM6
  32. PLATFORM_CPPFLAGS += -mcpu=arcem
  33. endif
  34. ifdef CONFIG_CPU_ARCHS34
  35. PLATFORM_CPPFLAGS += -mcpu=archs
  36. endif
  37. ifdef CONFIG_CPU_ARCHS38
  38. PLATFORM_CPPFLAGS += -mcpu=archs
  39. endif
  40. PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
  41. PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
  42. # Needed for relocation
  43. LDFLAGS_FINAL += -pie --gc-sections
  44. # Load address for standalone apps
  45. CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000