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>
This commit is contained in:
Stefan Reinauer 2015-03-15 04:19:58 +01:00
parent 7577c13cb6
commit 465911399d
1 changed files with 4 additions and 1 deletions

View File

@ -56,6 +56,7 @@ MAP-libverstage := verstage
ARCHDIR-i386 := x86 ARCHDIR-i386 := x86
ARCHDIR-x86_32 := x86 ARCHDIR-x86_32 := x86
ARCHDIR-x86_64 := x86
ARCHDIR-arm := arm ARCHDIR-arm := arm
ARCHDIR-arm64 := arm64 ARCHDIR-arm64 := arm64
ARCHDIR-riscv := riscv ARCHDIR-riscv := riscv
@ -63,7 +64,7 @@ ARCHDIR-mips := mips
CFLAGS_arm := -ffunction-sections -fdata-sections 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 := -mips32r2 -G 0 -ffunction-sections -fdata-sections
CFLAGS_mips += -mno-abicalls -fno-pic CFLAGS_mips += -mno-abicalls -fno-pic
@ -71,6 +72,8 @@ CFLAGS_mips += -mno-abicalls -fno-pic
CFLAGS_x86_32 += -ffunction-sections -fdata-sections CFLAGS_x86_32 += -ffunction-sections -fdata-sections
CFLAGS_riscv := -ffunction-sections -fdata-sections CFLAGS_riscv := -ffunction-sections -fdata-sections
CFLAGS_x86_64 := -mcmodel=large
toolchain_to_dir = \ toolchain_to_dir = \
$(foreach arch,$(ARCH_SUPPORTED),\ $(foreach arch,$(ARCH_SUPPORTED),\
$(eval CPPFLAGS_$(arch) += \ $(eval CPPFLAGS_$(arch) += \