Stefan Reinauer (stefan.reinauer@coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8669
-gerrit
commit 613466c70d73ca4e6b6da461b3725f213a355922 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 --- util/xcompile/xcompile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 29cad28..d13358c 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -135,7 +135,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 @@ -168,7 +168,7 @@ EOF }
# Architecture definition -SUPPORTED_ARCHITECTURE="x86 arm arm64 riscv mipsel" +SUPPORTED_ARCHITECTURE="x86 x64 arm arm64 riscv mipsel"
arch_config_arm() { TARCH="arm" @@ -196,6 +196,14 @@ arch_config_riscv() { TABI="elf" }
+arch_config_x64() { + TARCH="x86_64" + TBFDARCH="x86-64" + TCLIST="x86_64" + TWIDTH="64" + TABI="elf" +} + arch_config_x86() { TARCH="x86_32" TBFDARCH="i386"