libpayload: Enable building libpayload with march=i586

Hardware / Coreboot - Lee Leahy [intel.com] - 26 June 2017 19:14 EDT

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

6796d78 libpayload: Enable building libpayload with march=i586
payloads/libpayload/Kconfig | 8 ++++++++
util/xcompile/xcompile | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)

Upstream: review.coreboot.org


  • Share