1999-12-05 16:10:37 -07:00
|
|
|
# Makefile -- For the Direct Rendering Manager module (drm)
|
|
|
|
#
|
2003-04-17 12:44:38 -06:00
|
|
|
# Based on David Woodhouse's mtd build.
|
1999-12-05 16:10:37 -07:00
|
|
|
#
|
2003-04-17 12:44:38 -06:00
|
|
|
# Modified to handle the DRM requirements and builds on a wider range of
|
|
|
|
# platforms in a flexible way by David Dawes. It's not clear, however,
|
|
|
|
# that this approach is simpler than the old one.
|
2000-12-01 23:14:18 -07:00
|
|
|
#
|
2004-04-18 16:59:01 -06:00
|
|
|
# The purpose of this Makefile is to handle setting up everything
|
2003-04-17 12:44:38 -06:00
|
|
|
# needed for an out-of-kernel source build. Makefile.kernel contains
|
|
|
|
# everything required for in-kernel source builds. It is included into
|
|
|
|
# this file, so none of that should be duplicated here.
|
2000-12-01 23:14:18 -07:00
|
|
|
#
|
2003-09-12 14:00:59 -06:00
|
|
|
# $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.linux,v 1.40 2003/08/17 17:12:25 dawes Exp $
|
2001-02-15 01:12:14 -07:00
|
|
|
#
|
2003-04-17 12:44:38 -06:00
|
|
|
|
2000-06-08 08:38:22 -06:00
|
|
|
#
|
2003-04-17 12:44:38 -06:00
|
|
|
# By default, the build is done against the running linux kernel source.
|
|
|
|
# To build against a different kernel source tree, set LINUXDIR:
|
|
|
|
#
|
2004-04-18 16:59:01 -06:00
|
|
|
# make LINUXDIR=/path/to/kernel/source
|
2003-04-17 12:44:38 -06:00
|
|
|
|
|
|
|
#
|
|
|
|
# To build only some modules, either set DRM_MODULES to the list of modules,
|
|
|
|
# or specify the modules as targets:
|
|
|
|
#
|
2004-04-18 16:59:01 -06:00
|
|
|
# make r128.o radeon.o
|
2003-04-17 12:44:38 -06:00
|
|
|
#
|
|
|
|
# or:
|
|
|
|
#
|
2004-04-18 16:59:01 -06:00
|
|
|
# make DRM_MODULES="r128 radeon"
|
2000-06-08 08:38:22 -06:00
|
|
|
#
|
1999-12-05 16:10:37 -07:00
|
|
|
|
2003-03-25 04:36:43 -07:00
|
|
|
SHELL=/bin/sh
|
|
|
|
|
1999-12-05 16:10:37 -07:00
|
|
|
.SUFFIXES:
|
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
ifndef LINUXDIR
|
|
|
|
RUNNING_REL := $(shell uname -r)
|
1999-12-05 16:10:37 -07:00
|
|
|
|
2004-08-17 04:36:46 -06:00
|
|
|
LINUXDIR := $(shell if [ -e /lib/modules/$(RUNNING_REL)/source ]; then \
|
|
|
|
echo /lib/modules/$(RUNNING_REL)/source; \
|
|
|
|
else echo /lib/modules/$(RUNNING_REL)/build; fi)
|
2003-04-17 12:44:38 -06:00
|
|
|
endif
|
2000-04-04 16:08:14 -06:00
|
|
|
|
2004-07-14 06:14:37 -06:00
|
|
|
ifndef O
|
2006-02-17 19:53:36 -07:00
|
|
|
O := $(shell if [ -e /lib/modules/$(RUNNING_REL)/build ]; then \
|
|
|
|
echo /lib/modules/$(RUNNING_REL)/build; \
|
|
|
|
else echo ""; fi)
|
|
|
|
#O := $(LINUXDIR)
|
2004-07-14 06:14:37 -06:00
|
|
|
endif
|
|
|
|
|
2006-02-17 19:53:36 -07:00
|
|
|
ifdef ARCH
|
|
|
|
MACHINE := $(ARCH)
|
|
|
|
else
|
2003-04-17 12:44:38 -06:00
|
|
|
MACHINE := $(shell uname -m)
|
2006-02-17 19:53:36 -07:00
|
|
|
endif
|
2001-02-15 01:12:14 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# Modules for all architectures
|
2005-10-06 17:31:29 -06:00
|
|
|
MODULE_LIST := drm.o tdfx.o r128.o radeon.o mga.o sis.o savage.o via.o \
|
|
|
|
mach64.o nv.o
|
1999-12-05 16:10:37 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# Modules only for ix86 architectures
|
|
|
|
ifneq (,$(findstring 86,$(MACHINE)))
|
2003-09-12 14:00:59 -06:00
|
|
|
ARCHX86 := 1
|
2004-06-10 06:47:50 -06:00
|
|
|
MODULE_LIST += i830.o i810.o i915.o
|
2003-04-17 12:44:38 -06:00
|
|
|
endif
|
1999-12-05 16:10:37 -07:00
|
|
|
|
2004-04-22 05:31:55 -06:00
|
|
|
ifneq (,$(findstring sparc64,$(MACHINE)))
|
|
|
|
ARCHSPARC64 := 1
|
2006-02-17 19:53:36 -07:00
|
|
|
#MODULE_LIST += ffb.o
|
2004-04-22 05:31:55 -06:00
|
|
|
endif
|
1999-12-05 16:10:37 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
DRM_MODULES ?= $(MODULE_LIST)
|
2001-04-05 16:16:12 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# These definitions are for handling dependencies in the out of kernel build.
|
|
|
|
|
2006-08-22 08:40:07 -06:00
|
|
|
DRMHEADERS = drmP.h drm_compat.h drm_os_linux.h drm.h drm_sarea.h
|
2006-06-06 08:19:00 -06:00
|
|
|
COREHEADERS = drm_core.h drm_sman.h drm_hashtab.h
|
2004-09-27 13:51:38 -06:00
|
|
|
|
|
|
|
TDFXHEADERS = tdfx_drv.h $(DRMHEADERS)
|
|
|
|
R128HEADERS = r128_drv.h r128_drm.h $(DRMHEADERS)
|
2005-07-20 15:17:47 -06:00
|
|
|
RADEONHEADERS = radeon_drv.h radeon_drm.h r300_reg.h $(DRMHEADERS)
|
2004-09-27 13:51:38 -06:00
|
|
|
MGAHEADERS = mga_drv.h mga_drm.h mga_ucode.h $(DRMHEADERS)
|
|
|
|
I810HEADERS = i810_drv.h i810_drm.h $(DRMHEADERS)
|
|
|
|
I830HEADERS = i830_drv.h i830_drm.h $(DRMHEADERS)
|
|
|
|
I915HEADERS = i915_drv.h i915_drm.h $(DRMHEADERS)
|
2006-06-06 08:19:00 -06:00
|
|
|
SISHEADERS= sis_drv.h sis_drm.h drm_hashtab.h drm_sman.h $(DRMHEADERS)
|
2004-09-27 13:51:38 -06:00
|
|
|
SAVAGEHEADERS= savage_drv.h savage_drm.h $(DRMHEADERS)
|
2006-06-06 08:19:00 -06:00
|
|
|
VIAHEADERS = via_drm.h via_drv.h via_3d_reg.h via_verifier.h $(DRMHEADERS)
|
2004-09-27 13:51:38 -06:00
|
|
|
MACH64HEADERS = mach64_drv.h mach64_drm.h $(DRMHEADERS)
|
2005-10-06 17:31:29 -06:00
|
|
|
NVHEADERS = nv_drv.h $(DRMHEADERS)
|
2004-09-27 13:51:38 -06:00
|
|
|
FFBHEADERS = ffb_drv.h $(DRMHEADERS)
|
2003-04-17 12:44:38 -06:00
|
|
|
|
2003-04-24 18:57:42 -06:00
|
|
|
PROGS = dristat drmstat
|
|
|
|
|
2006-10-21 08:14:20 -06:00
|
|
|
CLEANFILES = *.o *.ko $(PROGS) .depend .*.flags .*.d .*.cmd *.mod.c drm_pciids.h .tmp_versions
|
2003-04-17 12:44:38 -06:00
|
|
|
|
|
|
|
# VERSION is not defined from the initial invocation. It is defined when
|
|
|
|
# this Makefile is invoked from the kernel's root Makefile.
|
|
|
|
|
|
|
|
ifndef VERSION
|
|
|
|
|
|
|
|
ifdef RUNNING_REL
|
|
|
|
|
|
|
|
# SuSE has the version.h and autoconf.h headers for the current kernel
|
|
|
|
# in /boot as /boot/vmlinuz.version.h and /boot/vmlinuz.autoconf.h.
|
|
|
|
# Check these first to see if they match the running kernel.
|
|
|
|
|
|
|
|
BOOTVERSION_PREFIX = /boot/vmlinuz.
|
|
|
|
|
|
|
|
V := $(shell if [ -f $(BOOTVERSION_PREFIX)version.h ]; then \
|
|
|
|
grep UTS_RELEASE $(BOOTVERSION_PREFIX)version.h | \
|
|
|
|
cut -d' ' -f3; fi)
|
|
|
|
|
|
|
|
ifeq ($(V),"$(RUNNING_REL)")
|
|
|
|
HEADERFROMBOOT := 1
|
|
|
|
GETCONFIG := MAKEFILES=$(shell pwd)/.config
|
|
|
|
HAVECONFIG := y
|
2002-09-10 18:57:49 -06:00
|
|
|
endif
|
2003-04-17 12:44:38 -06:00
|
|
|
|
|
|
|
# On Red Hat we need to check if there is a .config file in the kernel
|
|
|
|
# source directory. If there isn't, we need to check if there's a
|
|
|
|
# matching file in the configs subdirectory.
|
|
|
|
|
|
|
|
ifneq ($(HAVECONFIG),y)
|
|
|
|
HAVECONFIG := $(shell if [ -e $(LINUXDIR)/.config ]; then echo y; fi)
|
2000-01-17 03:27:29 -07:00
|
|
|
endif
|
2003-04-17 12:44:38 -06:00
|
|
|
|
|
|
|
ifneq ($(HAVECONFIG),y)
|
|
|
|
REL_BASE := $(shell echo $(RUNNING_REL) | sed 's/-.*//')
|
|
|
|
REL_TYPE := $(shell echo $(RUNNING_REL) | sed 's/[0-9.-]//g')
|
|
|
|
ifeq ($(REL_TYPE),)
|
|
|
|
RHCONFIG := configs/kernel-$(REL_BASE)-$(MACHINE).config
|
|
|
|
else
|
|
|
|
RHCONFIG := configs/kernel-$(REL_BASE)-$(MACHINE)-$(REL_TYPE).config
|
2000-01-17 03:27:29 -07:00
|
|
|
endif
|
2003-04-17 12:44:38 -06:00
|
|
|
HAVECONFIG := $(shell if [ -e $(LINUXDIR)/$(RHCONFIG) ]; then echo y; fi)
|
|
|
|
ifneq ($(HAVECONFIG),y)
|
|
|
|
RHCONFIG :=
|
2000-01-17 03:27:29 -07:00
|
|
|
endif
|
2001-04-06 09:49:42 -06:00
|
|
|
endif
|
2000-01-17 03:27:29 -07:00
|
|
|
|
2004-07-14 06:14:37 -06:00
|
|
|
ifneq ($(HAVECONFIG),y)
|
|
|
|
ifneq ($(0),$(LINUXDIR))
|
|
|
|
GETCONFIG += O=$(O)
|
|
|
|
endif
|
|
|
|
HAVECONFIG := $(shell if [ -e $(O)/.config ]; then echo y; fi)
|
|
|
|
endif
|
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
ifneq ($(HAVECONFIG),y)
|
|
|
|
$(error Cannot find a kernel config file)
|
2000-04-04 16:08:14 -06:00
|
|
|
endif
|
|
|
|
|
2003-04-07 19:30:43 -06:00
|
|
|
endif
|
2003-04-17 12:44:38 -06:00
|
|
|
|
|
|
|
CLEANCONFIG := $(shell if cmp -s $(LINUXDIR)/.config .config; then echo y; fi)
|
|
|
|
ifeq ($(CLEANCONFIG),y)
|
|
|
|
CLEANFILES += $(LINUXDIR)/.config .config $(LINUXDIR)/tmp_include_depends
|
2001-01-11 13:05:39 -07:00
|
|
|
endif
|
2000-09-07 06:40:41 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
all: modules
|
2001-01-05 15:57:55 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
modules: includes
|
|
|
|
make -C $(LINUXDIR) $(GETCONFIG) SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
|
2002-01-27 13:05:42 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
ifeq ($(HEADERFROMBOOT),1)
|
2001-01-05 15:57:55 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
BOOTHEADERS = version.h autoconf.h
|
|
|
|
BOOTCONFIG = .config
|
2003-03-25 04:36:43 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
CLEANFILES += $(BOOTHEADERS) $(BOOTCONFIG)
|
2000-04-04 16:08:14 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
includes:: $(BOOTHEADERS) $(BOOTCONFIG)
|
2000-08-25 06:44:44 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
version.h: $(BOOTVERSION_PREFIX)version.h
|
|
|
|
rm -f $@
|
|
|
|
ln -s $< $@
|
2000-08-25 06:44:44 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
autoconf.h: $(BOOTVERSION_PREFIX)autoconf.h
|
|
|
|
rm -f $@
|
|
|
|
ln -s $< $@
|
2000-09-24 03:34:10 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
.config: $(BOOTVERSION_PREFIX)config
|
|
|
|
rm -f $@
|
|
|
|
ln -s $< $@
|
2000-01-13 08:03:41 -07:00
|
|
|
endif
|
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# This prepares an unused Red Hat kernel tree for the build.
|
|
|
|
ifneq ($(RHCONFIG),)
|
|
|
|
includes:: $(LINUXDIR)/.config $(LINUXDIR)/tmp_include_depends .config
|
2000-09-24 03:34:10 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
$(LINUXDIR)/.config: $(LINUXDIR)/$(RHCONFIG)
|
|
|
|
rm -f $@
|
|
|
|
ln -s $< $@
|
2000-01-13 08:03:41 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
.config: $(LINUXDIR)/$(RHCONFIG)
|
|
|
|
rm -f $@
|
|
|
|
ln -s $< $@
|
|
|
|
|
|
|
|
$(LINUXDIR)/tmp_include_depends:
|
|
|
|
echo all: > $@
|
1999-12-05 16:10:37 -07:00
|
|
|
endif
|
2000-04-04 16:08:14 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# Make sure that the shared source files are linked into this directory.
|
1999-12-05 16:10:37 -07:00
|
|
|
|
2003-03-25 04:36:43 -07:00
|
|
|
|
2004-09-27 13:51:38 -06:00
|
|
|
SHAREDDIR := ../shared-core
|
2003-04-17 12:44:38 -06:00
|
|
|
|
2006-10-21 08:14:20 -06:00
|
|
|
ifeq ($(shell if [ -d $(SHAREDDIR) ]; then echo y; fi),y)
|
|
|
|
includes:: drm_pciids.h
|
2004-04-21 06:13:31 -06:00
|
|
|
|
|
|
|
drm_pciids.h: $(SHAREDDIR)/drm_pciids.txt
|
|
|
|
sh ../scripts/create_linux_pci_lists.sh < $(SHAREDDIR)/drm_pciids.txt
|
2003-04-17 12:44:38 -06:00
|
|
|
endif
|
2003-03-25 04:36:43 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
clean cleandir:
|
2004-07-08 14:18:10 -06:00
|
|
|
rm -rf $(CLEANFILES)
|
2001-05-03 08:51:01 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
$(MODULE_LIST)::
|
2004-04-18 16:59:01 -06:00
|
|
|
make DRM_MODULES=$@ modules
|
1999-12-05 16:10:37 -07:00
|
|
|
|
2003-04-24 18:57:42 -06:00
|
|
|
# Build test utilities
|
|
|
|
|
|
|
|
PRGCFLAGS = $(CFLAGS) -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L \
|
|
|
|
-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE \
|
|
|
|
-I. -I../../..
|
|
|
|
|
|
|
|
DRMSTATLIBS = -L../../.. -L.. -ldrm -lxf86_os \
|
|
|
|
-L../../../../dummylib -ldummy -lm
|
|
|
|
|
|
|
|
programs: $(PROGS)
|
|
|
|
|
|
|
|
dristat: dristat.c
|
|
|
|
$(CC) $(PRGCFLAGS) $< -o $@
|
|
|
|
|
|
|
|
drmstat: drmstat.c
|
|
|
|
$(CC) $(PRGCFLAGS) $< -o $@ $(DRMSTATLIBS)
|
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
else
|
|
|
|
|
|
|
|
# Check for kernel versions that we don't support.
|
1999-12-05 16:10:37 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
BELOW24 := $(shell if [ $(VERSION) -lt 2 -o $(PATCHLEVEL) -lt 4 ]; then \
|
|
|
|
echo y; fi)
|
2000-08-16 12:29:06 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
ifeq ($(BELOW24),y)
|
|
|
|
$(error Only 2.4.x and later kernels are supported \
|
|
|
|
($(VERSION).$(PATCHLEVEL).$(SUBLEVEL)))
|
|
|
|
endif
|
2000-04-04 16:08:14 -06:00
|
|
|
|
2003-09-12 14:00:59 -06:00
|
|
|
ifdef ARCHX86
|
|
|
|
ifndef CONFIG_X86_CMPXCHG
|
|
|
|
$(error CONFIG_X86_CMPXCHG needs to be enabled in the kernel)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# This needs to go before all other include paths.
|
|
|
|
CC += -I$(DRMSRCDIR)
|
2001-01-05 15:57:55 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# Check for Red Hat's 4-argument do_munmap().
|
|
|
|
DOMUNMAP := $(shell grep do_munmap $(LINUXDIR)/include/linux/mm.h | \
|
|
|
|
grep -c acct)
|
2001-01-05 15:57:55 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
ifneq ($(DOMUNMAP),0)
|
|
|
|
EXTRA_CFLAGS += -DDO_MUNMAP_4_ARGS
|
|
|
|
endif
|
2001-04-05 16:16:12 -06:00
|
|
|
|
2003-05-16 17:41:27 -06:00
|
|
|
# Check for 5-argument remap_page_range() in RH9 kernel, and 2.5.x kernels
|
|
|
|
RPR := $(shell grep remap_page_range $(LINUXDIR)/include/linux/mm.h | \
|
|
|
|
grep -c vma)
|
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
ifneq ($(RPR),0)
|
|
|
|
EXTRA_CFLAGS += -DREMAP_PAGE_RANGE_5_ARGS
|
|
|
|
endif
|
2002-01-27 13:05:42 -07:00
|
|
|
|
2003-05-16 17:41:27 -06:00
|
|
|
# Check for 4-argument vmap() in some 2.5.x and 2.4.x kernels
|
|
|
|
VMAP := $(shell grep -A1 'vmap.*count,$$' $(LINUXDIR)/include/linux/vmalloc.h | \
|
|
|
|
grep -c prot)
|
|
|
|
|
|
|
|
ifneq ($(VMAP),0)
|
|
|
|
EXTRA_CFLAGS += -DVMAP_4_ARGS
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Check for PAGE_AGP definition
|
|
|
|
PAGE_AGP := $(shell cat $(LINUXDIR)/include/asm/agp.h 2>/dev/null | \
|
|
|
|
grep -c PAGE_AGP)
|
|
|
|
|
|
|
|
ifneq ($(PAGE_AGP),0)
|
|
|
|
EXTRA_CFLAGS += -DHAVE_PAGE_AGP
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# Start with all modules turned off.
|
|
|
|
CONFIG_DRM_GAMMA := n
|
|
|
|
CONFIG_DRM_TDFX := n
|
|
|
|
CONFIG_DRM_MGA := n
|
|
|
|
CONFIG_DRM_I810 := n
|
|
|
|
CONFIG_DRM_R128 := n
|
|
|
|
CONFIG_DRM_RADEON := n
|
|
|
|
CONFIG_DRM_I830 := n
|
2004-06-10 06:47:50 -06:00
|
|
|
CONFIG_DRM_I915 := n
|
2003-04-17 12:44:38 -06:00
|
|
|
CONFIG_DRM_SIS := n
|
|
|
|
CONFIG_DRM_FFB := n
|
2004-02-22 09:20:16 -07:00
|
|
|
CONFIG_DRM_SAVAGE := n
|
2004-03-23 14:14:17 -07:00
|
|
|
CONFIG_DRM_VIA := n
|
2004-04-11 23:27:40 -06:00
|
|
|
CONFIG_DRM_MACH64 := n
|
2005-10-06 17:31:29 -06:00
|
|
|
CONFIG_DRM_NV := n
|
2003-04-17 12:44:38 -06:00
|
|
|
|
|
|
|
# Enable module builds for the modules requested/supported.
|
|
|
|
|
|
|
|
ifneq (,$(findstring tdfx,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_TDFX := m
|
2000-04-04 16:08:14 -06:00
|
|
|
endif
|
2003-04-22 13:42:27 -06:00
|
|
|
ifneq (,$(findstring r128,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_R128 := m
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring radeon,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_RADEON := m
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring sis,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_SIS := m
|
|
|
|
endif
|
2004-03-23 14:14:17 -07:00
|
|
|
ifneq (,$(findstring via,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_VIA := m
|
|
|
|
endif
|
2004-04-11 23:27:40 -06:00
|
|
|
ifneq (,$(findstring mach64,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_MACH64 := m
|
|
|
|
endif
|
2004-08-29 06:37:11 -06:00
|
|
|
ifneq (,$(findstring ffb,$(DRM_MODULES)))
|
2004-04-22 05:31:55 -06:00
|
|
|
CONFIG_DRM_FFB := m
|
|
|
|
endif
|
2005-05-16 20:08:02 -06:00
|
|
|
ifneq (,$(findstring savage,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_SAVAGE := m
|
|
|
|
endif
|
2005-06-29 17:20:30 -06:00
|
|
|
ifneq (,$(findstring mga,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_MGA := m
|
|
|
|
endif
|
2005-10-06 17:31:29 -06:00
|
|
|
ifneq (,$(findstring nv,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_NV := m
|
|
|
|
endif
|
2000-04-04 16:08:14 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# These require AGP support
|
|
|
|
|
|
|
|
ifneq (,$(findstring i810,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_I810 := m
|
2000-04-04 16:08:14 -06:00
|
|
|
endif
|
2003-04-17 12:44:38 -06:00
|
|
|
ifneq (,$(findstring i830,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_I830 := m
|
|
|
|
endif
|
2004-06-10 06:47:50 -06:00
|
|
|
ifneq (,$(findstring i915,$(DRM_MODULES)))
|
|
|
|
CONFIG_DRM_I915 := m
|
|
|
|
endif
|
2003-04-17 12:44:38 -06:00
|
|
|
|
|
|
|
include $(DRMSRCDIR)/Makefile.kernel
|
1999-12-05 16:10:37 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# Depencencies
|
2004-09-27 13:51:38 -06:00
|
|
|
$(drm-objs): $(DRMHEADERS) $(COREHEADERS)
|
2003-04-17 12:44:38 -06:00
|
|
|
$(tdfx-objs): $(TDFXHEADERS)
|
|
|
|
$(r128-objs): $(R128HEADERS)
|
|
|
|
$(mga-objs): $(MGAHEADERS)
|
|
|
|
$(i810-objs): $(I810HEADERS)
|
|
|
|
$(i830-objs): $(I830HEADERS)
|
2005-01-19 03:03:33 -07:00
|
|
|
$(i915-objs): $(I915HEADERS)
|
2003-04-17 12:44:38 -06:00
|
|
|
$(radeon-objs): $(RADEONHEADERS)
|
|
|
|
$(sis-objs): $(SISHEADERS)
|
|
|
|
$(ffb-objs): $(FFBHEADERS)
|
2004-02-22 09:20:16 -07:00
|
|
|
$(savage-objs): $(SAVAGEHEADERS)
|
2004-03-23 14:14:17 -07:00
|
|
|
$(via-objs): $(VIAHEADERS)
|
2004-04-11 23:27:40 -06:00
|
|
|
$(mach64-objs): $(MACH64HEADERS)
|
2005-10-06 17:31:29 -06:00
|
|
|
$(nv-objs): $(NVHEADERS)
|
2003-04-17 12:44:38 -06:00
|
|
|
|
|
|
|
endif
|
2003-03-25 04:36:43 -07:00
|
|
|
|