Fix coreboot revision detection
authorPatrick Georgi <patrick@georgi-clan.de>
Sun, 17 Jul 2011 09:32:51 +0000 (11:32 +0200)
committerMarc Jones <marcj303@gmail.com>
Mon, 18 Jul 2011 19:50:39 +0000 (21:50 +0200)
Neither do we publish coreboot via svn, nor is git-svn a useful indicator
anymore.  Instead, fetch a shortened commit id.

Change-Id: I1b990384553209a7d39ecf7f5e8a2db7c7e34d0b
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/110
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marcj303@gmail.com>
Makefile.inc

index 2b3ea8de5f45a7a2c9e2d6af9e4dc4cdb78c9e92..65550e6bd9fbaa1a7afc1ba6a562b873991c312a 100644 (file)
@@ -19,7 +19,7 @@
 
 #######################################################################
 # misleadingly named, this is the coreboot version
-REV=-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)
+REV=-r$(shell if [ -d $(top)/.git -a -f "`which git`" ]; then git --git-dir=/$(top)/.git show -s --pretty=format:%h; fi)
 export KERNELVERSION      := 4.0$(REV)
 
 #######################################################################