From 6796d787c5355b0d86d753b0df13fe128ed12a15 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 20 Jun 2017 14:33:28 -0700 Subject: [PATCH] libpayload: Enable building libpayload with march=i586 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/20322 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Martin Roth --- payloads/libpayload/Kconfig | 8 ++++++++ util/xcompile/xcompile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/payloads/libpayload/Kconfig b/payloads/libpayload/Kconfig index dcb1f4e721..5a5bce2a64 100644 --- a/payloads/libpayload/Kconfig +++ b/payloads/libpayload/Kconfig @@ -157,6 +157,14 @@ config BASE_ADDRESS endmenu +config USE_MARCH_586 + bool "Use march=586 qualifier to build" + default n + depends on ARCH_X86 + help + Allow a platform or processor to select to be compiled using + the '-march=i586' option instead of the typical '-march=i686' + menu "Standard Libraries" config LIBC 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 <