Some things need to be set in environment instead of passing them as
additional make opts.

Signed-off-by: Alexander Dahl <a...@thorsis.com>
---
 platforms/u-boot.in | 9 +++++++++
 rules/u-boot.make   | 4 +++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/platforms/u-boot.in b/platforms/u-boot.in
index 000ca491a..53db146e1 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 4bc7f3f78..e4c963d0c 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
-- 
2.39.2


Reply via email to