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>
This commit is contained in:
@@ -84,6 +84,7 @@ set_stage_toolchain= \
|
|||||||
# @2: compiler set to be used
|
# @2: compiler set to be used
|
||||||
# e.g.: smm special class uses i386 as compiler set
|
# e.g.: smm special class uses i386 as compiler set
|
||||||
define create_class_compiler
|
define create_class_compiler
|
||||||
|
$(if $(2),,$(error building $(1) without the required toolchain))
|
||||||
CC_$(1) := $(CC_$(2))
|
CC_$(1) := $(CC_$(2))
|
||||||
LD_$(1) := $(LD_$(2))
|
LD_$(1) := $(LD_$(2))
|
||||||
NM_$(1) := $(NM_$(2))
|
NM_$(1) := $(NM_$(2))
|
||||||
|
Reference in New Issue
Block a user