kbuild: Support flat DTBs install

In preparation to move Arm .dts files into sub-directories grouped
by vendor/family, the current flat tree of DTBs generated by
dtbs_install needs to be maintained. Moving the installed DTBs to
sub-directories would break various consumers using 'make dtbs_install'.

This is a NOP until sub-directories are introduced.

Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
Rob Herring 2018-12-06 10:29:51 -06:00
parent 86684c2481
commit 6a1d798feb
2 changed files with 4 additions and 1 deletions

View File

@ -1460,6 +1460,9 @@ config USE_OF
help help
Include support for flattened device tree machine descriptions. Include support for flattened device tree machine descriptions.
config ARCH_WANT_FLAT_DTB_INSTALL
def_bool y
config ATAGS config ATAGS
bool "Support for the traditional ATAGS boot data passing" bool "Support for the traditional ATAGS boot data passing"
default y default y

View File

@ -34,6 +34,6 @@ $(dst)/%.dtbo: $(obj)/%.dtbo
PHONY += $(subdirs) PHONY += $(subdirs)
$(subdirs): $(subdirs):
$(Q)$(MAKE) $(dtbinst)=$@ dst=$(patsubst $(obj)/%,$(dst)/%,$@) $(Q)$(MAKE) $(dtbinst)=$@ dst=$(if $(CONFIG_ARCH_WANT_FLAT_DTB_INSTALL),$(dst),$(patsubst $(obj)/%,$(dst)/%,$@))
.PHONY: $(PHONY) .PHONY: $(PHONY)