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>
This commit is contained in:
parent
5f4b4c4296
commit
94938fb2a8
|
@ -53,8 +53,10 @@ pdrw.hash-file := $(obj)/mainboard/$(MAINBOARDDIR)/pdrw.hash
|
||||||
pdrw.hash-name := pdrw.hash
|
pdrw.hash-name := pdrw.hash
|
||||||
pdrw.hash-type := raw
|
pdrw.hash-type := raw
|
||||||
|
|
||||||
|
CHROMEEC_SOURCE ?= $(top)/3rdparty/chromeec
|
||||||
|
|
||||||
$(obj)/mainboard/$(MAINBOARDDIR)/ecrw:
|
$(obj)/mainboard/$(MAINBOARDDIR)/ecrw:
|
||||||
$(MAKE) -C $(top)/3rdparty/chromeec \
|
$(MAKE) -C $(CHROMEEC_SOURCE) \
|
||||||
out=$(abspath $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_BOARDNAME)) \
|
out=$(abspath $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_BOARDNAME)) \
|
||||||
CROSS_COMPILE=$(subst -cpp,-,$(CPP_arm)) \
|
CROSS_COMPILE=$(subst -cpp,-,$(CPP_arm)) \
|
||||||
HOST_CROSS_COMPILE= \
|
HOST_CROSS_COMPILE= \
|
||||||
|
@ -63,7 +65,7 @@ $(obj)/mainboard/$(MAINBOARDDIR)/ecrw:
|
||||||
cp $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_BOARDNAME)/RW/ec.RW.flat $@
|
cp $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_BOARDNAME)/RW/ec.RW.flat $@
|
||||||
|
|
||||||
$(obj)/mainboard/$(MAINBOARDDIR)/pdrw:
|
$(obj)/mainboard/$(MAINBOARDDIR)/pdrw:
|
||||||
$(MAKE) -C $(top)/3rdparty/chromeec \
|
$(MAKE) -C $(CHROMEEC_SOURCE) \
|
||||||
out=$(abspath $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_PD_BOARDNAME)) \
|
out=$(abspath $(obj)/external/chromeec/$(CONFIG_EC_GOOGLE_CHROMEEC_PD_BOARDNAME)) \
|
||||||
CROSS_COMPILE=$(subst -cpp,-,$(CPP_arm)) \
|
CROSS_COMPILE=$(subst -cpp,-,$(CPP_arm)) \
|
||||||
HOST_CROSS_COMPILE= \
|
HOST_CROSS_COMPILE= \
|
||||||
|
|
Loading…
Reference in New Issue