Skip to contentSkip to conversation

fix build error with out-of-tree builds

PATCH New Alexandre Courbot 1 participant 1 message Dec 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix build error with out-of-tree builds

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.

---
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(+)
drm/nouveau/Kbuild +1 -0
index fde6e3656636..c64b000a9ee6 100644
@@ -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
Signature · 6 lines
2.10.2

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau