18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci# ========================================================================== 38c2ecf20Sopenharmony_ci# Installing dtb files 48c2ecf20Sopenharmony_ci# 58c2ecf20Sopenharmony_ci# Installs all dtb files listed in $(dtb-y) either in the 68c2ecf20Sopenharmony_ci# INSTALL_DTBS_PATH directory or the default location: 78c2ecf20Sopenharmony_ci# 88c2ecf20Sopenharmony_ci# $INSTALL_PATH/dtbs/$KERNELRELEASE 98c2ecf20Sopenharmony_ci# ========================================================================== 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cisrc := $(obj) 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciPHONY := __dtbs_install 148c2ecf20Sopenharmony_ci__dtbs_install: 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciinclude include/config/auto.conf 178c2ecf20Sopenharmony_ciinclude scripts/Kbuild.include 188c2ecf20Sopenharmony_ciinclude $(src)/Makefile 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_cidtbs := $(addprefix $(dst)/, $(dtb-y) $(if $(CONFIG_OF_ALL_DTBS),$(dtb-))) 218c2ecf20Sopenharmony_cisubdirs := $(addprefix $(obj)/, $(subdir-y) $(subdir-m)) 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci__dtbs_install: $(dtbs) $(subdirs) 248c2ecf20Sopenharmony_ci @: 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciquiet_cmd_dtb_install = INSTALL $@ 278c2ecf20Sopenharmony_ci cmd_dtb_install = install -D $< $@ 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci$(dst)/%.dtb: $(obj)/%.dtb 308c2ecf20Sopenharmony_ci $(call cmd,dtb_install) 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ciPHONY += $(subdirs) 338c2ecf20Sopenharmony_ci$(subdirs): 348c2ecf20Sopenharmony_ci $(Q)$(MAKE) $(dtbinst)=$@ dst=$(patsubst $(obj)/%,$(dst)/%,$@) 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci.PHONY: $(PHONY) 37