Add dirty flag to git describe
authorSven Schnelle <svens@stackframe.org>
Fri, 26 Aug 2011 19:57:53 +0000 (21:57 +0200)
committerSven Schnelle <svens@stackframe.org>
Sat, 27 Aug 2011 07:44:34 +0000 (09:44 +0200)
git describe knows --dirty, which adds -dirty to the verion number
if the tree contains uncommited changes. We should add this flag
to make it obvious that the COREBOOT_VERSION might be misleading.
This is especially important as this version number is now used
in the SMBIOS data structures.

Change-Id: If4c608c7455e1bbf0cc530c6299fa00eb0fe4d58
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/173
Tested-by: build bot (Jenkins)
Makefile.inc

index d6f58edfeb0e348f5bace6bd25681bcd8dd00b19..37e4fb696d85163642dba32acdf69bfd1f5b9567 100644 (file)
@@ -19,7 +19,7 @@
 
 #######################################################################
 # misleadingly named, this is the coreboot version
-export KERNELVERSION := $(shell if [ -d "$(top)/.git" -a -f "`which git`" ]; then git describe; else echo unknown; fi)
+export KERNELVERSION := $(shell if [ -d "$(top)/.git" -a -f "`which git`" ]; then git describe --dirty; else echo unknown; fi)
 
 #######################################################################
 # Basic component discovery