drm: Hack around CONFIG_AGP=m build failures
authorDaniel Vetter <[email protected]>
Thu, 1 Oct 2015 06:44:24 +0000 (08:44 +0200)
committerDaniel Vetter <[email protected]>
Thu, 1 Oct 2015 06:44:24 +0000 (08:44 +0200)
Surprisingly kbuild can't cope with tristates in the
<module>-$(CONFIG_FOO) pattern. This patch hacks up a solution.

Reported-by: Stephen Rothwell <[email protected]>
Reported-by: Ville Syrjälä <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Cc: Michal Marek <[email protected]>
Cc: [email protected]
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/Makefile

index f458d6e33655b92add3dce0a0995cf025a4c2a44..e814517513ce9abf4c5d65a26367955b8d761b67 100644 (file)
@@ -21,6 +21,8 @@ drm-$(CONFIG_DRM_PANEL) += drm_panel.o
 drm-$(CONFIG_OF) += drm_of.o
 drm-$(CONFIG_AGP) += drm_agpsupport.o
 
+drm-y += $(drm-m)
+
 drm_kms_helper-y := drm_crtc_helper.o drm_dp_helper.o drm_probe_helper.o \
                drm_plane_helper.o drm_dp_mst_topology.o drm_atomic_helper.o
 drm_kms_helper-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o