All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/Makefile: Support custom output dir with O
@ 2017-08-15 10:08 Pierre Moreau
  0 siblings, 0 replies; only message in thread
From: Pierre Moreau @ 2017-08-15 10:08 UTC (permalink / raw)
  To: Ben Skeggs; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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.

Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
---
 drm/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drm/Makefile b/drm/Makefile
index d5e23738..1f4ef45e 100644
--- a/drm/Makefile
+++ b/drm/Makefile
@@ -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
 
-- 
2.14.1

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-15 10:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-15 10:08 [PATCH] drm/Makefile: Support custom output dir with O Pierre Moreau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.