Comment 7 for bug 460857

Revision history for this message
tz (thomas-mich) wrote :

Makefile - (also attached).

make a new directory, then copy the two fixed files, ftdi_sio.* from the good tree into this new directory, copy this Makefile to the new directory, enter the new directory and type "Make". You will have a .ko in a few seconds.

cut here:
-----8<-----8<-----
KDIR:=/lib/modules/$(shell uname -r)/build

EXTRA_CFLAGS += -I$(KDIR)/drivers/usb/serial -I/usr/src/linux-headers-$(shell uname -r)/include

obj-m:=ftdi_sio.o

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

clean:
 $(RM) *.mod.c *.o *.ko .*.cmd Module.symvers Module.markers modules.order