From 553bc7f9e1b766020fa762356747a79560c9f91b Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Tue, 26 Oct 2021 10:16:10 -0700 Subject: [PATCH] Makefile.dtbinst: Add optional DTB_TYPES prefix Vendor packages frequently install a set of DTBs based on a collection of targets. For instance, DTBs which are installed as part of a target supporting "Kalama" include the base DTBs and board DTBOs. Collecting that list of DTBs is less ideal because the list of DTBs must be maintained in Makefile which is responsible for compiling the DTBs plus in another file which knows to package all those DTBs. Ideally, list can be maintained in one Makefile. Makefiles can specify a list of DTBs for "foo" with foo-dtbs-y. Build script can run "make dtbs" as normal and (now) also run "make DTB_TYPES="foo-" dtb_install" to install only the dtbs supporting foo. Change-Id: Ic162038b03a37ba822e131a92e3a8d540194b021 Signed-off-by: Elliot Berman Signed-off-by: Guru Das Srinagesh --- scripts/Makefile.dtbinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst index 190d781e84f4..01f8bbb11e62 100644 --- a/scripts/Makefile.dtbinst +++ b/scripts/Makefile.dtbinst @@ -17,7 +17,7 @@ include include/config/auto.conf include $(srctree)/scripts/Kbuild.include include $(src)/Makefile -dtbs := $(addprefix $(dst)/, $(dtb-y) $(if $(CONFIG_OF_ALL_DTBS),$(dtb-))) +dtbs := $(addprefix $(dst)/, $($(DTB_TYPES)dtb-y) $(if $(CONFIG_OF_ALL_DTBS),$($(DTB_TYPES)dtb-))) subdirs := $(addprefix $(obj)/, $(subdir-y) $(subdir-m)) __dtbs_install: $(dtbs) $(subdirs)