6db4831e98
Android 14
68 lines
1.8 KiB
Makefile
68 lines
1.8 KiB
Makefile
#
|
|
# Copyright (C) 2015 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 the
|
|
# GNU General Public License for more details.
|
|
#
|
|
|
|
#FPGA project no need build-in
|
|
ifndef CONFIG_MTK_FPGA
|
|
|
|
# ccci_util is build when ECCCI driver or CCCI driver enabled
|
|
|
|
|
|
ifeq ($(CONFIG_MTK_ECCCI_DRIVER), y)
|
|
CCCI_OBJ=y
|
|
else ifeq ($(CONFIG_MTK_ECCCI_DRIVER), m)
|
|
CCCI_OBJ=m
|
|
else
|
|
CCCI_OBJ=n
|
|
endif
|
|
|
|
ifneq ($(CONFIG_MTK_ENG_BUILD),y)
|
|
ifeq ($(CONFIG_EXTREME_LOW_RAM), y)
|
|
ccflags-y += -DCCCI_LOG_DISABLE
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(CCCI_OBJ), n)
|
|
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/ccci_util
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/memory-amms
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/aee/
|
|
|
|
ifeq ($(CONFIG_MTK_SECURITY_SW_SUPPORT), y)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/masp/asfv2/asf_export_inc
|
|
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
|
|
|
|
obj-$(CCCI_OBJ) += ccci_util_lib.o
|
|
ccci_util_lib-$(CCCI_OBJ) := ccci_util_lib_fo.o \
|
|
ccci_util_lib_load_img.o \
|
|
ccci_util_lib_sys.o \
|
|
ccci_private_log.o \
|
|
ccci_util_lib_time.o \
|
|
ccci_util_lib_main.o \
|
|
ccci_util_ld_md_errno.o \
|
|
ccci_util_broadcast.o \
|
|
ccci_util_pin_broadcast.o \
|
|
ccci_util_sib.o \
|
|
ccci_util_md_rat.o
|
|
|
|
endif
|
|
endif
|
|
|
|
obj-y += CCCI_UTIL_DUMMY.o # avoid build error
|
|
CCCI_UTIL_DUMMY-y := ccci_util_dummy.o
|