[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Disque sata avec module sis1185 non reconnu



Pour information, voici le contenu du Makefile. Manque t-il des règles pour
fabriquer le fichier ?

TARGET = sata_sis
OBJS = sata_sis.o
MDIR = drivers/scsi
EXTRA_CFLAGS = -DEXPORT_SYMTAB -DMODVERSIONS -DMODULE
CURRENT = $(shell uname -r)
KDIR = /lib/modules/$(CURRENT)/build
PWD = $(shell pwd)
DEST = /lib/modules/$(CURRENT)/kernel/$(MDIR)

obj-m      := $(TARGET).o

default:
	make -C $(KDIR) SUBDIRS=$(PWD)  modules

$(TARGET).o: $(OBJS)
	$(LD) $(LD_RFLAG) -r -o $@ $(OBJS)

ifneq (,$(findstring 2.4.,$(CURRENT)))
install:
	su -c "cp -v $(TARGET).o $(DEST) && /sbin/depmod -a"
else
install:
	su -c "cp -v $(TARGET).ko $(DEST)"
endif

clean:
	-rm -f *.o *.ko .*.cmd .*.flags *.mod.c *~

-include $(KDIR)/Rules.make



Reply to: