No subject
Tue Sep 5 14:32:44 MST 2006
makefile, do a make clean, moves tones.h back, then copy this Makefile over the
top of the old one, you can then use something like...
make -C /usr/src/linux SUBDIRS=`pwd` modules
That should build your .ko files, modules_install doesn't work, it all assumes
your kernel source is in /usr/src/linux (it should really be using
/lib/modules/`uname -r`/build, but I haven't tested that).
BASEADDR=0xd0000
DEFAULTZONE=0
CFLAGS+=-DSTANDALONE_ZAPATA
CFLAGS+=-I/usr/src/linux -I/usr/src/linux/include/asm/mach-default -I. -O4 -g -Wall -DBUILDING_TONEZONE #-DTONEZONE_DRIVER
CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
CFLAGS+=-DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net \
-Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net
CFLAGS+=-DECHO_CAN_MARK2
CFLAGS+=-DTORMENTA_BASE=$(BASEADDR)
CFLAGS+=-DDEFAULT_TONE_ZONE=$(DEFAULTZONE)
CFLAGS+=-D__SMP__
obj-m += zaptel.o wcfxo.o wcfxs.o ztdynamic.o ztd-eth.o wct1xxp.o wct4xxp.o ztdummy.o
PRIMARY=wcfxo
More information about the asterisk-users
mailing list