X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=arch%2Farm%2FMakefile;h=42093c2b5e29baf825a882fc0ba3473e8b9be641;hb=4504062b271bf4d1cf256e4e87e156de6029e088;hp=5000d87fd0b193ffbce272863be9d4b19d7429d1;hpb=1cc95f6e1b38e96dfbb5ffb9aec211b1d0a88135;p=u-boot diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 5000d87fd0..42093c2b5e 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -20,6 +20,14 @@ arch-$(CONFIG_CPU_V7) =$(call cc-option, -march=armv7-a, \ $(call cc-option, -march=armv7, -march=armv5)) arch-$(CONFIG_ARM64) =-march=armv8-a +# On Tegra systems we must build SPL for the armv4 core on the device +# but otherwise we can use the value in CONFIG_SYS_ARM_ARCH +ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TEGRA),yy) +arch-y += -D__LINUX_ARM_ARCH__=4 +else +arch-y += -D__LINUX_ARM_ARCH__=$(CONFIG_SYS_ARM_ARCH) +endif + # Evaluate arch cc-option calls now arch-y := $(arch-y)