Patrick Georgi (pgeorgi@google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8669
-gerrit
commit 3571e16e18036fb0c495f6f68d55aa1590a304bc Author: Stefan Reinauer stefan.reinauer@coreboot.org Date: Fri Mar 13 22:52:47 2015 +0100
xcompile: add support for x86-64
Add support for detecting an x86-64 cross compiler in xcompile.
Change-Id: Icd2c9af7903956216db1fd54902eab6da0fe3e21 Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org Signed-off-by: Scott Duplichan scott@notabs.org --- util/xcompile/xcompile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 28b3d26..2056fe3 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -137,7 +137,7 @@ detect_special_flags() { CFLAGS="$CFLAGS -Wl,--build-id=none"
case "$architecture" in - x86) + x86|x64) testcc "$CC" "$CFLAGS -Wa,--divide" && CFLAGS="$CFLAGS -Wa,--divide" # Always build for i686 -- no sse/mmx instructions since SMM @@ -179,7 +179,7 @@ EOF }
# Architecture definitions -SUPPORTED_ARCHITECTURES="arm arm64 mipsel riscv x86" +SUPPORTED_ARCHITECTURES="arm arm64 mipsel riscv x64 x86"
arch_config_arm() { TARCH="arm" @@ -207,6 +207,14 @@ arch_config_riscv() { TABI="elf" }
+arch_config_x64() { + TARCH="x86_64" + TBFDARCHS="x86-64" + TCLIST="x86_64" + TWIDTH="64" + TABI="elf" +} + arch_config_x86() { TARCH="x86_32" TBFDARCHS="i386"