3 CRAPLIST=pc pccpu pccd pcflop
5 #EXTRACOPIES=lookout boundary # copy to these servers on install
12 APBOOTSTRAP=0xF0003000
15 DEVS=`{rc ../port/mkdevlist $CONF}
62 /$objtype/lib/libmemlayer.a\
63 /$objtype/lib/libmemdraw.a\
64 /$objtype/lib/libdraw.a\
65 /$objtype/lib/libip.a\
67 /$objtype/lib/libsec.a\
68 /$objtype/lib/libmp.a\
69 /$objtype/lib/libfis.a\
70 /$objtype/lib/libaml.a\
72 ETHER=`{echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}
73 AUDIO=`{echo devaudio.c audio*.c | sed 's/\.c/.'$O'/g'}
74 VGA=`{echo devvga.c screen.c vga*.c | sed 's/\.c/.'$O'/g'}
75 SDEV=`{echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}
77 $p$CONF: $CONF.c $OBJ $LIB
78 $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
79 $LD -o $target -T$KTZERO -l $OBJ $CONF.$O $LIB
82 # don't strip the gzipped kernels -- too frustrating when that's all you have!
84 gzip -9 <$p$stem >$p$stem.gz
87 # pcflop and pccd need all the space they can get
89 strip -o /fd/1 9pcflop | gzip -9 >9pcflop.gz
92 strip -o /fd/1 9pccd | gzip -9 >9pccd.gz
97 for(i in $EXTRACOPIES)
98 import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/
102 <|../port/mkbootrules $CONF
104 $ETHER: etherif.h ../port/netif.h
105 $AUDIO: ../port/audioif.h
106 ether8003.$O ether8390.$O: ether8390.h
107 etheryuk.$O: yukdump.h
108 $VGA mouse.$O: screen.h /sys/include/memdraw.h
109 vgavesa.$O: /386/include/ureg.h
110 devfloppy.$O: floppy.h
111 archmp.$O mp.$O: apbootstrap.h
112 apic.$O archmp.$O mp.$O: mp.h
115 sd53c8xx.$O: sd53c8xx.i
117 devaoe.$O sdaoe.$O: ../port/aoe.h
118 main.$O: init.h reboot.h
119 wavelan.$O: wavelan.c ../pc/wavelan.c ../pc/wavelan.h
120 etherwavelan.$O: etherwavelan.c ../pc/wavelan.h
121 devusb.$O usbuhci.$O usbohci.$O usbehci.$O: ../port/usb.h
122 trap.$O: /sys/include/tos.h
123 uartaxp.$O: uartaxp.i
124 etherm10g.$O: etherm10g2k.i etherm10g4k.i
126 etherrt2860.$O: wifi.h
129 init.h:D: ../port/initcode.c init9.c
130 $CC ../port/initcode.c
132 $LD -l -R1 -s -o init.out init9.$O initcode.$O /386/lib/libc.a
133 {echo 'uchar initcode[]={'
135 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
138 reboot.h:D: rebootcode.s
140 $LD -l -s -T0x11000 -R4 -o reboot.out rebootcode.$O
141 {echo 'uchar rebootcode[]={'
143 sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
144 echo '};'} > reboot.h
146 apbootstrap.h: apbootstrap.s mem.h
148 $LD -o apbootstrap.out -T$APBOOTSTRAP -R4 -l -s apbootstrap.$O
149 {echo 'uchar apbootstrap[]={'
150 xd -1x apbootstrap.out |
151 sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
154 sd53c8xx.i: sd53c8xx.n
155 aux/na $prereq > $target
158 {echo 'static uchar uartaxpcp[] = {'
160 sed -e 's/^[0-9a-f]+ //' -e '/^$/d' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
164 etherm10g%.i: etherm10g%.fw
165 {echo 'static char fw'^$stem^'[] = {'
167 sed -e 's/^[0-9a-f]+ //' -e '/^$/d' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
172 8c -a -w -I. i8253.c>acid
176 x=`{echo $i | sed 's/\.c//'}
177 if(! ~ $x ether8390 && ! grep -s '^ '^$x^'([ ]|$)' $stem)
178 echo $x not included in $stem
184 x=`{echo $i | sed 's/\.c//'}
185 if(! ~ $x vga vgax vgasavage && ! grep -s '^ '^$x^'([ ]|$)' $stem)
186 echo $x not included in $stem
191 for(i in pcdisk pcflop)
192 for(j in checkvga checkether)
196 rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* reboot.h apbootstrap.h init.h