Fixes for compilation against recent kernels; disable helper module, change configuration file loading...
This commit is contained in:
parent
00bae13bba
commit
ed9bb8f71a
15 changed files with 206 additions and 73 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue