[PATCH v5 02/13] binman: qcom: Add type definitions for Qualcomm binaries
Varadarajan Narayanan
varadarajan.narayanan at oss.qualcomm.com
Wed Jun 17 12:18:01 CEST 2026
Add type definitions for Qualcomm's
appsbl -> APPS Boot Loader (U-Boot)
config -> Board/DDR related configuration
lib -> Library of proprietary routines
Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan at oss.qualcomm.com>
---
tools/binman/etype/qcom_appsbl.py | 23 +++++++++++++++++++++++
tools/binman/etype/qcom_config.py | 26 ++++++++++++++++++++++++++
tools/binman/etype/qcom_lib.py | 21 +++++++++++++++++++++
3 files changed, 70 insertions(+)
create mode 100644 tools/binman/etype/qcom_appsbl.py
create mode 100644 tools/binman/etype/qcom_config.py
create mode 100644 tools/binman/etype/qcom_lib.py
diff --git a/tools/binman/etype/qcom_appsbl.py b/tools/binman/etype/qcom_appsbl.py
new file mode 100644
index 00000000000..f25bcbec37d
--- /dev/null
+++ b/tools/binman/etype/qcom_appsbl.py
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+#
+# Entry-type module for U-Boot MBN image
+#
+
+from binman.etype.blob_named_by_arg import Entry_blob_named_by_arg
+
+class Entry_qcom_appsbl(Entry_blob_named_by_arg):
+ """U-Boot mbn image
+
+ MBN is a Qualcomm‑specific signed firmware container that packages
+ executable images (typically ELF) along with metadata such as hash,
+ signature, and certificate chain, enabling the secure boot chain and Root
+ of Trust (RoT) to load and authenticate images.
+
+ Properties / Entry arguments:
+ - filename: Filename of U-Boot MBN (default 'u-boot.mbn')
+
+ This is the U-Boot MBN image.
+ """
+ def __init__(self, section, etype, node):
+ super().__init__(section, etype, node, 'qcom-appsbl')
diff --git a/tools/binman/etype/qcom_config.py b/tools/binman/etype/qcom_config.py
new file mode 100644
index 00000000000..93951a162b9
--- /dev/null
+++ b/tools/binman/etype/qcom_config.py
@@ -0,0 +1,26 @@
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+#
+# Entry-type module for QC Config ELF
+#
+
+from binman.entry import Entry
+from binman.etype.blob_named_by_arg import Entry_blob_named_by_arg
+
+class Entry_qcom_config(Entry_blob_named_by_arg):
+ """QC Config ELF
+
+ Although the QC Config image primarily contains configuration data that
+ could be represented as a raw binary, it is maintained in ELF format to
+ ensure compatibility with Root of Trust (RoT) based image authentication
+ during the secure boot process.
+
+ Properties / Entry arguments:
+ - qcom-config-path: Filename of QC Config ELF (typically 'qcconfig.elf')
+
+ This will be part of the Qualcomm SPL based bootloader image
+
+ """
+ def __init__(self, section, etype, node):
+ super().__init__(section, etype, node, 'qcom-config')
+ self.external = True
diff --git a/tools/binman/etype/qcom_lib.py b/tools/binman/etype/qcom_lib.py
new file mode 100644
index 00000000000..ca7666fe6e6
--- /dev/null
+++ b/tools/binman/etype/qcom_lib.py
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+#
+# Entry-type module for QC LIB ELF
+#
+
+from binman.entry import Entry
+from binman.etype.blob_named_by_arg import Entry_blob_named_by_arg
+
+class Entry_qcom_lib(Entry_blob_named_by_arg):
+ """QC LIB ELF
+
+ Properties / Entry arguments:
+ - qcom-lib-path: Filename of QC LIB ELF (typically 'QCLib.elf')
+
+ This will be part of the Qualcomm SPL based bootloader image
+
+ """
+ def __init__(self, section, etype, node):
+ super().__init__(section, etype, node, 'qcom-lib')
+ self.external = True
--
2.34.1
More information about the U-Boot
mailing list