toolchain.inc: Don't overwrite architecture specific CFLAGS
For almost all platforms the CFLAGS_<arch> specified in .xcompile were overwritten by toolchain.inc, effectively breaking the build in different places and in subtle ways. Change-Id: I8e1db0eee7ca417ec56ed2156ae1b0b318e57e81 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/10831 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
8e3997552a
commit
2941b28080
|
@ -62,17 +62,17 @@ ARCHDIR-arm64 := arm64
|
|||
ARCHDIR-riscv := riscv
|
||||
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_x86_32 += -ffunction-sections -fdata-sections
|
||||
CFLAGS_riscv := -ffunction-sections -fdata-sections
|
||||
CFLAGS_riscv += -ffunction-sections -fdata-sections
|
||||
|
||||
CFLAGS_x86_64 := -mcmodel=large
|
||||
CFLAGS_x86_64 += -mcmodel=large
|
||||
|
||||
toolchain_to_dir = \
|
||||
$(foreach arch,$(ARCH_SUPPORTED),\
|
||||
|
|
Loading…
Reference in New Issue