Skip to content

dt: Add fdtoverlay rule and statically build unittest

Viresh Kumar linux-devicetree linux-kbuild lkml 4 versions – Applied

Status from this message: Applied patches 1,2,4,5, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 Latest5 patches 30 repliesApplied
  2. v105 patches 2 repliesSuperseded
  3. v94 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v84 patches5 repliesSuperseded

Changes in v11 from the cover letter

- Update patch 4/5 to fix checkpatch warning on spaces and tabs.
- Added Acked-by from Masahiro for patch 2/5.

Patches in v11 Applied

#Subject and filesSizeRepliesApplied
1/5kbuild: Simplify builds with CONFIG_OF_ALL_DTBSscripts/Makefile.lib+2 -30 replies
2/5kbuild: Add generic rule to apply fdtoverlayscripts/Makefile.lib+24 -20 replies
3/5kbuild: Allow .dtso format for overlay source filesscripts/Makefile.lib+8 -125 replies
4/5of: unittest: Create overlay_common.dtsi and testcases_common.dtsidrivers/of/unittest-data/overlay_base.dts drivers/of/unittest-data/overlay_common.dtsi drivers/of/unittest-data/testcases.dts +2 more+128 -1060 replies
5/5of: unittest: Statically apply overlays using fdtoverlaydrivers/of/unittest-data/Makefile drivers/of/unittest-data/static_base_1.dts drivers/of/unittest-data/static_base_2.dts+56 -00 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGeert UytterhoevenMasahiro YamadaFrank Rowand
SeriesR-b T-b
1/5A-b
2/5A-b
3/5R-b T-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v11 thread

Cover letter [PATCH V11 0/5] dt: Add fdtoverlay rule and statically build unittest

Hi,

This patchset adds a generic rule for applying overlays using fdtoverlay tool and then updates unittests to get built statically using the same.

V10->V11:
- Update patch 4/5 to fix checkpatch warning on spaces and tabs.
- Added Acked-by from Masahiro for patch 2/5.

V9->V10:
- Add a new patch to allow .dtso files.
- Update 2/5 to be more efficient and also generate symbols for base files automatically.
- No need to add lines like DTC_FLAGS_foo_base += -@ in patch 5/5.
- Add Ack by Masahiro for 1/5.

V8->V9:
- Added some comment in patch 3/4 based on Frank's suggestions.

V7->V8:
- Patch 1 is new.
- Platforms need to use dtb-y += foo.dtb instead of overlay-y += foo.dtb.
- Use multi_depend instead of .SECONDEXPANSION.
- Use dtb-y for unittest instead of overlay-y.
- Rename the commented dtb filess in unittest Makefile as .dtbo.
- Improved Makefile code (I am learning a lot every day :)

V6->V7:
- Dropped the first 4 patches, already merged.
- Patch 1/3 is new, suggested by Rob and slightly modified by me.
- Adapt Patch 3/3 to the new rule and name the overlay dtbs as .dtbo.

--
Viresh

Rob Herring (1):
kbuild: Add generic rule to apply fdtoverlay

Viresh Kumar (4):
kbuild: Simplify builds with CONFIG_OF_ALL_DTBS
kbuild: Allow .dtso format for overlay source files
of: unittest: Create overlay_common.dtsi and testcases_common.dtsi
of: unittest: Statically apply overlays using fdtoverlay

 drivers/of/unittest-data/Makefile             | 48 ++++++++++
 drivers/of/unittest-data/overlay_base.dts     | 90 +-----------------
 drivers/of/unittest-data/overlay_common.dtsi  | 91 +++++++++++++++++++
 drivers/of/unittest-data/static_base_1.dts    |  4 +
 drivers/of/unittest-data/static_base_2.dts    |  4 +
 drivers/of/unittest-data/testcases.dts        | 23 ++---
 .../of/unittest-data/testcases_common.dtsi    | 19 ++++
 .../of/unittest-data/tests-interrupts.dtsi    | 11 +--
 scripts/Makefile.lib                          | 40 ++++++--
 9 files changed, 218 insertions(+), 112 deletions(-)
 create mode 100644 drivers/of/unittest-data/overlay_common.dtsi
 create mode 100644 drivers/of/unittest-data/static_base_1.dts
 create mode 100644 drivers/of/unittest-data/static_base_2.dts
 create mode 100644 drivers/of/unittest-data/testcases_common.dtsi

base-commit: a38fd8748464831584a19438cbb3082b5a2dab15

Signature · 1 line
2.25.0.rc1.19.g042ed3e048af