aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-08-26 21:57:53 +0200
committerSven Schnelle <svens@stackframe.org>2011-08-27 09:44:34 +0200
commit054849dc6b004e510f3bb4c903cca9064941dc01 (patch)
treec4aea88ee6d059b6c1b2f2c87fda7480c43c1da9 /Makefile.inc
parentff31692e088a406d0fd1fd7dfab0a3b03c3ed8ef (diff)
Add dirty flag to git describe
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)
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index d6f58edfeb..37e4fb696d 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -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