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

Unified Diff: firmware/Makefile

Issue 2809040: Keep temp files in the output directory. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Do not automatially `git add' the modied file. Created 10 years, 6 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 952a1b6bd70bdd076ec50143d1faa35f9bc44eba..73ed2311b0332f6d9c00550a15d6054203453d60 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -48,12 +48,13 @@ test : $(FWLIB) update-version
# 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 > x.tmp
- echo "char* VbootVersion = \"VBOOv=$$(cat x.tmp)\";" > version.tmp
- cmp -s version.tmp version.c || \
- ( echo "** Updating version.c **" && \
- cp version.tmp 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
« 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