summaryrefslogtreecommitdiff
path: root/src/ec/google
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-08-02 15:32:51 -0600
committerMartin Roth <martinroth@google.com>2016-08-08 17:36:12 +0200
commit09ae1d533edcb2db88f5b5d13984343b90cbe18c (patch)
tree4880f9501827182369cbf25331bb3acdbc5fc72d /src/ec/google
parent41ddd4fcc1d2f7f2eccfa2a5795da5d49e09f18d (diff)
downloadcoreboot-09ae1d533edcb2db88f5b5d13984343b90cbe18c.tar.xz
google/chromeec: Enable/Disable ccache with config variable
If the CONFIG_CCACHE variable is NOT set, define the CCACHE variable as blank on the Chrome EC make command line. This will overrride and disable the CCACHE variable in the Chrome EC makefile. Change-Id: Idb1da06941084cea104d77748820971edf151f7b Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/16035 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/ec/google')
-rw-r--r--src/ec/google/chromeec/Makefile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ec/google/chromeec/Makefile.inc b/src/ec/google/chromeec/Makefile.inc
index 66f3a887e1..b38d5b72ff 100644
--- a/src/ec/google/chromeec/Makefile.inc
+++ b/src/ec/google/chromeec/Makefile.inc
@@ -56,7 +56,7 @@ else
CONFIG_EC_GOOGLE_CHROMEEC_BOARDNAME := $(call strip_quotes,$(CONFIG_EC_GOOGLE_CHROMEEC_BOARDNAME))
$(obj)/mainboard/$(MAINBOARDDIR)/ecrw:
- $(MAKE) -C $(CHROMEEC_SOURCE) \
+ $(MAKE) -C $(CHROMEEC_SOURCE) $(if $(CONFIG_CCACHE),,CCACHE=) \
out=$(abspath $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_BOARDNAME)) \
CROSS_COMPILE=$(subst -cpp,-,$(CPP_arm)) \
HOST_CROSS_COMPILE= \
@@ -93,7 +93,7 @@ else
CONFIG_EC_GOOGLE_CHROMEEC_PD_BOARDNAME := $(call strip_quotes,$(CONFIG_EC_GOOGLE_CHROMEEC_PD_BOARDNAME))
$(obj)/mainboard/$(MAINBOARDDIR)/pdrw:
- $(MAKE) -C $(CHROMEEC_SOURCE) \
+ $(MAKE) -C $(CHROMEEC_SOURCE) $(if $(CONFIG_CCACHE),,CCACHE=) \
out=$(abspath $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_PD_BOARDNAME)) \
CROSS_COMPILE=$(subst -cpp,-,$(CPP_arm)) \
HOST_CROSS_COMPILE= \