tee: optee: fix build error caused by recent optee tracepoints feature
Subsystems (2)
PATCH 1/1 tee: optee: fix build error caused by recent optee tracepoints feature
If build kernel without "O=dir", below error will be seen:
In file included from drivers/tee/optee/optee_trace.h:67,
from drivers/tee/optee/call.c:18:./include/trace/define_trace.h:95:42: fatal error: ./optee_trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
Fix it by adding below line to Makefile:
CFLAGS_call.o := -I$(src)
Tested with and without "O=dir", both can build successfully.
--- 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
Quoted 9 lines
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]>
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
Thank you.
Signature · 1 line
Heiko
Quoted 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]>
I've picked up this.
Thanks,
Jens
Hi Jens,
Am Di., 30. März 2021 um 10:26 Uhr schrieb Jens Wiklander <[email protected]>:
Quoted 14 lines · Jisheng Zhang
Quoted 12 lines
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.Fix it by adding below line to
Makefile:
CFLAGS_call.o := -I$(src)
Quoted 7 lines
Quoted 5 lines
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]>I've picked up this.
For what tree did you pick this? I still see this build failure on the latest next tree (next-20210401).
Quoted 3 lines
Thanks,
Jens
Thank you,
Heiko
Hi Heiko,
[+Arnd]
Quoted 21 lines · Heiko Thiery
Hi Jens,
Am Di., 30. März 2021 um 10:26 Uhr schrieb Jens Wiklander <[email protected]>:
Quoted 16 lines · Jisheng Zhang
Quoted 14 lines
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.Fix it by adding below line to
Makefile:
CFLAGS_call.o := -I$(src)Tested with and without "O=dir", both can build successfully.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Reported-by Guenter Roeck <[email protected]>Suggested-by Steven Rostedt <[email protected]>Signed-off-by Jisheng Zhang <[email protected]>I've picked up this.
For what tree did you pick this? I still see this build failure on the latest next tree (next-20210401).
The next tree hasn't been updated since 1th of April so it's not unexpected. The fix is supposed to be on its way to
https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/log/?h=arm/drivers
, I can't see it there yet though.
Cheers,
Jens
Hi Jens,
Am Di., 6. Apr. 2021 um 14:30 Uhr schrieb Jens Wiklander <[email protected]>:
Quoted 33 lines
Hi Heiko,
[+Arnd]
Quoted 27 lines · Heiko Thiery
Hi Jens,
Am Di., 30. März 2021 um 10:26 Uhr schrieb Jens Wiklander <[email protected]>:
Quoted 21 lines · Jisheng Zhang
Quoted 9 lines
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]>I've picked up this.
Quoted 7 lines
Quoted 2 lines
For what tree did you pick this? I still see this build failure on the latest next tree (next-20210401).
The next tree hasn't been updated since 1th of April so it's not unexpected. The fix is supposed to be on its way to
https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/log/?h=arm/drivers
, I can't see it there yet though.
Ah I see. Now it has been landed in the actual next tree.
Thank you,
Heiko