Author: oxygene Date: Sat Sep 25 00:15:54 2010 New Revision: 5836 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5836
Log: Fix CCACHE handling, and make use of ccache's BASEDIR feature
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de Acked-by: Myles Watson mylesgw@gmail.com Acked-by: Peter Stuge peter@stuge.se
Modified: trunk/Makefile
Modified: trunk/Makefile ============================================================================== --- trunk/Makefile Fri Sep 24 20:42:56 2010 (r5835) +++ trunk/Makefile Sat Sep 25 00:15:54 2010 (r5836) @@ -88,7 +88,7 @@
else
-include $(top)/.config +include $(HAVE_DOTCONFIG)
ifneq ($(INNER_SCANBUILD),y) ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y) @@ -98,10 +98,11 @@ endif
ifeq ($(CONFIG_CCACHE),y) -CCACHE:=CCACHE_COMPILERCHECK=content $(wildcard $(addsuffix /ccache,$(subst :, ,$(PATH)))) +CCACHE:=$(wildcard $(addsuffix /ccache,$(subst :, ,$(PATH)))) ifeq ($(CCACHE),) $(error ccache selected, but not found in PATH) endif +CCACHE:=CCACHE_COMPILERCHECK=content CCACHE_BASEDIR=$(top) $(CCACHE) CC := $(CCACHE) $(CC) HOSTCC := $(CCACHE) $(HOSTCC) HOSTCXX := $(CCACHE) $(HOSTCXX)