Fixes for compilation against recent kernels; disable helper module, change configuration file loading...

This commit is contained in:
Ryan McGrath 2011-02-24 00:31:25 -08:00
parent 00bae13bba
commit ed9bb8f71a
15 changed files with 206 additions and 73 deletions

View file

@ -37,7 +37,7 @@ CFLAGS += $(INCLUDES)
CFLAGS += -DSVGALIB_HELPER_MAJOR=$(SVGALIB_HELPER_MAJOR)
ifeq (1,$(findstring 1,$(MODVER)))
CFLAGS += -DMODVERSIONS -include $(INCLUDEDIR)/linux/modversions.h
CFLAGS += -DMODVERSIONS -DCONFIG_MODVERSIONS=1
endif
TARGET = svgalib_helper
@ -50,7 +50,8 @@ ifeq (2,$(VER_MAJOR))
endif
endif
all: .depend $(OBJS)
modules: $(OBJS)
all: .depend modules
$(TARGET).o: $(SRC:.c=.o)
$(LD) -r $^ -o $@
@ -61,8 +62,8 @@ $(TARGET).ko: $(TARGET).o
install: device modules_install
modules_install: $(OBJS)
mkdir -p /lib/modules/$(VER)/kernel/misc
install -m 0644 -c $(OBJS) /lib/modules/$(VER)/kernel/misc
mkdir -p $(TOPDIR)/lib/modules/$(VER)/kernel/misc
install -m 0644 -c $(OBJS) $(TOPDIR)/lib/modules/$(VER)/kernel/misc
device:
rm -f /dev/svgalib_helper* /dev/svga_helper* /dev/svga /dev/svga?