From 875b9b197f64e845a2c220a1f69a5c1b4000092f Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Sun, 21 Aug 2011 06:17:05 +0200 Subject: [PATCH] Use git describe to set KERNELVERSION Change-Id: Id579b19fc38c7ca2b98ad1e87aaec71c070a9178 Signed-off-by: Peter Stuge Reviewed-on: http://review.coreboot.org/163 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- Makefile.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile.inc b/Makefile.inc index 89467db6d..6c51a84cd 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 -- 2.25.1