Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2498)

Unified Diff: firmware/Makefile

Issue 6334148: Remove version.c (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | firmware/version.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/Makefile
diff --git a/firmware/Makefile b/firmware/Makefile
index 81d0402d896c9d3742d5d874fd12873824cbca65..d17e13669e49fd582717b5eb22cc1f2adb59b82f 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -57,27 +57,16 @@ STUB_SRCS = \
STUB_OBJS = $(STUB_SRCS:%.c=${BUILD_ROOT}/%.o)
-ALL_SRCS = ${LIB_SRCS} ${STUB_SRCS} version.c
+ALL_SRCS = ${LIB_SRCS} ${STUB_SRCS}
ifeq ($(FIRMWARE_ARCH),)
-test : $(STUB_OBJS) $(FWLIB) update-version
+test : $(STUB_OBJS) $(FWLIB)
$(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out \
$(TESTDIR)/main.c $(STUB_OBJS) $(LIBS)
else
test : $(FWLIB)
endif
-# This is executed at every make, to see if anything has changed
-update-version :
- find \( -name '*.[ch]' -o -name 'Makefile*' \) -a \! -name version.c \
- | sort | xargs cat | md5sum | cut -c 25-32 > \
- ${BUILD_ROOT}/x.tmp && \
- echo "char* VbootVersion = \"VBOOv=$$(cat ${BUILD_ROOT}/x.tmp)\";" > \
- ${BUILD_ROOT}/version.tmp && \
- (cmp -s ${BUILD_ROOT}/version.tmp version.c || \
- ( echo "** Updating version.c **" && \
- cp ${BUILD_ROOT}/version.tmp version.c))
-
include ../common.mk
$(FWLIB) : $(LIB_OBJS)
« no previous file with comments | « no previous file | firmware/version.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698