build/patch/u-boot/legacy/board_odroidxu4/use-armv7a-for-modern-toolchain.patch

18 lines
718 B
Diff

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 3e93fd6e..46dfcbc5 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -14,10 +14,10 @@ arch-$(CONFIG_CPU_ARM926EJS) =-march=armv5te
arch-$(CONFIG_CPU_ARM946ES) =-march=armv5te
arch-$(CONFIG_CPU_SA1100) =-march=armv4
arch-$(CONFIG_CPU_PXA) =
-arch-$(CONFIG_CPU_ARM1136) =-march=armv5
+arch-$(CONFIG_CPU_ARM1136) =-march=armv7-a
arch-$(CONFIG_CPU_ARM1176) =-march=armv5t
arch-$(CONFIG_CPU_V7) =$(call cc-option, -march=armv7-a, \
- $(call cc-option, -march=armv7, -march=armv5))
+ $(call cc-option, -march=armv7, -march=armv7-a))
arch-$(CONFIG_ARM64) =-march=armv8-a
# On Tegra systems we must build SPL for the armv4 core on the device