From 1053f6571c3487375b80a591fc3dd6c4355162eb Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 26 Mar 2015 21:39:12 +0100 Subject: 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 Reviewed-on: http://review.coreboot.org/9055 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Stefan Reinauer --- Makefile.inc | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'Makefile.inc') diff --git a/Makefile.inc b/Makefile.inc index 8d732ea3e0..2877a62c6c 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -25,21 +25,6 @@ export KERNELVERSION := $(strip $(if $(GIT),\ $(shell git describe --dirty --always || git describe),\ 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)) -- cgit v1.2.3