Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] core: add a 'make version' rule
@ 2015-10-27 14:29 Yann E. MORIN
  2015-10-27 14:34 ` Vicente Olivert Riera
  2015-10-27 19:06 ` Arnout Vandecappelle
  0 siblings, 2 replies; 4+ messages in thread
From: Yann E. MORIN @ 2015-10-27 14:29 UTC (permalink / raw)
  To: buildroot

We often ask people for the version they are using when they ask for
help (either on the list or on IRC). Some of them do not even know which
version they are using.

Add a make rule to dump the full version string.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <jacmet@uclibc.org>
---
 Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 853d185..3cf0c0c 100644
--- a/Makefile
+++ b/Makefile
@@ -88,10 +88,14 @@ DATE := $(shell date +%Y%m%d)
 # Need to export it, so it can be got from environment in children (eg. mconf)
 export BR2_VERSION_FULL := $(BR2_VERSION)$(shell $(TOPDIR)/support/scripts/setlocalversion)
 
+.PHONY: version
+version:
+	@echo $(BR2_VERSION_FULL)
+
 noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconfig \
 	defconfig %_defconfig allyesconfig allnoconfig silentoldconfig release \
 	randpackageconfig allyespackageconfig allnopackageconfig \
-	print-version olddefconfig
+	print-version olddefconfig version
 
 # Some global targets do not trigger a build, but are used to collect
 # metadata, or do various checks. When such targets are triggered,
-- 
1.9.1

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

end of thread, other threads:[~2015-10-27 19:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 14:29 [Buildroot] [PATCH] core: add a 'make version' rule Yann E. MORIN
2015-10-27 14:34 ` Vicente Olivert Riera
2015-10-27 19:06 ` Arnout Vandecappelle
2015-10-27 19:18   ` Yann E. MORIN

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