mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
It tries to do fancy things with excluding agp support if ttm is built-in, but agp isn't. Instead just express this depency like drm does and use CONFIG_AGP everywhere. Also use the neat Makefile magic to make the entire ttm_agp_backend file optional. v2: Use IS_ENABLED(CONFIG_AGP) as suggested by Ville v3: Review from Emil. v4: Actually get it right as spotted by 0-day. Cc: Emil Velikov <[email protected]> Cc: Ville Syrjälä <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
12 lines
363 B
Makefile
12 lines
363 B
Makefile
#
|
|
# Makefile for the drm device driver. This driver provides support for the
|
|
|
|
ccflags-y := -Iinclude/drm
|
|
ttm-y := ttm_memory.o ttm_tt.o ttm_bo.o \
|
|
ttm_bo_util.o ttm_bo_vm.o ttm_module.o \
|
|
ttm_object.o ttm_lock.o ttm_execbuf_util.o ttm_page_alloc.o \
|
|
ttm_bo_manager.o ttm_page_alloc_dma.o
|
|
ttm-$(CONFIG_AGP) += ttm_agp_backend.o
|
|
|
|
obj-$(CONFIG_DRM_TTM) += ttm.o
|