From 335a9b61b3856486645727dfdef8ed32b036c860 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Wed, 25 Nov 2015 12:44:15 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/12557 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- toolchain.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/toolchain.inc b/toolchain.inc index 0f3da83973..e35b5b5fa5 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -155,10 +155,16 @@ ifeq ($(CONFIG_COMPILER_GCC),y) ifneq ($(CONFIG_ANY_TOOLCHAIN),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), \ - $(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 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 -- cgit v1.2.3