Skip to contentSkip to conversation

drm/Makefile: Support custom output dir with O

PATCH New Pierre Moreau 1 participant 1 message Aug 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/Makefile: Support custom output dir with O

If the O variable from Makefile — which allows to specify the output folder for the build process — is used when building Linux, it needs to be specified when building Nouveau, even when out-of-tree.

This patch doesn’t fix any issues but let the developers — who uses the O variable — avoid having to keep a custom patch around.

---
 drm/Makefile | 3 +++
 1 file changed, 3 insertions(+)
drm/Makefile +3 -0
index d5e23738..1f4ef45e 100644
@@ -11,6 +11,9 @@ endif
 
 KBUILD_OPTS := M=$(CURDIR)/nouveau
 KBUILD_OPTS += KCPPFLAGS="-Iinclude/uapi/drm"
+ifdef OUTPUTDIR
+  KBUILD_OPTS += O=$(OUTPUTDIR)
+endif
 
 all: modules
 
Signature · 6 lines
2.14.1

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