e4060e073e645a60e65da0f4de58134232f7b733
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm64 / boot / dts / Makefile
1 #include $(srctree)/mediatek/Makefile
2
3 dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb foundation-v8.dtb
4
5 dtb-$(CONFIG_ARCH_MT6752) += mt6752_evb_64.dtb k2v1_64.dtb
6
7 targets += dtbs
8
9 DTB_NAMES := $(subst $\",,$(CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES))
10 ifneq ($(DTB_NAMES),)
11 DTB_LIST := $(addsuffix .dtb,$(DTB_NAMES))
12 else
13 DTB_LIST := $(dtb-y)
14 endif
15 targets += $(DTB_LIST)
16
17 dtbs: $(addprefix $(obj)/, $(DTB_LIST))
18
19 clean-files := dts/*.dtb *.dtb
20
21 MTK_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
22 ARCH_MTK_PROJECT := $(subst ",,$(CONFIG_ARCH_MTK_PROJECT))
23
24 MTK_ARCH_LIST := $(CONFIG_ARCH_MT6752) \
25 $(CONFIG_ARCH_MT6732) \
26 $(CONFIG_ARCH_MT6595) \
27 $(CONFIG_ARCH_MT6795) \
28 $(CONFIG_ARCH_MT6735) \
29 $(CONFIG_ARCH_MT6735M) \
30 $(CONFIG_ARCH_MT6753)
31
32 ifneq ($(filter y, $(MTK_ARCH_LIST)),)
33 # For K2/6795 arm32
34 DCT_EXTRA_PATH := $(objtree)/drivers/misc/mediatek/mach/$(MTK_PLATFORM)/$(ARCH_MTK_PROJECT)/dct/dct/
35 else
36 DCT_EXTRA_PATH := $(objtree)/arch/arm/mach-$(MTK_PLATFORM)/$(ARCH_MTK_PROJECT)/dct/dct/
37 endif
38
39 DTC_FLAGS ?= -i $(DCT_EXTRA_PATH)