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)
This commit is contained in:
parent
ff31692e08
commit
054849dc6b
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# misleadingly named, this is the coreboot version
|
# 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
|
# Basic component discovery
|
||||||
|
|
Loading…
Reference in New Issue