Skip to content

of: overlay: fix __symbols__ handling and add selftest suite

Stefan Kerkmann barebox 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20261014-fix-overlay-b53fbdff8ddc

Versions newest first

  1. v2 Latest5 patches 1 replyApplied
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Added: selftest suite to cover of_overlay handling
- Fixed: labels (symbol) inside a fragment but not under an __overlay__
node are ignored
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5of: overlay: of_overlay_fix_path: skip symbols without __overlay__ nodedrivers/of/overlay.c+18 -60 replies
2/5of: overlay: fix_path/apply_symbols: add more debugging callsdrivers/of/overlay.c+4 -20 replies
3/5tests: of_overlay: add selftests skeletontest/self/Kconfig test/self/Makefile test/self/of_overlay.c+24 -00 replies
4/5tests: of_overlay: add __symbols__ merging teststest/self/Makefile test/self/of_overlay.c test/self/of_overlay_with_symbols.dts +1 more+150 -00 replies
5/5tests: of_overlay: add fragment application teststest/self/Makefile test/self/of_overlay.c test/self/of_overlay.dtso +1 more+127 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] of: overlay: fix __symbols__ handling and add selftest suite

---
Changes in v2:
- Added: selftest suite to cover of_overlay handling
- Fixed: labels (symbol) inside a fragment but not under an __overlay__
node are ignored
- Link to v1: https://patch.msgid.link/[email protected]

To: Sascha Hauer <[email protected]>
To: "open list:BAREBOX" <[email protected]>

---
Stefan Kerkmann (5):
of: overlay: of_overlay_fix_path: skip symbols without __overlay__ node
of: overlay: fix_path/apply_symbols: add more debugging calls
tests: of_overlay: add selftests skeleton
tests: of_overlay: add __symbols__ merging tests
tests: of_overlay: add fragment application tests

 drivers/of/overlay.c                     |  30 ++++--
 test/self/Kconfig                        |   7 ++
 test/self/Makefile                       |   5 +
 test/self/of_overlay.c                   | 174 +++++++++++++++++++++++++++++++
 test/self/of_overlay.dtso                |  34 ++++++
 test/self/of_overlay_missing_target.dtso |  24 +++++
 test/self/of_overlay_with_symbols.dts    |  14 +++
 test/self/of_overlay_with_symbols.dtso   |  43 ++++++++
 8 files changed, 323 insertions(+), 8 deletions(-)

---
base-commit: e82842ffe3c7993dac4f8493fb4a44c4d35810ca
change-id: 20261014-fix-overlay-b53fbdff8ddc

Best regards,

Signature · 1 line
Stefan Kerkmann <[email protected]>