[coreboot] r3995 - trunk/coreboot-v2/src/config

svn at coreboot.org svn at coreboot.org
Wed Mar 11 16:36:39 CET 2009

Author: stepan
Date: 2009-03-11 16:36:39 +0100 (Wed, 11 Mar 2009)
New Revision: 3995

Create a variable "GCC", which defaults to the content of CC, but allows
the user to provide a gcc to use in this instance, even when normally a
different tool is chosen. That helps with scan-build (see next patch),
and might help with distcc, ccache etc, too.

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>

Modified: trunk/coreboot-v2/src/config/Config.lb
--- trunk/coreboot-v2/src/config/Config.lb	2009-03-11 15:35:22 UTC (rev 3994)
+++ trunk/coreboot-v2/src/config/Config.lb	2009-03-11 15:36:39 UTC (rev 3995)
@@ -6,7 +6,8 @@
 makedefine CPP:= $(CC) -x assembler-with-cpp -DASSEMBLY -E
 makedefine LIBGCC_FILE_NAME := $(shell $(CC) -print-libgcc-file-name)
-makedefine GCC_INC_DIR := $(shell LC_ALL=C $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")
+makedefine GCC ?= $(CC)
+makedefine GCC_INC_DIR := $(shell LC_ALL=C $(GCC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")
 makedefine CPPFLAGS := -I$(TOP)/src/include -I$(TOP)/src/arch/$(ARCH)/include -I$(GCC_INC_DIR) $(CPUFLAGS)
 makedefine CFLAGS := $(CPU_OPT) $(DISTRO_CFLAGS) $(CPPFLAGS) -Os -nostdinc -nostdlib -fno-builtin  -Wall

More information about the coreboot mailing list