toolchain.inc: Improve help messages for coreboot toolchain
Show better help text on how to compile the coreboot toolchain or use an unsupported toolchain. Change-Id: I64a2159d324d673784669b2464c1a2769b048678 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/12557 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
74d165b18d
commit
335a9b61b3
|
@ -155,10 +155,16 @@ ifeq ($(CONFIG_COMPILER_GCC),y)
|
||||||
ifneq ($(CONFIG_ANY_TOOLCHAIN),y)
|
ifneq ($(CONFIG_ANY_TOOLCHAIN),y)
|
||||||
$(foreach arch,$(sort $(foreach stage,$(COREBOOT_STANDARD_STAGES),$(ARCH-$(stage)-y))), \
|
$(foreach arch,$(sort $(foreach stage,$(COREBOOT_STANDARD_STAGES),$(ARCH-$(stage)-y))), \
|
||||||
$(if $(shell $(CC_$(arch)) -v 2>&1 |grep -q "gcc version .*coreboot toolchain" || echo not-coreboot), \
|
$(if $(shell $(CC_$(arch)) -v 2>&1 |grep -q "gcc version .*coreboot toolchain" || echo not-coreboot), \
|
||||||
$(eval COMPILERFAIL:=1)$(warning Please use the coreboot toolchain for '$(arch)' (or prove that your toolchain works))))
|
$(eval COMPILERFAIL:=1)$(warning Please use the coreboot toolchain for '$(arch)')))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(COMPILERFAIL),1)
|
ifeq ($(COMPILERFAIL),1)
|
||||||
$(error consider building our compilers: make crossgcc)
|
$(warning )
|
||||||
|
$(warning To build the entire coreboot toolchain: make crossgcc)
|
||||||
|
$(warning For more toolchain build targets: make help_toolchain)
|
||||||
|
$(warning )
|
||||||
|
$(warning *** To try to use your own toolchain, run 'make menuconfig', then select the)
|
||||||
|
$(warning *** config option: General setup -> Allow building with any toolchain)
|
||||||
|
$(error Note that this is NOT supported. Using it means you're on your own)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue