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.
 
 
 
 
 
 

112 lines
3.4 KiB

  1. # SPDX-License-Identifier: GPL-2.0+
  2. ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TEGRA),yy)
  3. CONFIG_CPU_V7=
  4. CONFIG_CPU_ARM720T=y
  5. endif
  6. # This selects which instruction set is used.
  7. arch-$(CONFIG_CPU_ARM720T) =-march=armv4
  8. arch-$(CONFIG_CPU_ARM920T) =-march=armv4t
  9. arch-$(CONFIG_CPU_ARM926EJS) =-march=armv5te
  10. arch-$(CONFIG_CPU_ARM946ES) =-march=armv5te
  11. arch-$(CONFIG_CPU_SA1100) =-march=armv4
  12. arch-$(CONFIG_CPU_PXA) =
  13. arch-$(CONFIG_CPU_ARM1136) =-march=armv5
  14. arch-$(CONFIG_CPU_ARM1176) =-march=armv5t
  15. arch-$(CONFIG_CPU_V7) =$(call cc-option, -march=armv7-a, \
  16. $(call cc-option, -march=armv7, -march=armv5))
  17. arch-$(CONFIG_ARM64) =-march=armv8-a
  18. # On Tegra systems we must build SPL for the armv4 core on the device
  19. # but otherwise we can use the value in CONFIG_SYS_ARM_ARCH
  20. ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TEGRA),yy)
  21. arch-y += -D__LINUX_ARM_ARCH__=4
  22. else
  23. arch-y += -D__LINUX_ARM_ARCH__=$(CONFIG_SYS_ARM_ARCH)
  24. endif
  25. # Evaluate arch cc-option calls now
  26. arch-y := $(arch-y)
  27. # This selects how we optimise for the processor.
  28. tune-$(CONFIG_CPU_ARM720T) =-mtune=arm7tdmi
  29. tune-$(CONFIG_CPU_ARM920T) =
  30. tune-$(CONFIG_CPU_ARM926EJS) =
  31. tune-$(CONFIG_CPU_ARM946ES) =
  32. tune-$(CONFIG_CPU_SA1100) =-mtune=strongarm1100
  33. tune-$(CONFIG_CPU_PXA) =-mcpu=xscale
  34. tune-$(CONFIG_CPU_ARM1136) =
  35. tune-$(CONFIG_CPU_ARM1176) =
  36. tune-$(CONFIG_CPU_V7) =
  37. tune-$(CONFIG_ARM64) =
  38. # Evaluate tune cc-option calls now
  39. tune-y := $(tune-y)
  40. PLATFORM_CPPFLAGS += $(arch-y) $(tune-y)
  41. # Machine directory name. This list is sorted alphanumerically
  42. # by CONFIG_* macro name.
  43. machine-$(CONFIG_ARCH_ASPEED) += aspeed
  44. machine-$(CONFIG_ARCH_AT91) += at91
  45. machine-$(CONFIG_ARCH_BCM283X) += bcm283x
  46. machine-$(CONFIG_ARCH_DAVINCI) += davinci
  47. machine-$(CONFIG_ARCH_EXYNOS) += exynos
  48. machine-$(CONFIG_ARCH_HIGHBANK) += highbank
  49. machine-$(CONFIG_ARCH_KEYSTONE) += keystone
  50. # TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD
  51. machine-$(CONFIG_KIRKWOOD) += kirkwood
  52. machine-$(CONFIG_ARCH_MESON) += meson
  53. machine-$(CONFIG_ARCH_MVEBU) += mvebu
  54. # TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
  55. # TODO: rename CONFIG_ORION5X -> CONFIG_ARCH_ORION5X
  56. machine-$(CONFIG_ORION5X) += orion5x
  57. machine-$(CONFIG_ARCH_OMAP2PLUS) += omap2
  58. machine-$(CONFIG_ARCH_S5PC1XX) += s5pc1xx
  59. machine-$(CONFIG_ARCH_SUNXI) += sunxi
  60. machine-$(CONFIG_ARCH_SNAPDRAGON) += snapdragon
  61. machine-$(CONFIG_ARCH_SOCFPGA) += socfpga
  62. machine-$(CONFIG_ARCH_RMOBILE) += rmobile
  63. machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip
  64. machine-$(CONFIG_STM32) += stm32
  65. machine-$(CONFIG_ARCH_STM32MP) += stm32mp
  66. machine-$(CONFIG_TEGRA) += tegra
  67. machine-$(CONFIG_ARCH_UNIPHIER) += uniphier
  68. machine-$(CONFIG_ARCH_ZYNQ) += zynq
  69. machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
  70. PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
  71. libs-y += $(machdirs)
  72. head-y := arch/arm/cpu/$(CPU)/start.o
  73. ifeq ($(CONFIG_SPL_BUILD),y)
  74. ifneq ($(CONFIG_SPL_START_S_PATH),)
  75. head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
  76. endif
  77. endif
  78. libs-y += arch/arm/cpu/$(CPU)/
  79. libs-y += arch/arm/cpu/
  80. libs-y += arch/arm/lib/
  81. ifeq ($(CONFIG_SPL_BUILD),y)
  82. ifneq (,$(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_MX35)$(filter $(SOC), mx25 mx5 mx6 mx7 mx35 mx8m))
  83. libs-y += arch/arm/mach-imx/
  84. endif
  85. else
  86. ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx7 mx7ulp mx31 mx35 mxs mx8m vf610))
  87. libs-y += arch/arm/mach-imx/
  88. endif
  89. endif
  90. ifneq (,$(filter $(SOC), kirkwood))
  91. libs-y += arch/arm/mach-mvebu/
  92. endif
  93. # deprecated
  94. -include $(machdirs)/config.mk