summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2015-11-25 12:44:15 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-12-02 02:01:45 +0100
commit335a9b61b3856486645727dfdef8ed32b036c860 (patch)
treef21bb34eb4a2d13fd6981a9a6e995d09f2b18742
parent74d165b18d749bf959f717b37ea67b84066271d6 (diff)
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>
-rw-r--r--toolchain.inc10
1 files 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