[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1530503634-32241-2-git-send-email-lizhijian@cn.fujitsu.com>
Date: Mon, 2 Jul 2018 11:53:52 +0800
From: Li Zhijian <lizhijian@...fujitsu.com>
To: linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org,
shuah@...nel.org
Cc: Li Zhijian <lizhijian@...fujitsu.com>,
Pintu Agarwal <pintu.ping@...il.com>
Subject: [PATCH 1/3] selftests/android: fix compiling error
lizhijian@...well-OptiPlex-9020:/home/lizj/linux/tools/testing/selftests/android/ion$ make
gcc -I. -I../../../../../drivers/staging/android/uapi/ -I../../../../../usr/include/ -Wall -O2 -g ionapp_export.c ipcsocket.c ionutils.c -o ionapp_export
gcc -I. -I../../../../../drivers/staging/android/uapi/ -I../../../../../usr/include/ -Wall -O2 -g ionapp_import.c ipcsocket.c ionutils.c -o ionapp_import
gcc -I. -I../../../../../drivers/staging/android/uapi/ -I../../../../../usr/include/ -Wall -O2 -g ionmap_test.c ipcsocket.c ionutils.c -o ionmap_test
ionmap_test.c:12:27: fatal error: linux/dma-buf.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'ionmap_test' failed
make: *** [ionmap_test] Error 1
It requires headers_install to $TOP/usr
CC: Shuah Khan <shuah@...nel.org>
CC: Pintu Agarwal <pintu.ping@...il.com>
Signed-off-by: Li Zhijian <lizhijian@...fujitsu.com>
---
tools/testing/selftests/android/ion/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/android/ion/Makefile b/tools/testing/selftests/android/ion/Makefile
index e036952..9f83299 100644
--- a/tools/testing/selftests/android/ion/Makefile
+++ b/tools/testing/selftests/android/ion/Makefile
@@ -4,7 +4,10 @@ CFLAGS := $(CFLAGS) $(INCLUDEDIR) -Wall -O2 -g
TEST_GEN_FILES := ionapp_export ionapp_import ionmap_test
-all: $(TEST_GEN_FILES)
+all: ../../../../../usr/include/linux/dma-buf.h $(TEST_GEN_FILES)
+
+../../../../../usr/include/linux/dma-buf.h:
+ make -C ../../../../../ headers_install INSTALL_HDR_PATH=$(shell pwd)/../../../../../usr
$(TEST_GEN_FILES): ipcsocket.c ionutils.c
--
2.7.4
Powered by blists - more mailing lists