blob: f3063a957e1e2524d31240d665a28e5421164998 [file] [log] [blame]
Andrew Geissler2edf0642023-09-11 08:24:07 -04001From b298400a5783453f64d8bebbd92db2c84c4a49fd Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Mon, 10 Jul 2023 14:09:16 +0100
4Subject: [PATCH] OPTEE Private Includes
5
Andrew Geissler23e02792023-07-21 09:06:10 -05006Change the optee module includes to be private instead of public, so they don't get used
7in every build, which can result in compile failures as /core/include/ doesn't exit.
8
9For some reason this behaviour isn't deterministic, a ticket has been filed with upstream.
10
11Upstream-Status: Pending
12Signed-off-by: Ross Burton <ross.burton@arm.com>
Andrew Geissler2edf0642023-09-11 08:24:07 -040013---
14 module/optee/console/CMakeLists.txt | 2 +-
15 module/optee/mbx/CMakeLists.txt | 2 +-
16 2 files changed, 2 insertions(+), 2 deletions(-)
Andrew Geissler23e02792023-07-21 09:06:10 -050017
18diff --git a/module/optee/console/CMakeLists.txt b/module/optee/console/CMakeLists.txt
Andrew Geissler2edf0642023-09-11 08:24:07 -040019index aebb7cc79766..942aa98c85ff 100644
Andrew Geissler23e02792023-07-21 09:06:10 -050020--- a/module/optee/console/CMakeLists.txt
21+++ b/module/optee/console/CMakeLists.txt
22@@ -14,7 +14,7 @@ target_include_directories(${SCP_MODULE_TARGET}
23 # Those includes are needed for mutex definitnion that is used in optee_smt
24 # notification
25 target_include_directories(${SCP_MODULE_TARGET}
26- PUBLIC "${SCP_OPTEE_DIR}/core/arch/arm/include/"
27+ PRIVATE "${SCP_OPTEE_DIR}/core/arch/arm/include/"
28 "${SCP_OPTEE_DIR}/core/include/"
29 "${SCP_OPTEE_DIR}/lib/libutils/ext/include/"
30 "${SCP_OPTEE_DIR}/lib/libutee/include/")
31diff --git a/module/optee/mbx/CMakeLists.txt b/module/optee/mbx/CMakeLists.txt
Andrew Geissler2edf0642023-09-11 08:24:07 -040032index 305fa42b7370..783a7970c2d5 100644
Andrew Geissler23e02792023-07-21 09:06:10 -050033--- a/module/optee/mbx/CMakeLists.txt
34+++ b/module/optee/mbx/CMakeLists.txt
35@@ -15,7 +15,7 @@ target_include_directories(${SCP_MODULE_TARGET}
36 # Those includes are needed for mutex defifitnion that is used in optee_smt
37 # notification
38 target_include_directories(${SCP_MODULE_TARGET}
39- PUBLIC "${SCP_OPTEE_DIR}/core/include/"
40+ PRIVATE "${SCP_OPTEE_DIR}/core/include/"
41 "${SCP_OPTEE_DIR}/lib/libutils/ext/include/"
42 "${SCP_OPTEE_DIR}/lib/libutee/include/")
43