4 #EXTRACOPIES=lookout boundary # copy to these servers on install
11 APBOOTSTRAP=0xF0003000
14 DEVS=`{rc ../port/mkdevlist $CONF}
61 /$objtype/lib/libmemlayer.a\
62 /$objtype/lib/libmemdraw.a\
63 /$objtype/lib/libdraw.a\
64 /$objtype/lib/libip.a\
66 /$objtype/lib/libsec.a\
67 /$objtype/lib/libmp.a\
68 /$objtype/lib/libfis.a\
69 /$objtype/lib/libaml.a\
71 ETHER=`{echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}
72 AUDIO=`{echo devaudio.c audio*.c | sed 's/\.c/.'$O'/g'}
73 VGA=`{echo devvga.c screen.c vga*.c | sed 's/\.c/.'$O'/g'}
74 SDEV=`{echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}
76 $p$CONF: $CONF.c $OBJ $LIB
77 $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
78 $LD -o $target -T$KTZERO -l $OBJ $CONF.$O $LIB
81 # don't strip the gzipped kernels -- too frustrating when that's all you have!
83 gzip -9 <$p$stem >$p$stem.gz
86 # pcflop and pccd need all the space they can get
88 strip -o /fd/1 9pcflop | gzip -9 >9pcflop.gz
91 strip -o /fd/1 9pccd | gzip -9 >9pccd.gz
96 for(i in $EXTRACOPIES)
97 import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/
101 <|../port/mkbootrules $CONF
103 $ETHER: ../port/etherif.h ../port/netif.h
104 $AUDIO: ../port/audioif.h
105 ether8003.$O ether8390.$O: ether8390.h
106 etheryuk.$O: yukdump.h
107 $VGA mouse.$O: screen.h /sys/include/memdraw.h
108 vgavesa.$O: /386/include/ureg.h
109 devfloppy.$O: floppy.h
110 archmp.$O mp.$O: apbootstrap.h
111 apic.$O archmp.$O mp.$O: mp.h
114 sd53c8xx.$O: sd53c8xx.i
116 devaoe.$O sdaoe.$O: ../port/aoe.h
117 main.$O: init.h reboot.h
118 wavelan.$O: wavelan.c ../pc/wavelan.c ../pc/wavelan.h
119 etherwavelan.$O: etherwavelan.c ../pc/wavelan.h
120 devusb.$O usbuhci.$O usbohci.$O usbehci.$O usbehcipc.$O usbxhci.$O: ../port/usb.h
121 usbehci.$O usbehcipc.$O: usbehci.h
122 trap.$O: /sys/include/tos.h
123 uartaxp.$O: uartaxp.i
124 ethermii.$O: ethermii.h
125 ether8169.$O: ethermii.h
126 etherdp83820.$O: ethermii.h
127 etherigbe.$O: ethermii.h
128 ethervgbe.$O: ethermii.h
129 ethervt6102.$O: ethermii.h
130 ethervt6105m.$O: ethermii.h
131 etherm10g.$O: etherm10g2k.i etherm10g4k.i
132 etheriwl.$O: ../port/wifi.h
133 etherwpi.$O: ../port/wifi.h
134 etherrt2860.$O: ../port/wifi.h
136 init.h:D: ../port/initcode.c init9.c
137 $CC ../port/initcode.c
139 $LD -l -R1 -s -o init.out init9.$O initcode.$O /386/lib/libc.a
140 {echo 'uchar initcode[]={'
142 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
145 reboot.h:D: rebootcode.s
147 $LD -l -s -T0x11000 -R4 -o reboot.out rebootcode.$O
148 {echo 'uchar rebootcode[]={'
150 sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
151 echo '};'} > reboot.h
153 apbootstrap.h: apbootstrap.s mem.h
155 $LD -o apbootstrap.out -T$APBOOTSTRAP -R4 -l -s apbootstrap.$O
156 {echo 'uchar apbootstrap[]={'
157 xd -1x apbootstrap.out |
158 sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
161 sd53c8xx.i: sd53c8xx.n
162 aux/na $prereq > $target
165 {echo 'static uchar uartaxpcp[] = {'
167 sed -e 's/^[0-9a-f]+ //' -e '/^$/d' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
171 etherm10g%.i: etherm10g%.fw
172 {echo 'static char fw'^$stem^'[] = {'
174 sed -e 's/^[0-9a-f]+ //' -e '/^$/d' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
179 8c -a -w -I. i8253.c>acid
183 x=`{echo $i | sed 's/\.c//'}
184 if(! ~ $x ether8390 && ! grep -s '^ '^$x^'([ ]|$)' $stem)
185 echo $x not included in $stem
191 x=`{echo $i | sed 's/\.c//'}
192 if(! ~ $x vga vgax vgasavage && ! grep -s '^ '^$x^'([ ]|$)' $stem)
193 echo $x not included in $stem
198 for(i in pcdisk pcflop)
199 for(j in checkvga checkether)
203 rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* reboot.h apbootstrap.h init.h