aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain.inc
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@se-eng.com>2015-01-22 16:18:49 +0800
committerMarc Jones <marc.jones@se-eng.com>2015-01-26 08:08:34 +0100
commitd1f840be86a8af750c7b7a44907e842d7a28a061 (patch)
treef07727e1ec41a595c1ccc2ff070d4ea885695af8 /toolchain.inc
parent5ec1153200c70138eb7ee9b36f5c1032bf310a22 (diff)
downloadcoreboot-d1f840be86a8af750c7b7a44907e842d7a28a061.tar.gz
coreboot-d1f840be86a8af750c7b7a44907e842d7a28a061.tar.xz
coreboot-d1f840be86a8af750c7b7a44907e842d7a28a061.zip
toolchain.inc: Check toolchain is installed before running it
Toolchain.inc fails with strange shell errors if the CC_$(stage) doesn't expands correctly. The cause is that the ARCH_SUPPORTED doesn't have the required toolchain for the stage. Change-Id: Id284ce281546b2b1b166f2b13d087bc6b114440e Signed-off-by: Marc Jones <marc.jones@se-eng.com> Reviewed-on: http://review.coreboot.org/8257 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'toolchain.inc')
-rw-r--r--toolchain.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolchain.inc b/toolchain.inc
index b54d95935..73f08323a 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -84,6 +84,7 @@ set_stage_toolchain= \
# @2: compiler set to be used
# e.g.: smm special class uses i386 as compiler set
define create_class_compiler
+$(if $(2),,$(error building $(1) without the required toolchain))
CC_$(1) := $(CC_$(2))
LD_$(1) := $(LD_$(2))
NM_$(1) := $(NM_$(2))