optee_driver: fix compile error on buildroot [1/1]
authorPengguang Zhu <pengguang.zhu@amlogic.com>
Wed, 2 Dec 2020 07:21:03 +0000 (15:21 +0800)
committerPengguang Zhu <pengguang.zhu@amlogic.com>
Thu, 3 Dec 2020 02:39:57 +0000 (10:39 +0800)
PD#SWPL-36509

Problem:
compile fail on buildroot

Solution:
fix compile error on buildroot

Verify:
Android Q/R + AH212

Change-Id: I8c969b64090c0119961a837cbdc769a8e2763951
Signed-off-by: Pengguang Zhu <pengguang.zhu@amlogic.com>
Makefile
optee/Makefile

index 548e54c47708a9bbca3dbcb3fce9686016aefa5d..5f279782225ce3abc5b5500871b61fd00bf9a8dc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,9 @@ optee-objs := tee_core.o \
              tee_shm.o \
              tee_shm_pool.o
 
-LOCAL_INCLUDES += -I$(KERNEL_SRC)/$(M)/include \
+LOCAL_INCLUDES += -I$(M)/include \
+                -I$(M)/include/linux \
+                -I$(KERNEL_SRC)/$(M)/include \
                 -I$(KERNEL_SRC)/$(M)/include/linux
 
 ccflags-y+=$(LOCAL_INCLUDES)
index 12f9445cff113f3bdabe7c54a72dd92bb6871186..e9b65564f8326ca9c7fb7abe48bd2825f8f2ef99 100644 (file)
@@ -1,4 +1,8 @@
-LOCAL_INCLUDES += -I$(KERNEL_SRC)/$(M)/../include  \
+LOCAL_INCLUDES += -I$(M)/../include  \
+               -I$(M)/../include/linux \
+               -I$(M)/include \
+               -I$(M)/include/linux \
+               -I$(KERNEL_SRC)/$(M)/../include \
                -I$(KERNEL_SRC)/$(M)/../include/linux \
                -I$(KERNEL_SRC)/$(M)/include \
                -I$(KERNEL_SRC)/$(M)/include/linux