mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <mol@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] rules: barebox: support barebox buildsystem_version
Date: Fri, 09 Apr 2021 15:33:18 +0200	[thread overview]
Message-ID: <E1lUrGA-005xxL-58@dude03.red.stw.pengutronix.de> (raw)
In-Reply-To: <20210401083641.9251-2-s.trumtrar@pengutronix.de>

Thanks, applied as f5500c922424ee71dd99e80f743ed6d994e5bca6.

Michael

[sent from post-receive hook]

On Fri, 09 Apr 2021 15:33:18 +0200, Steffen Trumtrar <s.trumtrar@pengutronix.de> wrote:
> barebox supports setting a buildsystem version. This is useful to have
> an exact buildsystem version like a commit hash accessible from barebox.
> 
> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> Message-Id: <20210401083641.9251-2-s.trumtrar@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/platforms/barebox.in b/platforms/barebox.in
> index 70d175fb5a03..d35d165011b9 100644
> --- a/platforms/barebox.in
> +++ b/platforms/barebox.in
> @@ -27,6 +27,19 @@ config BAREBOX_VERSION
>  	string
>  	default "2016.08.0"
>  
> +config BAREBOX_CONFIG_BUILDSYSTEM_VERSION
> +        prompt "add a buildsystem version to the barebox binary"
> +        bool
> +        help
> +          When this option is enabled, the nv variable "nv.buildsystem_version"
> +          in barebox is set to PTXCONF_BAREBOX_BUILDSYSTEM_VERSION.
> +
> +config BAREBOX_BUILDSYSTEM_VERSION
> +        prompt "barebox buildsystem version"
> +        depends on BAREBOX_CONFIG_BUILDSYSTEM_VERSION
> +        string
> +        default "${PTXDIST_VCS_VERSION}"
> +
>  config BAREBOX_MD5
>  	prompt "barebox source md5sum"
>  	string
> diff --git a/rules/barebox.make b/rules/barebox.make
> index 23c948408ab3..bea9f3adcbf8 100644
> --- a/rules/barebox.make
> +++ b/rules/barebox.make
> @@ -46,6 +46,11 @@ BAREBOX_CONF_OPT	:= \
>  	O=$(BAREBOX_BUILD_DIR) \
>  	$(call barebox-opts, BAREBOX)
>  
> +ifdef PTXCONF_BAREBOX_CONFIG_BUILDSYSTEM_VERSION
> +BAREBOX_CONF_OPT += \
> +        BUILDSYSTEM_VERSION=$(PTXCONF_BAREBOX_BUILDSYSTEM_VERSION)
> +endif
> +
>  BAREBOX_MAKE_OPT	:= $(BAREBOX_CONF_OPT)
>  
>  BAREBOX_TAGS_OPT	:= TAGS tags cscope

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

  reply	other threads:[~2021-04-09 13:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-01  8:36 [ptxdist] [PATCH v3 1/2] ptxd_make_vcs_version: add script to determine vcs hash Steffen Trumtrar
2021-04-01  8:36 ` [ptxdist] [PATCH v3 2/2] rules: barebox: support barebox buildsystem_version Steffen Trumtrar
2021-04-09 13:33   ` Michael Olbrich [this message]
2021-04-04 17:16 ` [ptxdist] [PATCH v3 1/2] ptxd_make_vcs_version: add script to determine vcs hash Roland Hieber
2021-04-07 14:43   ` Michael Olbrich
2021-04-08  5:58     ` Steffen Trumtrar
2021-04-09 13:33 ` [ptxdist] [APPLIED] " Michael Olbrich

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=E1lUrGA-005xxL-58@dude03.red.stw.pengutronix.de \
    --to=mol@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=s.trumtrar@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox