6db4831e98
Android 14
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# Copyright (c) 2013-2018 TRUSTONIC LIMITED
|
|
# All Rights Reserved.
|
|
#
|
|
# 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.
|
|
|
|
#
|
|
# Makefile for the Kinibi trusted UI driver
|
|
#
|
|
|
|
#GUD_ROOT_FOLDER := drivers/gud/
|
|
|
|
# add our modules to kernel.
|
|
obj-$(CONFIG_TRUSTONIC_TRUSTED_UI) += t-base-tui.o
|
|
|
|
t-base-tui-y := main.o tlcTui.o trustedui.o tui-hal_$(MTK_PLATFORM).o
|
|
|
|
# Release mode by default
|
|
ccflags-y += -DNDEBUG
|
|
ccflags-y += -Wno-declaration-after-statement
|
|
|
|
ccflags-$(CONFIG_TRUSTONIC_TEE_DEBUG) += -DDEBUG
|
|
|
|
# MobiCore Driver includes
|
|
ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreDriver/public
|
|
|
|
# MobiCore TlcTui required includes
|
|
ccflags-y += -I$(GUD_ROOT_FOLDER)/TlcTui/inc \
|
|
-I$(GUD_ROOT_FOLDER)/TlcTui/public
|
|
|
|
ifeq ($(CONFIG_MTK_SSMR),y)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/memory-ssmr/
|
|
endif
|
|
|
|
ccflags-y += -DTUI_ENABLE_DISPLAY
|
|
ccflags-y += -DTUI_ENABLE_TOUCH
|
|
ccflags-y += -DTUI_LOCK_I2C
|
|
ccflags-y += -DTUI_ENABLE_MPU
|
|
|
|
|