drm: Fix O= out-of-tree builds for selftests
Subsystems (2)
PATCH 1/1 drm: Fix O= out-of-tree builds for selftests
Kbuild really doesn't like non-recursive Makefiles, but they do work as long as you build without O=
--- drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/selftests/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/selftests/Makefile
drivers/gpu/drm/Makefile +1 -1
@@ -38,7 +38,7 @@ drm_kms_helper-$(CONFIG_DRM_KMS_CMA_HELPER) += drm_fb_cma_helper.o drm_kms_helper-$(CONFIG_DRM_DP_AUX_CHARDEV) += drm_dp_aux_dev.o obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o -obj-$(CONFIG_DRM_DEBUG_MM_SELFTEST) += selftests/test-drm_mm.o +obj-$(CONFIG_DRM_DEBUG_MM_SELFTEST) += selftests/ CFLAGS_drm_trace_points.o := -I$(src)
drivers/gpu/drm/selftests/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-$(CONFIG_DRM_DEBUG_MM_SELFTEST) += test-drm_mm.o
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Daniel Vetter
Kbuildreally doesn't like non-recursive Makefiles, but they do work as long as you build without O=Reported-by kbuild test robot <[email protected]>Fixes 50f0033d1a0f ("drm: Add some kselftests for the DRM range manager (struct drm_mm)")Cc Chris Wilson <[email protected]>Cc Christian König <[email protected]>Cc Joonas Lahtinen <[email protected]># Please enter the commit message for your changes. Lines startingSigned-off-by Daniel Vetter <[email protected]>
That's a shame, but it gets us over the breakage so
Quoted 11 lines
--- drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/selftests/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/selftests/Makefiledrivers/gpu/drm/Makefile +0
-0
drivers/gpu/drm/Makefile drm_kms_helper-$(CONFIG_DRM_KMS_CMA_HELPER) += drm_fb_cma_helper.o · line 41
Quoted 5 lines
drivers/gpu/drm/Makefile +1
-1@@ -38,7 +38,7 @@ drm_kms_helper-$(CONFIG_DRM_KMS_CMA_HELPER) += drm_fb_cma_helper.o drm_kms_helper-$(CONFIG_DRM_DP_AUX_CHARDEV) += drm_dp_aux_dev.o obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o -obj-$(CONFIG_DRM_DEBUG_MM_SELFTEST) += selftests/test-drm_mm.o +obj-$(CONFIG_DRM_DEBUG_MM_SELFTEST) += selftests/
For the next set of selftests we should add a common CONFIG_DRM_SELFTESTS.
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Chris Wilson
Quoted 9 lines · Daniel Vetter
Kbuildreally doesn't like non-recursive Makefiles, but they do work as long as you build without O=Reported-by kbuild test robot <[email protected]>Fixes 50f0033d1a0f ("drm: Add some kselftests for the DRM range manager (struct drm_mm)")Cc Chris Wilson <[email protected]>Cc Christian König <[email protected]>Cc Joonas Lahtinen <[email protected]># Please enter the commit message for your changes. Lines startingSigned-off-by Daniel Vetter <[email protected]>
Quoted 2 lines
That's a shame, but it gets us over the breakage so
Reviewed-by Chris Wilson <[email protected]>
Thx for the review, applied.
Quoted 2 lines
For the next set of selftests we should add a common
CONFIG_DRM_SELFTESTS.
Yeah, one for all of them is probably enough.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Daniel Vetter
Quoted 9 lines · Chris Wilson
Quoted 8 lines · Daniel Vetter
Kbuildreally doesn't like non-recursive Makefiles, but they do work as long as you build without O=Reported-by kbuild test robot <[email protected]>Fixes 50f0033d1a0f ("drm: Add some kselftests for the DRM range manager (struct drm_mm)")Cc Chris Wilson <[email protected]>Cc Christian König <[email protected]>Cc Joonas Lahtinen <[email protected]># Please enter the commit message for your changes. Lines starting
In case you haven't pushed it yet, the line above could be fixed :)
Quoted 5 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Daniel Vetter <[email protected]>That's a shame, but it gets us over the breakage so
Reviewed-by Chris Wilson <[email protected]>
Quoted 11 lines
Thx for the review, applied.
Quoted 2 lines
For the next set of selftests we should add a common
CONFIG_DRM_SELFTESTS.Yeah, one for all of them is probably enough.
-DanielSignature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel