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

* [Buildroot] [PATCH] core: add a 'make version' rule
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-10-27 14:34 UTC (permalink / raw)
  To: buildroot

Dear Yann E. MORIN,

On 10/27/2015 02:29 PM, Yann E. MORIN wrote:
> 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>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>

$ make version
2015.11-git-00809-g13578ba

Regards,

Vincent.

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

* [Buildroot] [PATCH] core: add a 'make version' rule
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2015-10-27 19:06 UTC (permalink / raw)
  To: buildroot

On 27-10-15 15:29, Yann E. MORIN wrote:
> 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.

 Anything wrong with 'make print-version'? :-)

 I already marked it as rejected.

 Regards,
 Arnout

> 
> 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,
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

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

* [Buildroot] [PATCH] core: add a 'make version' rule
  2015-10-27 19:06 ` Arnout Vandecappelle
@ 2015-10-27 19:18   ` Yann E. MORIN
  0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2015-10-27 19:18 UTC (permalink / raw)
  To: buildroot

Arnout, All,

On 2015-10-27 20:06 +0100, Arnout Vandecappelle spake thusly:
> On 27-10-15 15:29, Yann E. MORIN wrote:
> > 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.
> 
>  Anything wrong with 'make print-version'? :-)

Damned. :-)

>  I already marked it as rejected.

Thanks. Sorry for the noise... :-/

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[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