diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-02-29 00:39:41 +0000 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-03-02 16:46:26 +0000 |
commit | a94e3277b332536a01d8e109f5ae277dcfe82337 (patch) | |
tree | 123b8db7b44a2b09fa80629b0cf92a9f3ebceff4 /Makefile.rules | |
parent | 1db93690d9b3fed1690f6645408384451c42519b (diff) | |
download | chrome-ec-a94e3277b332536a01d8e109f5ae277dcfe82337.tar.gz |
update versioning information stored in the EC
Add build information (date/time/builder) which can be displayed at the
EC console.
Generate a version from the board name and the branch tag.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chromium-os:27013
TEST=on BDS, run version command on the console.
inspect the built binary.
Change-Id: Idb1f68898ba6b811d02919f17ab4536ed9f8934a
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index b92e9a6efc..647a7b27c3 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -35,6 +35,7 @@ cmd_c_to_build = $(BUILDCC) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) \ cmd_c_to_host = $(HOSTCC) $(HOST_CFLAGS) -MMD -MF $@.d $< -o $@ cmd_qemu = ./util/run_qemu_test --image=build/$(BOARD)/$*/$*.bin test/$*.py \ $(silent) +cmd_version = ./util/getversion.sh > $@ .PHONY: all tests utils @@ -85,6 +86,10 @@ $(out)/%.o:%.c $(out)/%.o:%.S $(call quiet,c_to_o,AS ) +$(out)/common/version.o: $(out)/ec_version.h +$(out)/ec_version.h: $(filter-out $(out)/common/version.o,$(objs)) + $(call quiet,version,VERSION) + $(build-utils): $(out)/%:%.c $(call quiet,c_to_build,BUILDCC) |