
On Tue, Sep 03, 2024 at 05:21:51PM +0530, Prasad Kummari wrote:
Add a generic rule in Makefile.lib to automatically apply fdtoverlay, so that each platform doesn't need to include a complex rule. This also automatically appends DTC_FLAGS_foo_base += -@ to all base files.
The platform's Makefile only needs to have this now:
foo-dtbs := foo_base.dtb foo_overlay1.dtbo foo_overlay2.dtbo dtb-y := foo.dtb
The suffix-search macro hard-codes the suffix, '.o' and multi-search and real-search macros can be used for foo-dtbs, multi-dtb-y is a list of DTB constructed overlays, and base-dtb-y contains a list of base dtb.
Reference: https://lore.kernel.org/all/20920b0df6b067aca4040459a9677d7d1d6d766a.1615354...
Signed-off-by: Prasad Kummari prasad.kummari@amd.com
This really needs to be rephrased to be clear that you're cherry-picking: commit 15d16d6dadf6947ac7f9a686c615995c5a426ce2 Author: Rob Herring robh@kernel.org Date: Wed Mar 10 11:05:30 2021 +0530
kbuild: Add generic rule to apply fdtoverlay
out of the Linux kernel. We have other cherry-picks, just look at git log on scripts/Makefile.lib.