tee: optee: fix build error caused by recent optee tracepoints feature
Guenter Roeck
Tested-byQuoted 9 lines · Jisheng Zhang
If build kernel without "O=dir", below error will be seen:
In file included from
drivers/tee/optee/optee_trace.h:67,
fromdrivers/tee/optee/call.c:18:./include/trace/define_trace.h:95:42: fatal error: ./optee_trace.h: No such file or directory
95 | #includeTRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
Quoted 8 lines
Fix it by adding below line to
Makefile:
CFLAGS_call.o := -I$(src)Tested with and without "O=dir", both can build successfully.
Reported-by Guenter Roeck <[email protected]>Suggested-by Steven Rostedt <[email protected]>Signed-off-by Jisheng Zhang <[email protected]>
Tested-by Guenter Roeck <[email protected]>
Quoted 18 lines
--- drivers/tee/optee/Makefile | 3 +++ 1 file changed, 3 insertions(+)drivers/tee/optee/Makefile +3
-0@@ -6,3 +6,6 @@ optee-objs += rpc.o optee-objs += supp.o optee-objs += shm_pool.o optee-objs += device.o + +# for tracing framework to find optee_trace.h +CFLAGS_call.o := -I$(src)Signature · 1 line
2.31.0