From: Rik Faith Date: Thu, 20 Jul 2000 01:52:00 +0000 (+0000) Subject: Fixes for building in the kernel tree X-Git-Tag: android-x86-1.6~2323 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0bd1fa795a06f592c1115b251685b36fec63fed3;p=android-x86%2Fexternal-libdrm.git Fixes for building in the kernel tree --- diff --git a/linux-core/Makefile.kernel b/linux-core/Makefile.kernel index c1812260..bf92d775 100644 --- a/linux-core/Makefile.kernel +++ b/linux-core/Makefile.kernel @@ -64,11 +64,11 @@ endif ifeq ($(CONFIG_DRM_R128),y) OX_OBJS += r128_drv.o - O_OBJS += r128_context.o + O_OBJS += r128_context.o r128_bufs.o r128_dma.o else ifeq ($(CONFIG_DRM_I810),m) MIX_OBJS += r128_drv.o - MI_OBJS += r128_context.o + MI_OBJS += r128_context.o r128_bufs.o r128_dma.o M_OBJS += r128.o endif endif @@ -102,8 +102,9 @@ i810.o: i810_drv.o i810_context.o i810_bufs.o i810_dma.o $(L_OBJS) $(LD) $(LD_RFLAG) -r -o $@ i810_drv.o i810_bufs.o i810_dma.o \ i810_context.o $(L_OBJS) -r128.o: r128_drv.o r128_context.o $(L_OBJS) - $(LD) $(LD_RFLAG) -r -o $@ r128_drv.o r128_context.o $(L_OBJS) +r128.o: r128_drv.o r128_context.o r128_bufs.o $(L_OBJS) + $(LD) $(LD_RFLAG) -r -o $@ r128_drv.o r128_bufs.o r128_dma.o \ + r128_context.o $(L_OBJS) ffb.o: ffb_drv.o ffb_context.o $(L_OBJS) $(LD) $(LD_RFLAG) -r -o $@ ffb_drv.o ffb_context.o $(L_OBJS) diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 06dc6afa..866aabf6 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -50,7 +50,7 @@ #ifdef CONFIG_MTRR #include #endif -#ifdef CONFIG_AGP +#if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE) #define DRM_AGP #endif #ifdef DRM_AGP diff --git a/linux/Makefile.kernel b/linux/Makefile.kernel index c1812260..bf92d775 100644 --- a/linux/Makefile.kernel +++ b/linux/Makefile.kernel @@ -64,11 +64,11 @@ endif ifeq ($(CONFIG_DRM_R128),y) OX_OBJS += r128_drv.o - O_OBJS += r128_context.o + O_OBJS += r128_context.o r128_bufs.o r128_dma.o else ifeq ($(CONFIG_DRM_I810),m) MIX_OBJS += r128_drv.o - MI_OBJS += r128_context.o + MI_OBJS += r128_context.o r128_bufs.o r128_dma.o M_OBJS += r128.o endif endif @@ -102,8 +102,9 @@ i810.o: i810_drv.o i810_context.o i810_bufs.o i810_dma.o $(L_OBJS) $(LD) $(LD_RFLAG) -r -o $@ i810_drv.o i810_bufs.o i810_dma.o \ i810_context.o $(L_OBJS) -r128.o: r128_drv.o r128_context.o $(L_OBJS) - $(LD) $(LD_RFLAG) -r -o $@ r128_drv.o r128_context.o $(L_OBJS) +r128.o: r128_drv.o r128_context.o r128_bufs.o $(L_OBJS) + $(LD) $(LD_RFLAG) -r -o $@ r128_drv.o r128_bufs.o r128_dma.o \ + r128_context.o $(L_OBJS) ffb.o: ffb_drv.o ffb_context.o $(L_OBJS) $(LD) $(LD_RFLAG) -r -o $@ ffb_drv.o ffb_context.o $(L_OBJS) diff --git a/linux/drmP.h b/linux/drmP.h index 06dc6afa..866aabf6 100644 --- a/linux/drmP.h +++ b/linux/drmP.h @@ -50,7 +50,7 @@ #ifdef CONFIG_MTRR #include #endif -#ifdef CONFIG_AGP +#if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE) #define DRM_AGP #endif #ifdef DRM_AGP