summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-03-15 04:19:58 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-16 02:47:10 +0200
commit465911399df45972c87131bdcefb70b65dc82d77 (patch)
tree7fbdf9d95895a970010725bf0e0cbeaa7e659aff
parent7577c13cb63c6684755b513420d3956b09d27f18 (diff)
downloadcoreboot-465911399df45972c87131bdcefb70b65dc82d77.tar.xz
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> Reviewed-on: http://review.coreboot.org/8690 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rw-r--r--toolchain.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/toolchain.inc b/toolchain.inc
index 8b7b30abf0..a26da477a8 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) += \