[coreboot-gerrit] Patch set updated for coreboot: 4a2277f xcompile: add support for x86-64

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Sat Mar 14 21:45:23 CET 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8669

-gerrit

commit 4a2277f2803783f8ace5a6b8bef868a9a15929fd
Author: Stefan Reinauer <stefan.reinauer at 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 at coreboot.org>
    Signed-off-by: Scott Duplichan <scott at notabs.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"



More information about the coreboot-gerrit mailing list