summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 89467db6d9..6c51a84cdd 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