summaryrefslogtreecommitdiffstats
path: root/drivers/block/paride/jumbo
blob: f4b8ebf75ef11a2aac922173a168414b5863aee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh
#
# This script can be used to build "jumbo" modules that contain the
# base PARIDE support, one protocol module and one high-level driver.
#
echo -n "High level driver [pcd] : "
read X
HLD=${X:-pcd}
#
echo -n "Protocol module [bpck] : "
read X
PROTO=${X:-bpck}
#
echo -n "Use MODVERSIONS [y] ? "
read X
UMODV=${X:-y}
#
echo -n "For SMP kernel [n] ? "
read X
USMP=${X:-n}
#
echo -n "Support PARPORT [n] ? "
read X
UPARP=${X:-n}
#
echo
#
case $USMP in
	y* | Y* ) FSMP="-D__SMP__"
		  ;;
	*)	  FSMP=""
		  ;;
esac
#
MODI="-include ../../../include/linux/modversions.h"
#
case $UMODV in
	y* | Y* ) FMODV="-DMODVERSIONS $MODI"
		  ;;
	*)	  FMODV=""
		  ;;
esac
#
case $UPARP in
	y* | Y* ) FPARP="-DCONFIG_PARPORT"
		  ;;
	*)	  FPARP=""
		  ;;
esac
#
TARG=$HLD-$PROTO.o
FPROTO=-DCONFIG_PARIDE_`echo "$PROTO" | tr [a-z] [A-Z]`
FK="-D__KERNEL__ -I ../../../include"
FLCH=-D_LINUX_CONFIG_H
#
echo cc $FK $FSMP $FLCH $FPARP $FPROTO $FMODV -Wall -O2 -o Jb.o -c paride.c
cc $FK $FSMP $FLCH $FPARP $FPROTO $FMODV -Wall -O2 -o Jb.o -c paride.c
#
echo cc $FK $FSMP $FMODV -Wall -O2 -o Jp.o -c $PROTO.c
cc $FK $FSMP $FMODV -Wall -O2 -o Jp.o -c $PROTO.c
#
echo cc $FK $FSMP $FMODV -DMODULE -DPARIDE_JUMBO -Wall -O2 -o Jd.o -c $HLD.c
cc $FK $FSMP $FMODV -DMODULE -DPARIDE_JUMBO -Wall -O2 -o Jd.o -c $HLD.c
#
echo ld -r -o $TARG Jp.o Jb.o Jd.o
ld -r -o $TARG Jp.o Jb.o Jd.o
#
#
rm Jp.o Jb.o Jd.o
#