summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-05-06 18:49:34 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-05-08 19:35:29 -0700
commit65fde9d10e35890766e279183ae061b72170299d (patch)
treecc46409e2e82fe3ebe1cdc187703f9929bd761af /Makefile
parent2befbf878db0d4a51349eac629d9a61e5459d2aa (diff)
downloadchrome-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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ae3dc8c14a..70875ce540 100644
--- a/Makefile
+++ b/Makefile
@@ -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)