From: Daniel Vetter Date: Thu, 1 Oct 2015 06:44:24 +0000 (+0200) Subject: drm: Hack around CONFIG_AGP=m build failures X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8fa884dc355ffd0caa964a284a530bf747df5c77;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm: Hack around CONFIG_AGP=m build failures Surprisingly kbuild can't cope with tristates in the -$(CONFIG_FOO) pattern. This patch hacks up a solution. Reported-by: Stephen Rothwell Reported-by: Ville Syrjälä Cc: Stephen Rothwell Cc: Ville Syrjälä Cc: Michal Marek Cc: linux-kbuild@vger.kernel.org Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile index f458d6e33655..e814517513ce 100644 --- a/drivers/gpu/drm/Makefile +++ b/drivers/gpu/drm/Makefile @@ -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