Skip to content

RFC kbuild: Add support to build overlays (%.dtbo)

Viresh Kumar linux-devicetree linux-kbuild lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kbuild: Add support to build overlays (%.dtbo)Makefile scripts/Makefile.lib+14 -20 replies
2/2scripts: dtc: Handle outform dtboscripts/dtc/dtc.c+2 -02 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/2] kbuild: Add support to build overlays (%.dtbo)

Hello,

Here is an attempt to make some changes in the kernel to allow building of device tree overlays.

While at it, I would also like to discuss about how we should mention the base DT blobs in the Makefiles for the overlays, so they can be build tested to make sure the overlays apply properly.

A simple way is to mention that with -base extension, like this:

$(overlay-file)-base := platform-base.dtb

Any other preference ?

Also fdtoverlay is an external entity right now, and is not part of the kernel. Do we need to make it part of the kernel ? Or keep using the external entity ?

Thanks.

--
Viresh

Viresh Kumar (2):
kbuild: Add support to build overlays (%.dtbo)
scripts: dtc: Handle outform dtbo

 Makefile             |  4 ++--
 scripts/Makefile.lib | 12 ++++++++++++
 scripts/dtc/dtc.c    |  2 ++
 3 files changed, 16 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.0.rc1.19.g042ed3e048af