Skip to contentSkip to conversation

drm: Fix O= out-of-tree builds for selftests

PATCH In review Daniel Vetter 4 participants 4 messages Dec 28, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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=

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
---
 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
index c0d1aed8588b..d00c389f24bf 100644
@@ -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
new file mode 100644
index 000000000000..4aebfc7f27d4
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Daniel Vetter

Kbuild really doesn't like non-recursive Makefiles, but they do work as long as you build without O=

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

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/Makefile
drivers/gpu/drm/Makefile +0 -0
index c0d1aed8588b..d00c389f24bf 100644

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
#2 lore raw
Quoted 11 lines · Chris Wilson
Quoted 9 lines · Daniel Vetter

Kbuild really doesn't like non-recursive Makefiles, but they do work as long as you build without O=

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
Quoted 2 lines

That's a shame, but it gets us over the breakage so

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
#3 lore raw
Quoted 10 lines · Daniel Vetter
Quoted 9 lines · Chris Wilson
Quoted 8 lines · Daniel Vetter

Kbuild really doesn't like non-recursive Makefiles, but they do work as long as you build without O=

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

That's a shame, but it gets us over the breakage so

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.
-Daniel

Signature · 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