summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-07-07 23:37:11 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-07-08 08:09:04 +0200
commit2941b28080fff82503484a99c3fa740a01bb30cc (patch)
treeedd6d403a2a878dffc0b5e4c2e90357adaae0aa3
parent8e3997552ac0483f2de56a5dcce093bbfb8cfd0b (diff)
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>
-rw-r--r--toolchain.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/toolchain.inc b/toolchain.inc
index a26da477a8..3e28bb9d0b 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -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),\