]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: Add -mfpu=neon to PLATFORM_RELFLAGS
authorMike Looijmans <mike.looijmans@topic.nl>
Tue, 28 Jan 2014 06:26:18 +0000 (07:26 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 31 Jan 2014 08:35:23 +0000 (09:35 +0100)
Fixes the following compiler error when using a GNU toolchain:
lowlevel_init.S:19: Error: selected processor does not support ARM mode `fmrx r1,FPEXC'
lowlevel_init.S:21: Error: selected processor does not support ARM mode `fmxr FPEXC,r1'

See also
http://forums.xilinx.com/t5/Embedded-Linux/Current-U-boot-master-u-boot-xlnx-fails-to-build-on-GNU/td-p/407205

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv7/zynq/config.mk

index 9f90a2e65bee5ce320c03c6de897c2e94e1fceb4..9640433ecf528f47bded4bcf8479c4a2d402ea04 100644 (file)
@@ -6,3 +6,5 @@
 PLATFORM_RELFLAGS += -fno-strict-aliasing
 # Xilinx, added to prevent unaligned accesses which started happening # with GCC 4.5.2 tools
 PLATFORM_RELFLAGS += -mno-unaligned-access
+# Allow NEON instructions (needed for lowlevel_init.S with GNU toolchain)
+PLATFORM_RELFLAGS += -mfpu=neon