Remove module name hacks because we aren't going to implement this anymore
because of Linus' commentsmain
parent
4eafeec960
commit
ae5b4effc0
|
@ -285,32 +285,10 @@ static int drmOpenByName(const char *name)
|
|||
#if !defined(XFree86Server)
|
||||
return -1;
|
||||
#else
|
||||
char temp_name[256];
|
||||
Bool kernel_loaded = FALSE;
|
||||
|
||||
sprintf(temp_name, "%s-%d_%d_%d", name,
|
||||
XF86_VERSION_MAJOR,
|
||||
XF86_VERSION_MINOR,
|
||||
XF86_VERSION_PATCH);
|
||||
|
||||
/* first try and load the XF Version number of the module */
|
||||
if (!xf86LoadKernelModule(temp_name)) {
|
||||
ErrorF("[drm] failed to load kernel module \"%s\"\n",
|
||||
temp_name);
|
||||
ErrorF("[drm] falling back to older kernel modules\n");
|
||||
} else {
|
||||
kernel_loaded = TRUE;
|
||||
}
|
||||
|
||||
/* When we have more releases, add logic here to attempt to load them
|
||||
* here.
|
||||
*/
|
||||
|
||||
/* try to load the kernel module now */
|
||||
if (kernel_loaded == FALSE && !xf86LoadKernelModule(name)) {
|
||||
if (!xf86LoadKernelModule(name)) {
|
||||
ErrorF("[drm] failed to load kernel module \"%s\"\n",
|
||||
name);
|
||||
ErrorF("[drm] No suitable kernel module found.\n");
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -47,9 +47,7 @@
|
|||
|
||||
# **** End of SMP/MODVERSIONS detection
|
||||
|
||||
XFREE86VERSION = 4_1_0
|
||||
MODS = gamma-$(XFREE86VERSION).o tdfx.o \
|
||||
r128-$(XFREE86VERSION).o radeon-$(XFREE86VERSION).o
|
||||
MODS = gamma.o tdfx.o r128.o radeon.o
|
||||
LIBS =
|
||||
|
||||
DRMTEMPLATES = drm_auth.h drm_bufs.h drm_context.h drm_dma.h drm_drawable.h \
|
||||
|
@ -148,12 +146,12 @@ ifeq ($(AGP),1)
|
|||
MODCFLAGS += -DCONFIG_AGP -DCONFIG_AGP_MODULE
|
||||
DRMTEMPLATES += drm_agpsupport.h
|
||||
DRMHEADERS += agpsupport-pre24.h
|
||||
MODS += mga-$(XFREE86VERSION).o
|
||||
MODS += mga.o
|
||||
ifeq ($(MACHINE),i386)
|
||||
MODS += i810-$(XFREE86VERSION).o
|
||||
MODS += i810.o
|
||||
endif
|
||||
ifeq ($(MACHINE),i686)
|
||||
MODS += i810-$(XFREE86VERSION).o
|
||||
MODS += i810.o
|
||||
endif
|
||||
|
||||
MGAOBJS = mga_drv.o mga_dma.o mga_state.o mga_warp.o
|
||||
|
@ -223,7 +221,7 @@ DRIsetup: DRIsetup.c
|
|||
|
||||
gamma_drv.o: gamma_drv.c
|
||||
$(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@
|
||||
gamma-$(XFREE86VERSION).o: $(GAMMAOBJS)
|
||||
gamma.o: $(GAMMAOBJS)
|
||||
$(LD) -r $^ -o $@
|
||||
|
||||
tdfx_drv.o: tdfx_drv.c
|
||||
|
@ -231,28 +229,28 @@ tdfx_drv.o: tdfx_drv.c
|
|||
tdfx.o: $(TDFXOBJS) $(LIBS)
|
||||
$(LD) -r $^ -o $@
|
||||
|
||||
sis-$(XFREE86VERSION).o: $(SISOBJS) $(LIBS)
|
||||
sis.o: $(SISOBJS) $(LIBS)
|
||||
$(LD) -r $^ -o $@
|
||||
|
||||
r128_drv.o: r128_drv.c
|
||||
$(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@
|
||||
r128-$(XFREE86VERSION).o: $(R128OBJS) $(LIBS)
|
||||
r128.o: $(R128OBJS) $(LIBS)
|
||||
$(LD) -r $^ -o $@
|
||||
|
||||
radeon_drv.o: radeon_drv.c
|
||||
$(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@
|
||||
radeon-$(XFREE86VERSION).o: $(RADEONOBJS) $(LIBS)
|
||||
radeon.o: $(RADEONOBJS) $(LIBS)
|
||||
$(LD) -r $^ -o $@
|
||||
|
||||
ifeq ($(AGP),1)
|
||||
mga_drv.o: mga_drv.c
|
||||
$(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@
|
||||
mga-$(XFREE86VERSION).o: $(MGAOBJS)
|
||||
mga.o: $(MGAOBJS)
|
||||
$(LD) -r $^ -o $@
|
||||
|
||||
i810_drv.o: i810_drv.c
|
||||
$(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@
|
||||
i810-$(XFREE86VERSION).o: $(I810OBJS) $(LIBS)
|
||||
i810.o: $(I810OBJS) $(LIBS)
|
||||
$(LD) -r $^ -o $@
|
||||
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue