summaryrefslogtreecommitdiff
path: root/src/ec/google/chromeec/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/google/chromeec/Makefile.inc')
-rw-r--r--src/ec/google/chromeec/Makefile.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ec/google/chromeec/Makefile.inc b/src/ec/google/chromeec/Makefile.inc
index 58f8b6b139..4f310c88a3 100644
--- a/src/ec/google/chromeec/Makefile.inc
+++ b/src/ec/google/chromeec/Makefile.inc
@@ -53,8 +53,10 @@ pdrw.hash-file := $(obj)/mainboard/$(MAINBOARDDIR)/pdrw.hash
pdrw.hash-name := pdrw.hash
pdrw.hash-type := raw
+CHROMEEC_SOURCE ?= $(top)/3rdparty/chromeec
+
$(obj)/mainboard/$(MAINBOARDDIR)/ecrw:
- $(MAKE) -C $(top)/3rdparty/chromeec \
+ $(MAKE) -C $(CHROMEEC_SOURCE) \
out=$(abspath $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_BOARDNAME)) \
CROSS_COMPILE=$(subst -cpp,-,$(CPP_arm)) \
HOST_CROSS_COMPILE= \
@@ -63,7 +65,7 @@ $(obj)/mainboard/$(MAINBOARDDIR)/ecrw:
cp $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_BOARDNAME)/RW/ec.RW.flat $@
$(obj)/mainboard/$(MAINBOARDDIR)/pdrw:
- $(MAKE) -C $(top)/3rdparty/chromeec \
+ $(MAKE) -C $(CHROMEEC_SOURCE) \
out=$(abspath $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_PD_BOARDNAME)) \
CROSS_COMPILE=$(subst -cpp,-,$(CPP_arm)) \
HOST_CROSS_COMPILE= \