summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFrank Wunderlich <frank-w@public-files.de>2022-02-06 16:07:16 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-07 09:06:26 +0100
commit11fc617561814567fad4e0b69cbe03e9104e9340 (patch)
treeae6c09936008ada0ae7897ec7a9dc8f0da76ae60 /Makefile
parent8791b3c19ae4c0222e32c5332014011fd74c0780 (diff)
downloadbarebox-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--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3125d62811..4b4a921810 100644
--- a/Makefile
+++ b/Makefile
@@ -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: