diff options
author | Ting Shen <phoenixshen@google.com> | 2019-05-06 18:49:34 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-08 19:35:29 -0700 |
commit | 65fde9d10e35890766e279183ae061b72170299d (patch) | |
tree | cc46409e2e82fe3ebe1cdc187703f9929bd761af | |
parent | 2befbf878db0d4a51349eac629d9a61e5459d2aa (diff) | |
download | chrome-ec-65fde9d10e35890766e279183ae061b72170299d.tar.gz |
makefile: don't build ro if EC_INCLUDE_RO not set
BUG=b:121406695
TEST=make
BRANCH=None
Change-Id: Ib678678330837fefffd12a7ac445038661639e8c
Signed-off-by: Ting Shen <phoenixshen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1595929
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | include/config.h | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -304,7 +304,10 @@ deps := $(ro-deps) $(rw-deps) $(deps-y) $(config): $(out)/$(PROJECT).bin @printf '%s=y\n' $(_tsk_cfg) $(_flag_cfg) > $@ -def_all_deps:=utils ro rw notice $(config) $(PROJECT_EXTRA) size +def_all_deps:=$(config) $(PROJECT_EXTRA) notice rw size utils +ifeq ($(CONFIG_FW_INCLUDE_RO),y) +def_all_deps+=ro +endif all_deps?=$(def_all_deps) all: $(all_deps) diff --git a/include/config.h b/include/config.h index 116b8d962c..bc958572fb 100644 --- a/include/config.h +++ b/include/config.h @@ -1772,7 +1772,7 @@ /* * Board Image ec.bin contains a RO firmware. If not defined, the image will - * only contain the RW firmware. The RO firmware comes from another board. + * only contain the RW firmware. */ #define CONFIG_FW_INCLUDE_RO |