[Nouveau] [PATCH] fix build error with out-of-tree builds
Alexandre Courbot
acourbot at nvidia.com
Wed Dec 14 05:55:32 UTC 2016
Recently trying to build nouveau.ko out of the kernel tree results in
the following error for me (in-kernel builds are fine):
uapi/drm/nouveau_drm.h:30:17: fatal error: drm.h: No such file or directory
This can be fixed by adding include/uapi/drm to the include path.
Signed-off-by: Alexandre Courbot <acourbot at nvidia.com>
---
IIUC this problem has already been brought up - it only seems to affect some
users. Hopefully this harmless oneliner is acceptable.
drm/nouveau/Kbuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/drm/nouveau/Kbuild b/drm/nouveau/Kbuild
index fde6e3656636..c64b000a9ee6 100644
--- a/drm/nouveau/Kbuild
+++ b/drm/nouveau/Kbuild
@@ -1,4 +1,5 @@
ccflags-y := -Iinclude/drm
+ccflags-y += -Iinclude/uapi/drm
ccflags-y += -I$(src)/include
ccflags-y += -I$(src)/include/nvkm
ccflags-y += -I$(src)/nvkm
--
2.10.2
More information about the Nouveau
mailing list