2 # Makefile for the linux kernel.
5 include $(srctree
)/drivers
/misc
/mediatek
/Makefile.custom
7 ccflags-y
+= -I
$(srctree
)/
8 ccflags-y
+= -I
$(srctree
)/include/linux
10 # Fix-me: marked others for early porting
11 ifeq ($(MTK_INTERNAL
), yes
)
12 ifeq ($(MTK_USE_RESERVED_EXT_MEM
), yes
)
13 KBUILD_CFLAGS
+= -DMTK_USE_RESERVED_EXT_MEM
17 ifeq ($(MTK_SECURITY_SW_SUPPORT
), yes
)
18 ifeq ($(MTK_SEC_FASTBOOT_UNLOCK_SUPPORT
), yes
)
19 KBUILD_CFLAGS
+= -DMTK_SEC_FASTBOOT_UNLOCK_SUPPORT
23 ifeq ($(MTK_TB_WIFI_3G_MODE
), WIFI_ONLY
)
24 KBUILD_CFLAGS
+= -DMTK_TB_WIFI_3G_MODE_WIFI_ONLY
27 obj-y
:= core.o timer.o mt_dbg.o
28 obj-y
+= mt_devs.o mt_gpt.o board.o
31 obj-y
+= mt_reg_dump.o
33 ifeq ($(CONFIG_SMP
),y
)
34 ccflags-y
+= -I
$(srctree
)
35 obj-y
+= mt-smp.o hotplug.o mt-headsmp.o mt_hotplug.o mt_hotplug_mechanism.o
37 # TO-FIX add # for do early porting in JB migration
38 obj-y
+= eint.o mt_freqhopping.o
39 obj-
$(CONFIG_MT65XX_TRACER
) += pmu_v7.o mon_interface.o mt_mon.o mt_emi_bm.o
41 obj-y
+= camera_sysram.o
42 obj-y
+= camera_pipe_mgr.o
43 #obj-y += camera_eis.o
44 #obj-y += camera_fdvt.o
45 ifeq ($(MTK_ALPS_BOX_SUPPORT
), yes
)
46 obj-y
+= mt_pm_ldo_dummy.o
50 obj-y
+= innercache.o mt_l2c.o
52 ccflags-y
+= -I
$(MTK_PATH_PLATFORM
)/drivers
/power \
53 -I
$(MTK_PATH_PLATFORM
)/drivers
/gpu
/mali
/mali
/include \
54 -I
$(MTK_PATH_SOURCE
)/drivers
/wdk
55 #obj-y += mt_spm.o mt_spm_sleep.o mt_spm_idle.o mt_spm_mtcmos.o
56 obj-y
+= mt_spm.o mt_spm_sleep.o mt_spm_mtcmos.o
57 ccflags-
$(CONFIG_MTK_IN_HOUSE_TEE_SUPPORT
) += -I
$(srctree
)/include/trustzone
/
59 #obj-y += mt_cpufreq.o mt_gpufreq.o mt_cpu_ss.o
60 obj-y
+= mt_cpufreq.o mt_cpu_ss.o
62 obj-y
+= mt_dormant.o cpu_dormant.o
63 obj-y
+= mt_dcm.o mt_idle.o
64 obj-y
+= mt_clkmgr_common.o
67 obj-y
+= mtk_ccci_helper.o
68 obj-y
+= mtk_eemcs_helper.o
70 ifneq ($(CONFIG_MTK_CCCI_DEVICES
),y
)
71 ccflags-y
+= -D__USING_DUMMY_CCCI_API__
78 #AFLAGS_swsusp.o := -DTEXT_OFFSET=$(TEXT_OFFSET)
79 obj-
$(CONFIG_HIBERNATION
) += cpu_hibernate.o swsusp.o
81 KBUILD_AFLAGS
:=$(KBUILD_AFLAGS
:-msoft-float
=-Wa
,-mfpu
=neon
)
83 ifeq ($(MTK_ALPS_BOX_SUPPORT
), yes
)
84 ccflags-y
+= -DMTK_ALPS_BOX_SUPPORT
87 # Module project related part
88 obj-y
+= $(ARCH_MTK_PROJECT
)/