From: Daniel Golle <daniel@makrotopia.org>
To: Tom Rini <trini@konsulko.com>,
Daniel Golle <daniel@makrotopia.org>,
Simon Glass <sjg@chromium.org>,
Aristo Chen <aristo.chen@canonical.com>,
Vincent Jardin <vjardin@free.fr>, Anton Ivanov <anton@binarly.io>,
Randolph Sapp <rs@ti.com>,
Anders Roxell <anders.roxell@linaro.org>,
u-boot@lists.u-boot-project.org, openwrt-devel@lists.openwrt.org
Subject: [PATCH 00/11] imagemap: structural and cosmetic review follow-ups
Date: Wed, 14 Oct 2026 09:38:38 +0100 [thread overview]
Message-ID: <cover.1791966831.git.daniel@makrotopia.org> (raw)
The clean-up half of the v1 review of the imagemap series
(cover.1787272661.git.daniel@makrotopia.org).
Patches 1 to 4 are self-contained tidy-ups without any functional
changes: the suite list and the sandbox defconfig put back in order,
FIT_VERITY_NODENAME in place of a second spelling of the node name, a
derived size for the header probe in place of a bare 64, a corrected
rationale on the imagemap_lookup() guard, and test locals hoisted out of
an anonymous block and a mid-block declaration.
Patches 5 and 6 correct the documentation: the imagemap_create()
signature, which callers a reader can actually reach, bootmeth_openwrt
described as a future consumer, the index entry sorted, and the section
on phase gating that the commit adding the file claimed was there.
Patches 7 to 10 are the structural ones which do introduce functional
changes: imagemap devices are named after the partition they cover and
hold a name driver model owns, so two mappings on one block device stay
distinct. bootm_start() sets the imagemap itself, keeping the invariant
in one function. The data-position and totalsize-alignment sequence is
shared between fit_image_get_data() and the storage path, which also
gives the latter the range check it lacked and settles the two spellings
of the alignment. Finally the two imagemap pointers compile only when
CONFIG_IMAGEMAP is on, reached through accessors that fold away when it
is off.
Patch 11 adds a new unit test Simon had asked for in his review.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Daniel Golle (11):
test: cmd_ut: keep the suite list alphabetical
boot: bootm: derive the header probe size
boot: imagemap: correct the lookup guard rationale
test: boot: imagemap: declare locals at the top
doc: imagemap: describe the API and phase gating
doc: develop: sort the imagemap index entry
boot: imagemap: name the device after its partition
boot: bootm: set the imagemap from bootm_start()
boot: fit: share the external-data offset calculation
boot: build the imagemap pointers only when enabled
test: boot: imagemap: caller-owned region not resized
boot/bootm.c | 39 ++++++-------
boot/image-fit.c | 94 ++++++++++++++++++------------
boot/imagemap.c | 33 ++++++++---
doc/develop/imagemap.rst | 30 +++++++---
doc/develop/index.rst | 2 +-
include/bootm.h | 17 ++++++
include/image.h | 31 ++++++++++
test/boot/imagemap.c | 123 ++++++++++++++++++++++++++++++++++-----
test/cmd_ut.c | 4 +-
9 files changed, 282 insertions(+), 91 deletions(-)
base-commit: 03e0ee96b1cf21a20def03c079ca05427ebff208
--
2.56.0
next reply other threads:[~2026-10-14 8:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 8:38 Daniel Golle [this message]
2026-10-14 8:38 ` [PATCH 01/11] test: cmd_ut: keep the suite list alphabetical Daniel Golle
2026-10-14 8:38 ` [PATCH 02/11] boot: bootm: derive the header probe size Daniel Golle
2026-10-14 8:39 ` [PATCH 03/11] boot: imagemap: correct the lookup guard rationale Daniel Golle
2026-10-14 8:39 ` [PATCH 04/11] test: boot: imagemap: declare locals at the top Daniel Golle
2026-10-14 8:39 ` [PATCH 05/11] doc: imagemap: describe the API and phase gating Daniel Golle
2026-10-14 8:39 ` [PATCH 06/11] doc: develop: sort the imagemap index entry Daniel Golle
2026-10-14 8:39 ` [PATCH 07/11] boot: imagemap: name the device after its partition Daniel Golle
2026-10-14 8:40 ` [PATCH 08/11] boot: bootm: set the imagemap from bootm_start() Daniel Golle
2026-10-14 8:40 ` [PATCH 09/11] boot: fit: share the external-data offset calculation Daniel Golle
2026-10-14 8:40 ` [PATCH 10/11] boot: build the imagemap pointers only when enabled Daniel Golle
2026-10-14 8:40 ` [PATCH 11/11] test: boot: imagemap: caller-owned region not resized Daniel Golle
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=cover.1791966831.git.daniel@makrotopia.org \
--to=daniel@makrotopia.org \
--cc=anders.roxell@linaro.org \
--cc=anton@binarly.io \
--cc=aristo.chen@canonical.com \
--cc=openwrt-devel@lists.openwrt.org \
--cc=rs@ti.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
--cc=vjardin@free.fr \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.