summaryrefslogtreecommitdiff
path: root/util/xcompile
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-06-20 14:33:28 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2017-06-26 23:14:05 +0000
commit6796d787c5355b0d86d753b0df13fe128ed12a15 (patch)
treee8a1d1714991440ac1ec2ef0b8502cecacddea7f /util/xcompile
parent08bb837268fb6d5ce84d07c8d9fe0ef4d56ac479 (diff)
libpayload: Enable building libpayload with march=i586
Add a Kconfig value to enable building libpayload with the 586 compiler. Update the cross compiler script to add the Kconfig value name that is used when libpayload builds. The Quark SOC does not support some of the instructions generated with the 686 compiler (e.g. CMOV). Success occurs when payloads/libpayload/build/config.h indicates that CONFIG_LP_USE_MARCH_586=1. TEST=Build and run on Galileo Gen2. Change-Id: I04907e9a38ee139bae2e8b227821f54614707c25 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/20322 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/xcompile')
-rwxr-xr-xutil/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 63f1ca9cf5..7e2d6b3480 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -239,7 +239,7 @@ EOF
if [ "${TARCH}" = "x86_64" ] || [ "${TARCH}" = "x86_32" ]; then
cat <<EOF
-ifeq (\$(CONFIG_USE_MARCH_586),y)
+ifneq (\$(CONFIG_USE_MARCH_586)\$(CONFIG_LP_USE_MARCH_586),)
GCC_CFLAGS_${TARCH} += -march=i586
else
GCC_CFLAGS_${TARCH} += -march=i686