[coreboot] New patch to review: 662ddf3 Fix coreboot revision detection

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Sun Jul 17 12:28:33 CEST 2011


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/110

-gerrit

commit 662ddf3cfcb85266aed897825c2f6abda0919d7e
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Sun Jul 17 11:32:51 2011 +0200

    Fix coreboot revision detection
    
    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 at georgi-clan.de>
---
 Makefile.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile.inc b/Makefile.inc
index 2b3ea8d..65550e6 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -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)
 
 #######################################################################




More information about the coreboot mailing list