summaryrefslogtreecommitdiff
path: root/src/ec/google/chromeec
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2016-07-20 18:38:54 +0200
committerMartin Roth <martinroth@google.com>2016-07-27 17:25:49 +0200
commit94938fb2a8ed7685b9e5ff6b8cc06e9264b68054 (patch)
tree7b5c07cd991292678e51253af2f4bd367fc5c4f7 /src/ec/google/chromeec
parent5f4b4c42964445d1bc517c461090f17655e84131 (diff)
chromeec: Use CHROMEEC_SOURCE with fallback instead of hardcoding path
This introduces a CHROMEEC_SOURCE variable used for indicating the CrOS EC source path, with a fallback to 3rdparty/chromeec. This allows specifying an external path for the CrOS EC source path. Change-Id: I9792c7f21597127a385b961b65a00d44cfa37146 Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Reviewed-on: https://review.coreboot.org/15765 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/ec/google/chromeec')
-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= \