Skip to contentSkip to conversation

Add target to print buildroot version

PATCH New Arnout Vandecappelle (Essensium/Mind) 3 participants 3 messages Mar 11, 2012 – Mar 13, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add target to print buildroot version

It's convenient to have a target to print the buildroot version, for use in external scripts calling buildroot.

---
v2: Add Luca's Acked-by

 Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
Makefile +4 -1
index d508888..30099d9 100644
@@ -48,7 +48,7 @@ export BR2_VERSION_FULL:=$(BR2_VERSION)$(shell $(TOPDIR)/support/scripts/setloca
 noconfig_targets:=menuconfig nconfig gconfig xconfig config oldconfig randconfig \
 	defconfig %_defconfig savedefconfig allyesconfig allnoconfig silentoldconfig release \
 	randpackageconfig allyespackageconfig allnopackageconfig \
-	source-check
+	source-check print-version
 
 # Strip quotes and then whitespaces
 qstrip=$(strip $(subst ",,$(1)))
@@ -721,6 +721,9 @@ release:
 	bzip2 -9 -c < $(OUT).tar > $(OUT).tar.bz2
 	rm -rf $(OUT) $(OUT).tar
 
+print-version:
+	@echo $(BR2_VERSION_FULL)
+
 ################################################################################
 # GENDOC -- generates the make targets needed to build a specific type of
 #           asciidoc documentation.
Signature · 1 line
tg: (dca6e03..) t/print-version (depends on: master)
#1 lore raw

PATCH v2 1/1 Add target to print buildroot version

Le Sun, 11 Mar 2012 12:16:39 +0100,
"Arnout Vandecappelle (Essensium/Mind)" <[email protected]> a ?crit :

Quoted 5 lines

It's convenient to have a target to print the buildroot version, for use in external scripts calling buildroot.

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 Add target to print buildroot version

In reply to Arnout Vandecappelle (Essensium/Mind)
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

Arnout> It's convenient to have a target to print the buildroot Arnout> version, for use in external scripts calling buildroot.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard