projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use git describe to set KERNELVERSION
[coreboot.git]
/
Makefile.inc
diff --git
a/Makefile.inc
b/Makefile.inc
index 89467db6d939d21279244538cd8f0ff8eab1736f..6c51a84cdd8cc349639632d23c05b618955993b5 100644
(file)
--- a/
Makefile.inc
+++ b/
Makefile.inc
@@
-19,8
+19,7
@@
#######################################################################
# misleadingly named, this is the coreboot version
#######################################################################
# 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
#######################################################################
# Basic component discovery