[PATCH 05/13] mach-snapdragon: enable BINMAN

Sam Day via B4 Relay devnull+me.samcday.com at kernel.org
Sat Jun 6 02:52:39 CEST 2026


From: Sam Day <me at samcday.com>

Now that binman provides abootimg support and we've defined
configuration for it on a number of qcom devices, let's enable BINMAN
for *all* ARCH_SNAPDRAGON builds.

This is a pragmatic choice: BINMAN needs to be pulled in by an existing
Kconfig symbol so we can't just enable it in a .config fragment. Rather
than defining a new symbol that can be opted into, we just opt in
everywhere. There's plenty of prior art for ARCH_* symbols doing exactly
this.

Not necessarily all (though, I suspect, a vast majority) of qcom devices
need or can benefit from binman. Unfortunately, binman will choke if a
DEVICE_TREE= lacking the `binman{}` DT node is selected as the control
FDT. To accommodate this, we drop in a small globally-included .dtsi
fragment that defines an empty binman{} node, so that no builds are
broken.

Signed-off-by: Sam Day <me at samcday.com>
---
 arch/arm/Kconfig       | 1 +
 arch/arm/dts/qcom.dtsi | 5 +++++
 configs/qcom_defconfig | 1 +
 3 files changed, 7 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 514bf2000b4..5816194721c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1135,6 +1135,7 @@ config ARCH_RENESAS
 config ARCH_SNAPDRAGON
 	bool "Qualcomm Snapdragon SoCs"
 	select ARM64
+	select BINMAN
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
diff --git a/arch/arm/dts/qcom.dtsi b/arch/arm/dts/qcom.dtsi
new file mode 100644
index 00000000000..9982e996993
--- /dev/null
+++ b/arch/arm/dts/qcom.dtsi
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+/ {
+	binman {
+	};
+};
diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig
index d0d54ec5a70..fe026189ee3 100644
--- a/configs/qcom_defconfig
+++ b/configs/qcom_defconfig
@@ -50,6 +50,7 @@ CONFIG_CMD_REGULATOR=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_LIVE=y
 CONFIG_OF_UPSTREAM_BUILD_VENDOR=y
+CONFIG_DEVICE_TREE_INCLUDES="qcom.dtsi"
 CONFIG_ENV_USE_DEFAULT_ENV_TEXT_FILE=y
 CONFIG_ENV_DEFAULT_ENV_TEXT_FILE="board/qualcomm/default.env"
 CONFIG_BUTTON_QCOM_PMIC=y

-- 
2.54.0




More information about the U-Boot mailing list