From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] core: add a 'make version' rule
Date: Tue, 27 Oct 2015 20:06:24 +0100 [thread overview]
Message-ID: <562FCB30.8040604@mind.be> (raw)
In-Reply-To: <1445956167-11122-1-git-send-email-yann.morin.1998@free.fr>
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
next prev parent reply other threads:[~2015-10-27 19:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2015-10-27 19:18 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=562FCB30.8040604@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.