diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2020-09-23 12:34:15 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-25 16:28:04 +0200 |
commit | 98c221e3fad57f271d60406c9a1869511b26ed37 (patch) | |
tree | c9331a9c59d5d6c49390ae01c8ebfb577d18a811 /Makefile | |
parent | cbfaec5633457fb5dae949be1665ca427bbad067 (diff) | |
download | barebox-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-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 # --------------------------------------------------------------------------- |