mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Kbuild: add bareboxversion target to Makefile
@ 2022-02-06 15:07 Frank Wunderlich
  2022-02-07  8:06 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Wunderlich @ 2022-02-06 15:07 UTC (permalink / raw)
  To: barebox; +Cc: Frank Wunderlich

From: Frank Wunderlich <frank-w@public-files.de>

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

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 3125d628114b..4b4a92181034 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:
-- 
2.25.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Kbuild: add bareboxversion target to Makefile
  2022-02-06 15:07 [PATCH] Kbuild: add bareboxversion target to Makefile Frank Wunderlich
@ 2022-02-07  8:06 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2022-02-07  8:06 UTC (permalink / raw)
  To: Frank Wunderlich; +Cc: barebox, Frank Wunderlich

On Sun, Feb 06, 2022 at 04:07:16PM +0100, Frank Wunderlich wrote:
> From: Frank Wunderlich <frank-w@public-files.de>
> 
> This allows getting version string with make bareboxversion
> like for linux and uboot.
> 
> Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
> ---
>  Makefile | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Applied, thanks

Sascha


-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-07  8:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-06 15:07 [PATCH] Kbuild: add bareboxversion target to Makefile Frank Wunderlich
2022-02-07  8:06 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox