Patrick Georgi (pgeorgi@google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8690
-gerrit
commit 654f70181727e1c22dfd3626c5f8f19b62e929fb Author: Stefan Reinauer stefan.reinauer@coreboot.org Date: Sun Mar 15 04:19:58 2015 +0100
toolchain.inc: Add x86-64 support
For now, share code with x86, and use the "large" code model. Also align the architecture specific CFLAGS in toolchain.inc for cosmetics.
Change-Id: Ie84893d3460115802fbd70c28b10e709029c6b4e Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org Signed-off-by: Scott Duplichan scott@notabs.org --- toolchain.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/toolchain.inc b/toolchain.inc index e089f2e..84aa7fc 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -56,6 +56,7 @@ MAP-libverstage := verstage
ARCHDIR-i386 := x86 ARCHDIR-x86_32 := x86 +ARCHDIR-x86_64 := x86 ARCHDIR-arm := arm ARCHDIR-arm64 := arm64 ARCHDIR-riscv := riscv @@ -63,7 +64,7 @@ ARCHDIR-mips := mips
CFLAGS_arm := -ffunction-sections -fdata-sections
-CFLAGS_arm64 := -ffunction-sections -fdata-sections +CFLAGS_arm64 := -ffunction-sections -fdata-sections
CFLAGS_mips := -mips32r2 -G 0 -ffunction-sections -fdata-sections CFLAGS_mips += -mno-abicalls -fno-pic @@ -71,6 +72,8 @@ CFLAGS_mips += -mno-abicalls -fno-pic CFLAGS_x86_32 += -ffunction-sections -fdata-sections CFLAGS_riscv := -ffunction-sections -fdata-sections
+CFLAGS_x86_64 := -mcmodel=large + toolchain_to_dir = \ $(foreach arch,$(ARCH_SUPPORTED),\ $(eval CPPFLAGS_$(arch) += \