aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2015-03-26 21:39:12 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-03-26 23:43:42 +0100
commit1053f6571c3487375b80a591fc3dd6c4355162eb (patch)
treeb63e9082ddfc03000fcb51e59aac9175190fb412 /Makefile.inc
parenta7a3917d4839dbb4e2bbc9d452a75fd974e1ac35 (diff)
downloadcoreboot-1053f6571c3487375b80a591fc3dd6c4355162eb.tar.gz
coreboot-1053f6571c3487375b80a591fc3dd6c4355162eb.tar.xz
coreboot-1053f6571c3487375b80a591fc3dd6c4355162eb.zip
build system: Test gccs that are actually used
Test that the compilers used for the target are built by our buildgcc utility. Users can override this test with the ANY_TOOLCHAIN Kconfig variable. Change-Id: I24adf2c9b83667fd34ce8eb103327c9376765f6d Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/9055 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc15
1 files changed, 0 insertions, 15 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 8d732ea3e..2877a62c6 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -26,21 +26,6 @@ export KERNELVERSION := $(strip $(if $(GIT),\
4.0$(KERNELREVISION)))
#######################################################################
-# Test for coreboot toolchain (except when explicitely not requested)
-ifneq ($(NOCOMPILE),1)
-# only run if we're doing a build (not for tests, kconfig, ...), using gcc
-# rationale: gcc versions by Linux distributions tend to be quite messed up
-ifeq ($(CONFIG_COMPILER_GCC),y)
-ifneq ($(CONFIG_ANY_TOOLCHAIN),y)
-_toolchain=$(shell $(CC_x86_32) -v 2>&1 |grep -q "gcc version .*coreboot toolchain" && echo coreboot)
-ifneq ($(_toolchain),coreboot)
-$(error Please use the coreboot toolchain (or prove that your toolchain works))
-endif
-endif
-endif
-endif
-
-#######################################################################
# Basic component discovery
MAINBOARDDIR=$(call strip_quotes,$(CONFIG_MAINBOARD_DIR))
export MAINBOARDDIR