import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm64 / boot / dts / Makefile
CommitLineData
6fa3eb70
S
1#include $(srctree)/mediatek/Makefile
2
90556ca1
PM
3dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb foundation-v8.dtb
4
6fa3eb70
S
5dtb-$(CONFIG_ARCH_MT6752) += mt6752_evb_64.dtb k2v1_64.dtb
6
da4cbc6d
SW
7targets += dtbs
8
6fa3eb70
S
9DTB_NAMES := $(subst $\",,$(CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES))
10ifneq ($(DTB_NAMES),)
11DTB_LIST := $(addsuffix .dtb,$(DTB_NAMES))
12else
13DTB_LIST := $(dtb-y)
14endif
15targets += $(DTB_LIST)
16
17dtbs: $(addprefix $(obj)/, $(DTB_LIST))
18
19clean-files := dts/*.dtb *.dtb
20
21MTK_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
22ARCH_MTK_PROJECT := $(subst ",,$(CONFIG_ARCH_MTK_PROJECT))
23
24MTK_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
32ifneq ($(filter y, $(MTK_ARCH_LIST)),)
33# For K2/6795 arm32
34DCT_EXTRA_PATH := $(objtree)/drivers/misc/mediatek/mach/$(MTK_PLATFORM)/$(ARCH_MTK_PROJECT)/dct/dct/
35else
36DCT_EXTRA_PATH := $(objtree)/arch/arm/mach-$(MTK_PLATFORM)/$(ARCH_MTK_PROJECT)/dct/dct/
37endif
da4cbc6d 38
6fa3eb70 39DTC_FLAGS ?= -i $(DCT_EXTRA_PATH)