From: Kory Maincent <kory.maincent@bootlin.com>
To: u-boot@lists.denx.de
Cc: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
"Tom Rini" <trini@konsulko.com>,
"Patrice Chotard" <patrice.chotard@foss.st.com>,
"Paul HENRYS" <paul.henrys_ext@softathome.com>,
"Sughosh Ganu" <sughosh.ganu@arm.com>,
"Greg Malysa" <malysagreg@gmail.com>,
"Arturs Artamonovs" <arturs.artamonovs@analog.com>,
"Vasileios Bimpikas" <vasileios.bimpikas@analog.com>,
"Utsav Agarwal" <utsav.agarwal@analog.com>,
"Nathan Barrett-Morrison" <nathan.morrison@timesys.com>,
"Peng Fan" <peng.fan@nxp.com>, "Simon Glass" <sjg@chromium.org>,
"Duje Mihanović" <duje@dujemihanovic.xyz>,
"Stefan Roese" <stefan.roese@mailbox.org>,
"Mattijs Korpershoek" <mkorpershoek@kernel.org>,
"Sumit Garg" <sumit.garg@kernel.org>,
"Heiko Schocher" <hs@nabladev.com>,
"Alif Zakuan Yuslaimi" <alif.zakuan.yuslaimi@altera.com>,
"E Shattow" <e@freeshell.de>,
"Raymond Mao" <raymondmaoca@gmail.com>,
"Jan Kiszka" <jan.kiszka@siemens.com>,
"Shiji Yang" <yangshiji66@outlook.com>,
"Daniel Golle" <daniel@makrotopia.org>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Leonard Anderweit" <l.anderweit@phytec.de>,
"Kory Maincent" <kory.maincent@bootlin.com>,
"Yao Zi" <me@ziyao.cc>
Subject: [PATCH v4 2/6] tools: Reorganize mkfwumdata tool into fwumdata_src directory
Date: Mon, 23 Feb 2026 14:18:36 +0100 [thread overview]
Message-ID: <20260223-feature_fwumdata-v4-2-680ea4ad6ce6@bootlin.com> (raw)
In-Reply-To: <20260223-feature_fwumdata-v4-0-680ea4ad6ce6@bootlin.com>
Update FWU metadata-related tools by moving mkfwumdata.c into a new
tools/fwumdata_src/ directory structure. This refactoring prepares for the
addition of the fwumdata runtime tool, which will allow editing FWU
metadata directly from the target.
The Kconfig and Makefile entries are also moved into separate files within
the new directory (Kconfig and fwumdata.mk respectively) to keep all FWU
metadata tool configurations together and improve maintainability.
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
MAINTAINERS | 3 ++-
tools/Kconfig | 9 +--------
tools/Makefile | 4 +---
tools/fwumdata_src/Kconfig | 8 ++++++++
tools/fwumdata_src/fwumdata.mk | 7 +++++++
tools/{ => fwumdata_src}/mkfwumdata.c | 0
6 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index f8d4f6ee8b2..a4903929eea 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1242,9 +1242,10 @@ FWU Multi Bank Update
M: Sughosh Ganu <sughosh.ganu@arm.com>
S: Maintained
T: git https://source.denx.de/u-boot/custodians/u-boot-efi.git
+F: doc/mkfwumdata.1
F: lib/fwu_updates/*
F: drivers/fwu-mdata/*
-F: tools/mkfwumdata.c
+F: tools/fwumdata_src/mkfwumdata.c
GATEWORKS_SC
M: Tim Harvey <tharvey@gateworks.com>
diff --git a/tools/Kconfig b/tools/Kconfig
index a1b4d701ac7..ef33295b8ec 100644
--- a/tools/Kconfig
+++ b/tools/Kconfig
@@ -194,13 +194,6 @@ config LUT_SEQUENCE
help
Look Up Table Sequence
-config TOOLS_MKFWUMDATA
- bool "Build mkfwumdata command"
- default y if FWU_MULTI_BANK_UPDATE
- help
- This command allows users to create a raw image of the FWU
- metadata for initial installation of the FWU multi bank
- update on the board. The installation method depends on
- the platform.
+source tools/fwumdata_src/Kconfig
endmenu
diff --git a/tools/Makefile b/tools/Makefile
index 0ac683ac3ec..1908a63b42c 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -272,9 +272,7 @@ mkeficapsule-objs := generated/lib/uuid.o \
mkeficapsule.o
hostprogs-always-$(CONFIG_TOOLS_MKEFICAPSULE) += mkeficapsule
-mkfwumdata-objs := mkfwumdata.o generated/lib/crc32.o
-HOSTLDLIBS_mkfwumdata += -luuid
-hostprogs-always-$(CONFIG_TOOLS_MKFWUMDATA) += mkfwumdata
+include tools/fwumdata_src/fwumdata.mk
# We build some files with extra pedantic flags to try to minimize things
# that won't build on some weird host compiler -- though there are lots of
diff --git a/tools/fwumdata_src/Kconfig b/tools/fwumdata_src/Kconfig
new file mode 100644
index 00000000000..c033c560e8d
--- /dev/null
+++ b/tools/fwumdata_src/Kconfig
@@ -0,0 +1,8 @@
+config TOOLS_MKFWUMDATA
+ bool "Build mkfwumdata command"
+ default y if FWU_MULTI_BANK_UPDATE
+ help
+ This command allows users to create a raw image of the FWU
+ metadata for initial installation of the FWU multi bank
+ update on the board. The installation method depends on
+ the platform.
diff --git a/tools/fwumdata_src/fwumdata.mk b/tools/fwumdata_src/fwumdata.mk
new file mode 100644
index 00000000000..00f4ae50dbb
--- /dev/null
+++ b/tools/fwumdata_src/fwumdata.mk
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# (C) Copyright 2025, Kory Maincent <kory.maincent@bootlin.com>
+
+mkfwumdata-objs := fwumdata_src/mkfwumdata.o generated/lib/crc32.o
+HOSTLDLIBS_mkfwumdata += -luuid
+hostprogs-always-$(CONFIG_TOOLS_MKFWUMDATA) += mkfwumdata
diff --git a/tools/mkfwumdata.c b/tools/fwumdata_src/mkfwumdata.c
similarity index 100%
rename from tools/mkfwumdata.c
rename to tools/fwumdata_src/mkfwumdata.c
--
2.43.0
next prev parent reply other threads:[~2026-02-23 13:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 13:18 [PATCH v4 0/6] Add support for fwumdata Kory Maincent
2026-02-23 13:18 ` [PATCH v4 1/6] tools: gitignore: Add mkfwumdata to the git ignore file Kory Maincent
2026-02-23 13:18 ` Kory Maincent [this message]
2026-02-23 13:18 ` [PATCH v4 3/6] tools: mkfwumdata: Improve error message specificity Kory Maincent
2026-02-23 13:18 ` [PATCH v4 4/6] tools: mkfwumdata: Add bank count validation for FWU metadata v2 Kory Maincent
2026-02-23 13:18 ` [PATCH v4 5/6] tools: Add support for fwumdata tool Kory Maincent
2026-02-23 13:18 ` [PATCH v4 6/6] tools: mkfwumdata: Remove dependency on fwu_mdata.h header Kory Maincent
2026-03-18 11:27 ` [PATCH v4 0/6] Add support for fwumdata Dario Binacchi
2026-03-25 10:29 ` Kory Maincent
2026-03-25 10:50 ` Sughosh Ganu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260223-feature_fwumdata-v4-2-680ea4ad6ce6@bootlin.com \
--to=kory.maincent@bootlin.com \
--cc=alif.zakuan.yuslaimi@altera.com \
--cc=arturs.artamonovs@analog.com \
--cc=daniel@makrotopia.org \
--cc=duje@dujemihanovic.xyz \
--cc=e@freeshell.de \
--cc=hs@nabladev.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jan.kiszka@siemens.com \
--cc=l.anderweit@phytec.de \
--cc=malysagreg@gmail.com \
--cc=me@ziyao.cc \
--cc=mkorpershoek@kernel.org \
--cc=nathan.morrison@timesys.com \
--cc=patrice.chotard@foss.st.com \
--cc=paul.henrys_ext@softathome.com \
--cc=peng.fan@nxp.com \
--cc=raymondmaoca@gmail.com \
--cc=sjg@chromium.org \
--cc=stefan.roese@mailbox.org \
--cc=sughosh.ganu@arm.com \
--cc=sumit.garg@kernel.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=utsav.agarwal@analog.com \
--cc=vasileios.bimpikas@analog.com \
--cc=xypron.glpk@gmx.de \
--cc=yangshiji66@outlook.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox