From e38b34e54a79919588f23294ddb326309c9cb005 Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Fri, 21 Jul 2000 15:48:24 +0000 Subject: [PATCH] Fixes for building in the kernel tree --- linux-core/Makefile.kernel | 6 +++++- linux/Makefile.kernel | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/linux-core/Makefile.kernel b/linux-core/Makefile.kernel index 2937898f..b19f77c6 100644 --- a/linux-core/Makefile.kernel +++ b/linux-core/Makefile.kernel @@ -16,7 +16,11 @@ L_OBJS := init.o memory.o proc.o auth.o context.o drawable.o bufs.o \ lists.o lock.o ioctl.o fops.o vm.o dma.o ctxbitmap.o \ agpsupport.o -M_OBJS := +M_OBJS := + +ifdef CONFIG_DRM_AGP + L_OBJS += agpsupport.o +endif ifeq ($(CONFIG_DRM_GAMMA),y) OX_OBJS += gamma_drv.o diff --git a/linux/Makefile.kernel b/linux/Makefile.kernel index 2937898f..b19f77c6 100644 --- a/linux/Makefile.kernel +++ b/linux/Makefile.kernel @@ -16,7 +16,11 @@ L_OBJS := init.o memory.o proc.o auth.o context.o drawable.o bufs.o \ lists.o lock.o ioctl.o fops.o vm.o dma.o ctxbitmap.o \ agpsupport.o -M_OBJS := +M_OBJS := + +ifdef CONFIG_DRM_AGP + L_OBJS += agpsupport.o +endif ifeq ($(CONFIG_DRM_GAMMA),y) OX_OBJS += gamma_drv.o