[Issue]
ICE appears when passing -mfloat-gprs=double for e500v2 target build with
gcc-4.8.1, the bug url is: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57717#c1
[Workaround]
Replace double-float with single-float for e500v2 build until the ICE is fixed
[TODO]
Revert the commit when the ICE bug is fixed.
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
MACHINE_FEATURES = "kernel26 pci ext2 ext3 serial"
MACHINE_EXTRA_RRECOMMENDS = "u-boot udev-extraconf"
+# FIXME
+# Workaround for ICE of gcc-4.8.x when passing -mfloat-gprs=double
+# Bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57717#c1
+# Replace double-float with single-float, revert the commit when above bug is fixed
+TUNE_CCARGS := "${@d.getVar('TUNE_CCARGS', True).replace('-mfloat-gprs=double', '-mfloat-gprs=single')}"
+
PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
PREFERRED_PROVIDER_linux-libc-headers ?= "linux-qoriq-sdk-headers"