kernel-brax3-ubuntu-touch/drivers/tee/gud/500/MobiCoreDriver/Makefile
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

57 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 core driver
#
GUD_ROOT_FOLDER := drivers/tee/gud/500
# add our modules to kernel.
obj-$(CONFIG_TRUSTONIC_TEE_SUPPORT) += mcDrvModule.o
mcDrvModule-y := \
admin.o \
client.o \
clientlib.o \
clock.o \
fastcall.o \
iwp.o \
logging.o \
main.o \
mcp.o \
mmu.o \
nq.o \
protocol.o \
session.o \
teeclientapi.o \
user.o \
xen_be.o \
xen_common.o \
xen_fe.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
ifeq ($(CONFIG_MTK_ION),y)
ccflags-y += -I$(srctree)/drivers/staging/android/mtk_ion
else
ccflags-y += -I$(srctree)/drivers/staging/android/aosp_ion
endif
# timesync to get boot time
ccflags-y += -I$(srctree)/drivers/misc/mediatek/timer/timesync/