You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.0 KiB
64 lines
2.0 KiB
# |
|
# Copyright (C) 2016 MediaTek Inc. |
|
# |
|
# This program is free software; you can redistribute it and/or modify |
|
# it under the terms of the GNU General Public License version 2 as |
|
# published by the Free Software Foundation. |
|
# |
|
# This program is distributed in the hope that it will be useful, |
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
# See http://www.gnu.org/licenses/gpl-2.0.html for more details. |
|
# |
|
|
|
ifeq ($(CONFIG_MTK_ECCCI_DRIVER), y) |
|
|
|
ccflags-y += -I$(srctree)/ |
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/eccci/$(MTK_PLATFORM) |
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/eccci/inc/ |
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/eccci/ |
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/$(MTK_PLATFORM) |
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/include |
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/ |
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/emi_bwl/$(MTK_PLATFORM) |
|
# security objects |
|
MASP_CORE_DRIVER_DIR := $(srctree)/drivers/misc/mediatek/drivers/masp |
|
|
|
ifeq ($(CONFIG_MTK_QOS_SUPPORT), y) |
|
ccflags-y += -I$(srctree)/drivers/devfreq/ |
|
endif |
|
|
|
ifeq ($(CONFIG_MTK_SECURITY_SW_SUPPORT), y) |
|
ifeq ($(CONFIG_CUSTOM_SEC_AUTH_SUPPORT), y) |
|
clean-files += $(CCCI_CUSTOM_DRIVER_DIR)/cust_auth.o |
|
else |
|
clean-files += $(patsubst $(obj)/%,%,$(wildcard auth/*.o)) |
|
endif |
|
endif |
|
|
|
ifeq ($(CONFIG_MTK_SECURITY_SW_SUPPORT), y) |
|
ifeq ($(CONFIG_CUSTOM_SEC_AUTH_SUPPORT), y) |
|
CCCI_CUSTOM_DRIVER_DIR := $(MTK_PATH_CUSTOM)/$(call lc,$(MTK_PROJECT))/kernel/ccci |
|
ccci_plat-y += $(CCCI_CUSTOM_DRIVER_DIR)/cust_auth.o |
|
endif |
|
endif |
|
|
|
ifeq ($(CONFIG_MTK_SECURITY_SW_SUPPORT), y) |
|
ccflags-y += -DENABLE_MD_IMG_SECURITY_FEATURE |
|
endif |
|
ifeq ($(CONFIG_MTK_SEC_MODEM_NVRAM_ANTI_CLONE), y) |
|
ccflags-y += -DMTK_SEC_MODEM_NVRAM_ANTI_CLONE |
|
endif |
|
|
|
# CCCI objects |
|
obj-$(CONFIG_MTK_ECCCI_DRIVER) := ccci.o |
|
|
|
# platform dependent parts |
|
ccci-y := ccci_platform.o $(core_obj) $(mach_obj) $(sec_obj) |
|
ifeq ($(CONFIG_MTK_ECCCI_CLDMA), y) |
|
ccci-y += md_sys1_platform.o |
|
endif |
|
|
|
else |
|
obj- := dummy.o # avoid build error |
|
endif
|
|
|