From: Zheng Bao Date: Tue, 23 Feb 2010 10:33:25 +0000 (+0000) Subject: Find out the svnversion we are working on is quite important. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=b7bc3f369df30d0a2606d95fe59e8f757b3d791b;hp=326c1591285da7d629cc3eca5d30db0476e8dde1;p=coreboot.git Find out the svnversion we are working on is quite important. The whole command (which also parses git data, if it's a git-svn tree) is copied from original newconfig. Signed-off-by: Zheng Bao Acked-by: Patrick Georgi git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5149 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- diff --git a/Makefile b/Makefile index b00f5d48b..f9f17f69e 100644 --- a/Makefile +++ b/Makefile @@ -253,7 +253,7 @@ $(obj)/build.h: printf "/* build system definitions (autogenerated) */\n" > $(obj)/build.ht printf "#ifndef __BUILD_H\n" >> $(obj)/build.ht printf "#define __BUILD_H\n\n" >> $(obj)/build.ht - printf "#define COREBOOT_VERSION \"$(KERNELVERSION)\"\n" >> $(obj)/build.ht + printf "#define COREBOOT_VERSION \"$(KERNELVERSION)-r$(shell if [ -d $(top)/.svn -a -f `which svnversion` ]; then svnversion $(top); else if [ -d $(top)/.git -a -f `which git` ]; then git --git-dir=/$(top)/.git log|grep git-svn-id|cut -f 2 -d@|cut -f 1 -d' '|sort -g|tail -1; fi; fi)\"\n" >> $(obj)/build.ht printf "#define COREBOOT_EXTRA_VERSION \"$(COREBOOT_EXTRA_VERSION)\"\n" >> $(obj)/build.ht printf "#define COREBOOT_BUILD \"`LANG= date`\"\n" >> $(obj)/build.ht printf "\n" >> $(obj)/build.ht