]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: only allow kernel mode neon with AEABI
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 22 Sep 2013 10:08:50 +0000 (11:08 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 22 Sep 2013 10:08:50 +0000 (11:08 +0100)
This prevents the linker erroring with:

arm-linux-ld: error: arch/arm/lib/xor-neon.o uses VFP instructions, whereas arch/arm/lib/built-in.o does not
arm-linux-ld: failed to merge target specific data of file arch/arm/lib/xor-neon.o

This is due to the non-neon files being marked as containing FPA data/
instructions (even though they do not) being mixed with files which
contain VFP, which is an incompatible floating point format.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig

index 3f7714d8d2d216bf3bbd7b4a5b227ea982997554..1ad6fb6c094db415ec76a72a28356e75bdfd7d17 100644 (file)
@@ -2217,8 +2217,7 @@ config NEON
 
 config KERNEL_MODE_NEON
        bool "Support for NEON in kernel mode"
-       default n
-       depends on NEON
+       depends on NEON && AEABI
        help
          Say Y to include support for NEON in kernel mode.