# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_OPTEE) += optee.o
optee-objs += core.o
optee-objs += call.o
optee-objs += notif.o
optee-objs += rpc.o
optee-objs += supp.o
ifneq ($(filter y m, $(CONFIG_OPTEE_RAMLOG)),)
ccflags-y += -DSET_USER_ID=105
optee-objs += optee_ramlog.o
endif
ifneq ($(filter y m, $(CONFIG_OPTEE_REE_CONSOLE)),)
optee-objs += optee_kreeconsole.o
endif
ifneq ($(filter y m, $(CONFIG_OPTEE_REE_CLK_CTRL)),)
optee-objs += optee_clk_ctrl.o
endif
optee-objs += device.o
optee-objs += smc_abi.o
optee-objs += ffa_abi.o

# for tracing framework to find optee_trace.h
CFLAGS_smc_abi.o := -I$(src)
