From 10de9b5a6a5b53a37600894115685f00d3bbfc2d Mon Sep 17 00:00:00 2001 From: Prasad Kummari Date: Fri, 6 Sep 2024 12:38:07 +0530 Subject: kbuild: cherry-pick kbuild fdtoverlay changes from linux Linux commits: 15d16d6dadf6 kbuild: Add generic rule to apply fdtoverlay 44f87191d105 kbuild: parameterize the .o part of suffix-search The Linux commit 15d16d6dadf6 adds 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 Signed-off-by: Prasad Kummari Reviewed-by: Tom Rini Signed-off-by: Michal Simek Link: https://lore.kernel.org/r/20240906070808.1045991-2-prasad.kummari@amd.com --- scripts/Kbuild.include | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/Kbuild.include') diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 62e0207f91b..5daceb26061 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -31,6 +31,10 @@ baseprereq = $(basename $(notdir $<)) # Escape single quote for use in echo statements escsq = $(subst $(squote),'\$(squote)',$1) +### +# real prerequisites without phony targets +real-prereqs = $(filter-out $(PHONY), $^) + ### # Easy method for doing a status message kecho := : -- cgit v1.2.3