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

From: Viresh Kumar
Date: Tue Jan 05 2021 - 06:25:17 EST


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(-)

--
2.25.0.rc1.19.g042ed3e048af