summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2014-12-04 17:20:18 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-15 03:51:17 +0000
commit0777ebaef6ea1017b897cde65b2a9d1a39570089 (patch)
tree445f99e9dbc8fa917234b6a1ff874cd257f572d4 /Makefile.rules
parent394192d71258df12c86d100f58f1d5521d133e82 (diff)
downloadchrome-ec-0777ebaef6ea1017b897cde65b2a9d1a39570089.tar.gz
Makefile: remove burn_my_ec
burn_my_ec is an utility that flash an image embedded in its code. We can not compile it as part of ec-[dev]utils, because we have devices that firmware should be build as part of chrome-ec package. Remove burn_my_ec, barely used. Split the makefile to build just the host utility when requested. BRANCH=ToT BUG=chrome-os-partner:32025,chromium:408713 TEST=Check that files are stil built when needed and not when utils-host is invoked. Change-Id: I3fabe16067d57c74ae36b05138f4c6fd2483c7c4 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/233347
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 27f0d73f70..a0bd355202 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -70,7 +70,7 @@ cmd_etags = etags -o $@ $(shell cat $<)
cmd_ctags = ctags -o $@ $(shell cat $<)
targ_if_prog = $(if $(shell which $(1) 2>/dev/null),$(2),)
-.PHONY: all tests utils hosttests
+.PHONY: all tests utils utils-host utils-build hosttests
buildall: $(foreach b, $(boards), proj-$(b)) runtests
@touch .tests-passed
@@ -86,7 +86,11 @@ dis: $(dis-y)
hex-y = $(out)/$(PROJECT).RO.hex $(out)/$(PROJECT).RW.hex
hex: $(hex-y)
-utils: $(build-utils) $(host-utils)
+utils-host: $(host-utils)
+
+utils-build: $(build-utils)
+
+utils: utils-host utils-build
# On board test binaries
test-targets=$(foreach t,$(test-list-y),test-$(t))
@@ -223,8 +227,6 @@ $(build-utils): $(out)/%:$(build-srcs)
$(host-utils): $(out)/%:$(host-srcs)
$(call quiet,c_to_host,HOSTCC )
-$(out)/util/burn_my_ec: $(out)/$(PROJECT).bin
-
$(out)/cscope.files: $(out)/$(PROJECT).bin
$(call quiet,deps_to_list,SH )