summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2015-04-09 18:15:09 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-05-04 15:03:10 +0200
commite9b7e25708db1eb234c87def87a8e4e9b5c03b28 (patch)
tree7765a4b12397cdce24c4e07ecb795af8b319a50d /util
parent939dc8492ae80858575db3e808baf18f5ab651a0 (diff)
downloadcoreboot-e9b7e25708db1eb234c87def87a8e4e9b5c03b28.tar.xz
util/xcompile/xcompile: Allow to override `HOSTCC` variable
Currently `xcompile` generates `.xcompile` with the following at the top. # platform agnostic and host tools IASL:=iasl HOSTCC:=gcc The assignment `:=` doesn’t allow to override the variable. So use `?=` instead so the host compiler can be passed to coreboot. HOSTCC=gcc-5 make Note, that this is just a hack, as the existence of `gcc` is checked beforehand. Change-Id: Iebf3e43eb7eaffa7cf0efe97710d9feb3fe2a989 Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/9457 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index e079c9d81d..ebc346b56f 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -63,7 +63,7 @@ fi
cat <<EOF
# platform agnostic and host tools
IASL:=${IASL}
-HOSTCC:=${HOSTCC}
+HOSTCC?=${HOSTCC}
EOF