提交 55c1b5f4 编写于 作者: A Anders Roxell 提交者: Shuah Khan

selftests/android/ion: Makefile: fix build error

Fails to build iomap_test.c due to missing include

gcc  -I. -I../../../../../drivers/staging/android/uapi/ -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
 #include <linux/dma-buf.h>
                           ^
compilation terminated.
<builtin>: recipe for target 'ionmap_test' failed
make[2]: *** [ionmap_test] Error 1

In the current code, we add a new -I ../../../../../usr/include/ to the
INCLUDEDIR variable. Also add ionmap_test to the .gitignore file.

Fixes: ac93f704 ("selftests: ion: Add simple test with the vgem driver")
Signed-off-by: NAnders Roxell <anders.roxell@linaro.org>
Acked-by: NLaura Abbott <labbott@redhat.com>
Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
上级 78972f51
INCLUDEDIR := -I. -I../../../../../drivers/staging/android/uapi/
INCLUDEDIR := -I. -I../../../../../drivers/staging/android/uapi/ -I../../../../../usr/include/
CFLAGS := $(CFLAGS) $(INCLUDEDIR) -Wall -O2 -g
TEST_GEN_FILES := ionapp_export ionapp_import ionmap_test
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册