Thanks, applied as 32707042153ff15d17e4cf7810f84b1e558e8369.

Michael

[sent from post-receive hook]

On Sun, 12 May 2024 15:16:44 +0200, Alexander Dahl <a...@thorsis.com> wrote:
> Some things need to be set in environment instead of passing them as
> additional make opts.
> 
> Signed-off-by: Alexander Dahl <a...@thorsis.com>
> Message-Id: <20240506131244.401909-2-...@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de>
> 
> diff --git a/platforms/u-boot.in b/platforms/u-boot.in
> index 000ca491a1c2..53db146e18ad 100644
> --- a/platforms/u-boot.in
> +++ b/platforms/u-boot.in
> @@ -85,6 +85,15 @@ config U_BOOT_CONFIG
>  
>  endif
>  
> +config U_BOOT_CUSTOM_MAKE_ENV
> +     prompt "Custom (additional) make environment"
> +     string
> +     help
> +       List of additional env variables set for make at build time.
> +       Can be used for example to set BINMAN_INDIRS= to a path
> +       containing firmware files (preferably somewhere in
> +       sysroot-target).
> +
>  config U_BOOT_CUSTOM_MAKE_OPTS
>       prompt "Custom make options"
>       string
> diff --git a/rules/u-boot.make b/rules/u-boot.make
> index 4bc7f3f781fc..e4c963d0c5a3 100644
> --- a/rules/u-boot.make
> +++ b/rules/u-boot.make
> @@ -63,7 +63,9 @@ U_BOOT_CONF_OPT             := \
>  
>  U_BOOT_MAKE_ENV              := \
>       CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) \
> -     HOSTCC=$(HOSTCC)
> +     HOSTCC=$(HOSTCC) \
> +     $(call remove_quotes,$(PTXCONF_U_BOOT_CUSTOM_MAKE_ENV))
> +
>  U_BOOT_MAKE_OPT              := $(U_BOOT_CONF_OPT)
>  
>  U_BOOT_TAGS_OPT              := ctags cscope etags

Reply via email to