From: Pengguang Zhu Date: Wed, 2 Dec 2020 07:21:03 +0000 (+0800) Subject: optee_driver: fix compile error on buildroot [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff8863c1accfc1b55565d92012262ec31302df27;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_optee.git 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 --- 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