From ff8863c1accfc1b55565d92012262ec31302df27 Mon Sep 17 00:00:00 2001 From: Pengguang Zhu Date: Wed, 2 Dec 2020 15:21:03 +0800 Subject: [PATCH] optee_driver: fix compile error on buildroot [1/1] 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 --- Makefile | 4 +++- optee/Makefile | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 548e54c..5f27978 100644 --- 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) diff --git a/optee/Makefile b/optee/Makefile index 12f9445..e9b6556 100644 --- a/optee/Makefile +++ b/optee/Makefile @@ -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 -- 2.20.1