summaryrefslogtreecommitdiffstats
path: root/toolchain.inc
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2015-12-07 14:24:57 -0700
committerMartin Roth <martinroth@google.com>2016-01-04 16:53:03 +0100
commit5981a63a9f577a83501bed252330f2ceb07ca752 (patch)
tree59c2c52ba4f59be15dfd35b829787e901631ba4e /toolchain.inc
parent73b7997ba465ed345de84ee8d9e062fdf4ad5a07 (diff)
downloadcoreboot-5981a63a9f577a83501bed252330f2ceb07ca752.tar.gz
coreboot-5981a63a9f577a83501bed252330f2ceb07ca752.tar.bz2
coreboot-5981a63a9f577a83501bed252330f2ceb07ca752.zip
toolchain.inc: Skip how to use any toolchain if it's selected
If ANY_TOOLCHAIN is selected, don't bother telling the user how to do what they've already done. Change-Id: I7182d18a91e832aa56638ec64fe8b3b0c38cff7a Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/12679 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'toolchain.inc')
-rw-r--r--toolchain.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/toolchain.inc b/toolchain.inc
index ef3ae166417d..7a0864eeade6 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -174,9 +174,13 @@ $(warning To build just IASL: make iasl)
endif #($(IASLFAIL),1)
$(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)
+ifneq ($(CONFIG_ANY_TOOLCHAIN),y)
+$(warning To try to use any toolchain in your path, run 'make menuconfig', then select)
+$(warning the config option: 'General setup', and 'Allow building with any toolchain')
+$(warning Note that this is NOT supported. Using it means you're on your own.)
+$(warning )
+endif #($(CONFIG_ANY_TOOLCHAIN),y)
+$(error Halting the build)
endif #($(COMPILERFAIL),1)
endif #($(NOCOMPILE),1)