Skip to contentSkip to conversation

Kbuild: add bareboxversion target to Makefile

PATCH Applied Frank Wunderlich 2 participants 2 messages Feb 6, 2022 – Feb 7, 2022 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Kbuild: add bareboxversion target to Makefile

From: Frank Wunderlich <[email protected]>

This allows getting version string with make bareboxversion like for linux and uboot.

---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Makefile +4 -1
index 3125d628114b..4b4a92181034 100644
@@ -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:
Signature · 7 lines
2.25.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 9 lines · Frank Wunderlich

From: Frank Wunderlich <[email protected]>

This allows getting version string with make bareboxversion like for linux and uboot.

---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox