summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2015-07-29 10:55:53 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-30 03:22:25 +0000
commit9008c7a4fd131a96ccb0078a46ec545cff2f43b1 (patch)
tree1d6c2c863a3914de793e15c274b7d2be9a50cb9d /Makefile.rules
parent0c58b18fd3df0bf10e3082ea84de3fa391807844 (diff)
downloadchrome-ec-9008c7a4fd131a96ccb0078a46ec545cff2f43b1.tar.gz
Makefile.rules: Fix build timestamp.
The ec_date.h file had incorrect dependencies. $(objs) had no meaning outside of the building the object files as it gets privately overidden with the corresponding target objects (RO, RW, libsharedobjs). This caused ec_date.h to only be generated once from a clean. This commit fixes that by adding all of the RO and RW objects as dependencies (with the exception of version.o). BUG=chrome-os-partner:43373 BRANCH=None TEST=Built ryu, checked build timestamp in build_info. Touched a file, rebuilt, verified that build timestamp was updated. TEST=make -j buildall tests Change-Id: I0ab107efc1a504b4f871ebcf595754db1d414c7a Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/289338 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org> Trybot-Ready: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 018bb993f2..36927aa657 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -274,7 +274,7 @@ $(out)/ec_version.h:
$(out)/RO/common/version.o: $(out)/ec_date.h
$(out)/RW/common/version.o: $(out)/ec_date.h
-$(out)/ec_date.h: $(filter-out $(out)/%/common/version.o,$(objs))
+$(out)/ec_date.h: $(filter-out $(out)/%/common/version.o,$(ro-objs) $(rw-objs))
$(call quiet,date,DATE )
$(out)/gen_pub_key.h: $(PEM)