801-override-compiler-flags.patch 736 B

1234567891011
  1. --- a/arch/arm/Makefile
  2. +++ b/arch/arm/Makefile
  3. @@ -72,7 +72,7 @@ KBUILD_CFLAGS += $(call cc-option,-fno-i
  4. # macro, but instead defines a whole series of macros which makes
  5. # testing for a specific architecture or later rather impossible.
  6. arch-$(CONFIG_CPU_32v7M) =-D__LINUX_ARM_ARCH__=7 -march=armv7-m -Wa,-march=armv7-m
  7. -arch-$(CONFIG_CPU_32v7) =-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)
  8. +arch-$(CONFIG_CPU_32v7) =-D__LINUX_ARM_ARCH__=7 -mcpu=cortex-a15
  9. arch-$(CONFIG_CPU_32v6) =-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6)
  10. # Only override the compiler option if ARMv6. The ARMv6K extensions are
  11. # always available in ARMv7