armbian_build/patch/u-boot/legacy/u-boot-imx6/use-armv7a-for-modern-toolchain.patch
Ricardo Pardini 522917bb8f
armbian-next: clearfog/cubox/odroidxu4: patching Makefile armv5 to armv7-a so uboot compiles with modern gcc
- have absolutely no idea if this works. there's also some other `armv5` variants to try if this does not.
- XU4's CPU is Exynos5422 ARM Cortex-A15 which should be armv7-a indeed, so why not?
- i.MX 6 series is ARM Cortex-A9 or Cortex-A7, which should be armv7-a indeed, so why not?
- ARMADA A388 is 32-bit Cortex A9, which should be armv7-a indeed, so why not?
2023-02-18 07:41:30 -03:00

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