summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 3995fbc1d8cf..347e07baf3de 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -23,7 +23,9 @@ GIT:=$(shell [ -d "$(top)/.git" ] && command -v git)
# misleadingly named, this is the coreboot version
export KERNELVERSION := $(strip $(if $(GIT),\
$(shell git describe --dirty --always || git describe),\
- 4.0$(KERNELREVISION)))
+ $(if $(wildcard $(top)/.coreboot-version),\
+ $(shell cat $(top)/.coreboot-version),\
+ coreboot-unknown$(KERNELREVISION))))
#######################################################################
# Basic component discovery