Kbuild: add bareboxversion target to Makefile
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.
Signed-off-by Frank Wunderlich <[email protected]>
--- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Makefile +4 -1
@@ -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
Sascha Hauer
AppliedQuoted 9 lines · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
This allows getting version string with make bareboxversion like for linux and uboot.
Signed-off-by Frank Wunderlich <[email protected]>--- 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