3 # This script can be used to build "jumbo" modules that contain the
4 # base PARIDE support, one protocol module and one high-level driver.
6 echo -n "High level driver [pcd] : "
10 echo -n "Protocol module [bpck] : "
14 echo -n "Use MODVERSIONS [y] ? "
18 echo -n "For SMP kernel [n] ? "
22 echo -n "Support PARPORT [n] ? "
29 y* | Y* ) FSMP="-DCONFIG_SMP"
35 MODI="-include ../../../include/linux/modversions.h"
38 y* | Y* ) FMODV="-DMODVERSIONS $MODI"
45 y* | Y* ) FPARP="-DCONFIG_PARPORT"
52 FPROTO=-DCONFIG_PARIDE_`echo "$PROTO" | tr [a-z] [A-Z]`
53 FK="-D__KERNEL__ -I ../../../include"
54 FLCH=-D_LINUX_CONFIG_H
56 echo cc $FK $FSMP $FLCH $FPARP $FPROTO $FMODV -Wall -O2 -o Jb.o -c paride.c
57 cc $FK $FSMP $FLCH $FPARP $FPROTO $FMODV -Wall -O2 -o Jb.o -c paride.c
59 echo cc $FK $FSMP $FMODV -Wall -O2 -o Jp.o -c $PROTO.c
60 cc $FK $FSMP $FMODV -Wall -O2 -o Jp.o -c $PROTO.c
62 echo cc $FK $FSMP $FMODV -DMODULE -DPARIDE_JUMBO -Wall -O2 -o Jd.o -c $HLD.c
63 cc $FK $FSMP $FMODV -DMODULE -DPARIDE_JUMBO -Wall -O2 -o Jd.o -c $HLD.c
65 echo ld -r -o $TARG Jp.o Jb.o Jd.o
66 ld -r -o $TARG Jp.o Jb.o Jd.o