# SPDX-License-Identifier: GPL-2.0 # add-overlay defines the target with following naming convention: # --dtbs = base.dtb board.dtbo # # Combined dtb target is also generated using the fdt_overlay tool. # dtb-y += -.dtb add-overlays = $(foreach o,$1,$(foreach b,$2,$(eval $(basename $b)-$(basename $o)-dtbs = $b $o) $(basename $b)-$(basename $o).dtb)) # sun-dtb-y is list of DTBs to install when doing non-overlay build # sun-overlays-dtb-y is list of DTBs and DTBOs to install when doing overlay-supported build # see DTB_TYPES from scripts/Makefile.dtbinst and install_dtbs from build.config.msm.common # ifneq ($(CONFIG_ARCH_QTI_VM), y) SUN_BASE_DTB += sun.dtb SUN_BOARDS += \ sun-mtp-overlay.dtbo \ sun-cdp-overlay.dtbo \ sun-qrd-overlay.dtbo NOAPQ_SUN_BOARDS += \ sun-rumi-overlay.dtbo sun-dtb-$(CONFIG_ARCH_SUN) += \ $(call add-overlays, $(SUN_BOARDS) $(NOAPQ_SUN_BOARDS),$(SUN_BASE_DTB))\ $(call add-overlays, $(SUN_BOARDS) $(APQ_SUN_BOARDS),$(SUN_APQ_BASE_DTB)) sun-overlays-dtb-$(CONFIG_ARCH_SUN) += $(SUN_BOARDS) $(NOAPQ_SUN_BOARDS) $(SUN_BASE_DTB) $(SUN_APQ_BASE_DTB) dtb-y += $(sun-dtb-y) endif always-y := $(dtb-y) subdir-y := $(dts-dirs) clean-files := *.dtb *.dtbo