drm/Makefile: Support custom output dir with O
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.
Signed-off-by Pierre Moreau <[email protected]>
--- drm/Makefile | 3 +++ 1 file changed, 3 insertions(+)
drm/Makefile +3 -0
@@ -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