[Buildroot] [PATCH v2 08/11] boot/ti-k3-r5-loader: set binman environment

Dario Binacchi dario.binacchi at amarulasolutions.com
Wed Dec 13 16:43:08 UTC 2023


Recent version of U-Boot use binman to provide a mechanism for building
images, from simple SPL + U-Boot combinations, to more complex
arrangements with many parts.

The patch set the BINMAN_INDIRS environment variable to provide the
directory to search for binary blobs and select the packages required by
binman.

Co-developed-by: Michael Trimarchi <michael at amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael at amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>

---

Changes in v2:
- Change commit message
- Add BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option
- Select packages required by binman if
  BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN is enabled

Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>
---
 boot/ti-k3-r5-loader/Config.in          | 13 +++++++++++++
 boot/ti-k3-r5-loader/ti-k3-r5-loader.mk |  1 +
 2 files changed, 14 insertions(+)

diff --git a/boot/ti-k3-r5-loader/Config.in b/boot/ti-k3-r5-loader/Config.in
index 8c8368a1a5a8..a40eaed9467b 100644
--- a/boot/ti-k3-r5-loader/Config.in
+++ b/boot/ti-k3-r5-loader/Config.in
@@ -93,4 +93,17 @@ config BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_CONFIG_FILE
 	help
 	  Path to the TI K3 R5 Loader configuration file.
 
+config BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN
+	bool "U-Boot uses binman"
+	select BR2_TARGET_UBOOT_NEEDS_PYLIBFDT
+	select BR2_PACKAGE_HOST_PYTHON_ATTRS
+	select BR2_PACKAGE_HOST_PYTHON_JSONSCHEMA
+	select BR2_PACKAGE_HOST_PYTHON_JSONSCHEMA_SPECIFICATIONS
+	select BR2_PACKAGE_HOST_PYTHON_PYYAML
+	select BR2_PACKAGE_HOST_PYTHON_REFERENCING
+	select BR2_PACKAGE_HOST_PYTHON_RPDS_PY
+	help
+	  Select this option if your U-Boot version uses binman
+	  for building images.
+
 endif
diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
index 0ffcb8235f2e..d5ec8fa8ba96 100644
--- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
+++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
@@ -58,6 +58,7 @@ TI_K3_R5_LOADER_MAKE_OPTS = \
 	CROSS_COMPILE=$(HOST_DIR)/bin/arm-none-eabi- \
 	ARCH=arm \
 	HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \
+	BINMAN_INDIRS=$(BINARIES_DIR) \
 	HOSTLDFLAGS="$(HOST_LDFLAGS)"
 
 define TI_K3_R5_LOADER_BUILD_CMDS
-- 
2.43.0




More information about the buildroot mailing list