diff options
author | Frank Wunderlich <frank-w@public-files.de> | 2022-02-06 16:07:16 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-02-07 09:06:26 +0100 |
commit | 11fc617561814567fad4e0b69cbe03e9104e9340 (patch) | |
tree | ae6c09936008ada0ae7897ec7a9dc8f0da76ae60 /Makefile | |
parent | 8791b3c19ae4c0222e32c5332014011fd74c0780 (diff) | |
download | barebox-11fc617561814567fad4e0b69cbe03e9104e9340.tar.gz barebox-11fc617561814567fad4e0b69cbe03e9104e9340.tar.xz |
Kbuild: add bareboxversion target to Makefile
This allows getting version string with make bareboxversion
like for linux and uboot.
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Link: https://lore.barebox.org/20220206150716.32531-1-linux@fw-web.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -247,7 +247,7 @@ version_h := include/generated/version.h clean-targets := %clean mrproper cleandocs no-dot-config-targets := $(clean-targets) \ cscope gtags TAGS tags help% %docs \ - $(version_h) kernelversion outputmakefile + $(version_h) bareboxversion outputmakefile no-sync-config-targets := $(no-dot-config-targets) install %install \ kernelrelease @@ -1277,6 +1277,9 @@ docs: FORCE @$(SPHINXBUILD) -b html -d $(objtree)/doctrees $(srctree)/Documentation \ $(objtree)/Documentation/html +bareboxversion: + @echo $(KERNELVERSION) + # Single targets # --------------------------------------------------------------------------- # Single targets are compatible with: |