[PATCH] drm: Hack around CONFIG_AGP=m build failures
Ville Syrjälä
ville.syrjala at linux.intel.com
Thu Oct 1 00:19:05 PDT 2015
On Thu, Oct 01, 2015 at 08:48:39AM +0200, Daniel Vetter wrote:
> Surprisingly kbuild can't cope with tristates in the
> <module>-$(CONFIG_FOO) pattern. This patch hacks up a solution.
>
> Reported-by: Stephen Rothwell <sfr at canb.auug.org.au>
> Reported-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Cc: Stephen Rothwell <sfr at canb.auug.org.au>
> Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Cc: Michal Marek <mmarek at suse.com>
> Cc: linux-kbuild at vger.kernel.org
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
Tested-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
> drivers/gpu/drm/Makefile | 2 ++
> 1 file changed, 2 insertions(+)
>
> 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
> --
> 2.5.1
--
Ville Syrjälä
Intel OTC
More information about the dri-devel
mailing list