summaryrefslogtreecommitdiffstats
path: root/drivers/tee/optee/Makefile
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2021-07-21 16:30:28 +0200
committerJens Wiklander <jens.wiklander@linaro.org>2021-10-18 11:44:23 +0200
commitc51a564a5b48355f30309b84cdffe3f96d1ae0d3 (patch)
tree2dd51d153a652e9d6a03558bfe968f580961c6d9 /drivers/tee/optee/Makefile
parentoptee: refactor driver with internal callbacks (diff)
downloadlinux-c51a564a5b48355f30309b84cdffe3f96d1ae0d3.tar.xz
linux-c51a564a5b48355f30309b84cdffe3f96d1ae0d3.zip
optee: isolate smc abi
Isolate the ABI based on raw SMCs. Code specific to the raw SMC ABI is moved into smc_abi.c. This makes room for other ABIs with a clear separation. The driver changes to use module_init()/module_exit() instead of module_platform_driver(). The platform_driver_register() and platform_driver_unregister() functions called directly to keep the same behavior. This is needed because module_platform_driver() is based on module_driver() which can only be used once in a module. A function optee_rpc_cmd() is factored out from the function handle_rpc_func_cmd() to handle the ABI independent part of RPC processing. This patch is not supposed to change the driver behavior, it's only a matter of reorganizing the code. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee/optee/Makefile')
-rw-r--r--drivers/tee/optee/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tee/optee/Makefile b/drivers/tee/optee/Makefile
index 3aa33ea9e6a6..97ac3ab3e1c0 100644
--- a/drivers/tee/optee/Makefile
+++ b/drivers/tee/optee/Makefile
@@ -4,8 +4,8 @@ optee-objs += core.o
optee-objs += call.o
optee-objs += rpc.o
optee-objs += supp.o
-optee-objs += shm_pool.o
optee-objs += device.o
+optee-objs += smc_abi.o
# for tracing framework to find optee_trace.h
-CFLAGS_call.o := -I$(src)
+CFLAGS_smc_abi.o := -I$(src)