summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2020-09-23 12:34:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-25 16:28:04 +0200
commit98c221e3fad57f271d60406c9a1869511b26ed37 (patch)
treec9331a9c59d5d6c49390ae01c8ebfb577d18a811 /Makefile
parentcbfaec5633457fb5dae949be1665ca427bbad067 (diff)
downloadbarebox-98c221e3fad57f271d60406c9a1869511b26ed37.tar.gz
barebox-98c221e3fad57f271d60406c9a1869511b26ed37.tar.xz
Makefile: add buildsystem version variable
Introduce a new variable to store a buildsystem version information. The exact information that is stored here (git commit, git tag,...) is defined by the buildsystem. It is intended to have the possibility to get information about the exact barebox binary, environment and configuration. The variable is utilized the same as KERNELVERSION for linux: make BUILDSYSTEM_VERSION=$COMMITISH Via scripts/mkcompile_h this information is injected into the barebox codebase. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bf3266e977..3efb9fd1b8 100644
--- a/Makefile
+++ b/Makefile
@@ -311,7 +311,8 @@ include scripts/Kbuild.include
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
-export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
+BUILDSYSTEM_VERSION =
+export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION BUILDSYSTEM_VERSION
# Cross compiling and selecting different set of gcc/bin-utils
# ---------------------------------------------------------------------------