Skip to content

Commit 6c781bb

Browse files
committed
Tweak GCC compile flags
1 parent cf013c5 commit 6c781bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Kernel/arch/arm/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ comma = ,
5050
# Note that GCC does not numerically define an architecture version
5151
# macro, but instead defines a whole series of macros which makes
5252
# testing for a specific architecture or later rather impossible.
53-
arch-$(CONFIG_CPU_32v7) :=-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)
53+
#arch-$(CONFIG_CPU_32v7) :=-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)
54+
arch-$(CONFIG_CPU_32v7) :=-D__LINUX_ARM_ARCH__=7 -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp
5455
arch-$(CONFIG_CPU_32v6) :=-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6)
5556
# Only override the compiler option if ARMv6. The ARMv6K extensions are
5657
# always available in ARMv7

0 commit comments

Comments
 (0)