On Thu, Sep 08, 2011 at 02:10:03PM +0200, Jan Weitzel wrote:
> Allow to overwrite EXTRAVERSION with a local string.
> Will not be passed if empty.
> 
> Usecase: set a version within a ptxdist managed BSP.
> So you can show changes like different default environment
> via BAREBOX_EXTRA_ENV.

I think, what you want to set here is LOCALVERSION

Still, one could argue, that the correct fix is to add CONFIG_LOCALVERSION
to barebox like the Linux kernel.

Michael

> Signed-off-by: Jan Weitzel <[email protected]>
> ---
> v2: enhance commitlog
> 
>  platforms/barebox.in |    7 +++++++
>  rules/barebox.make   |    4 ++++
>  2 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/platforms/barebox.in b/platforms/barebox.in
> index 702828f..b5430dc 100644
> --- a/platforms/barebox.in
> +++ b/platforms/barebox.in
> @@ -15,6 +15,13 @@ config BAREBOX_VERSION
>       string
>       default "2010.10.0"
>  
> +config BAREBOX_EXTRAVERSION
> +     prompt "barebox set extraversion"
> +     string
> +     help
> +       Allow to overwrite EXTRAVERSION with a local string.
> +       Will not be passed if empty.
> +
>  config BAREBOX_MD5
>       prompt "barebox source md5sum"
>       string
> diff --git a/rules/barebox.make b/rules/barebox.make
> index 317d1e5..36068aa 100644
> --- a/rules/barebox.make
> +++ b/rules/barebox.make
> @@ -47,6 +47,10 @@ BAREBOX_MAKEVARS := \
>       ARCH=$(PTXCONF_BAREBOX_ARCH_STRING) \
>       CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE)
>  
> +ifneq ($(PTXCONF_BAREBOX_EXTRAVERSION),"")
> +BAREBOX_MAKEVARS += EXTRAVERSION=$(call remove_quotes, 
> $(PTXCONF_BAREBOX_EXTRAVERSION))
> +endif
> +
>  ifdef PTXCONF_BAREBOX_BTCS
>  BAREBOX_MAKEVARS += \
>       CFLAGS_btcs.o+=-I"$(KERNEL_HEADERS_INCLUDE_DIR)"
> -- 
> 1.7.0.4
> 
> 
> -- 
> ptxdist mailing list
> [email protected]
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to