Files
android_kernel_samsung_sm87…/qcom/Makefile
Melody Olvera c334acf377 ARM: dts: msm: Add initial device trees for Sun SoC
Add initial device trees to support Sun SoC and it's
platforms.

Change-Id: I885a56e29438675e3d7aa449f5e25f00cb28b02a
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
2023-04-03 11:54:34 -07:00

38 lines
1.2 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0
# add-overlay defines the target with following naming convention:
# <base>-<board>-dtbs = base.dtb board.dtbo
#
# Combined dtb target is also generated using the fdt_overlay tool.
# dtb-y += <base>-<board>.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