Linux 2.6.17.7
[linux/fpc-iii.git] / drivers / block / paride / jumbo
blobe793b9cb7e72ab56fb5553e6a5ca045c311fa381
1 #!/bin/sh
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] : "
7 read X
8 HLD=${X:-pcd}
10 echo -n "Protocol module [bpck] : "
11 read X
12 PROTO=${X:-bpck}
14 echo -n "Use MODVERSIONS [y] ? "
15 read X
16 UMODV=${X:-y}
18 echo -n "For SMP kernel [n] ? "
19 read X
20 USMP=${X:-n}
22 echo -n "Support PARPORT [n] ? "
23 read X
24 UPARP=${X:-n}
26 echo
28 case $USMP in
29 y* | Y* ) FSMP="-DCONFIG_SMP"
31 *) FSMP=""
33 esac
35 MODI="-include ../../../include/linux/modversions.h"
37 case $UMODV in
38 y* | Y* ) FMODV="-DMODVERSIONS $MODI"
40 *) FMODV=""
42 esac
44 case $UPARP in
45 y* | Y* ) FPARP="-DCONFIG_PARPORT"
47 *) FPARP=""
49 esac
51 TARG=$HLD-$PROTO.o
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
69 rm Jp.o Jb.o Jd.o