[coreboot] New patch to review: ff9ee51 Use git describe to set KERNELVERSION

Peter Stuge (peter@stuge.se) gerrit at coreboot.org
Sun Aug 21 07:08:06 CEST 2011


Peter Stuge (peter at stuge.se) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/163

-gerrit

commit ff9ee51926225fe9e9e8accb95c8d7c6b7faaf02
Author: Peter Stuge <peter at stuge.se>
Date:   Sun Aug 21 06:17:05 2011 +0200

    Use git describe to set KERNELVERSION
    
    Change-Id: Id579b19fc38c7ca2b98ad1e87aaec71c070a9178
    Signed-off-by: Peter Stuge <peter at stuge.se>
---
 Makefile.inc |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/Makefile.inc b/Makefile.inc
index 89467db..6c51a84 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -19,8 +19,7 @@
 
 #######################################################################
 # misleadingly named, this is the coreboot version
-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)
+export KERNELVERSION := $(shell if [ -d "$(top)/.git" -a -f "`which git`" ]; then git describe; else echo unknown; fi)
 
 #######################################################################
 # Basic component discovery




More information about the coreboot mailing list