4 #EXTRACOPIES=lookout boundary # copy to these servers on install
12 APBOOTSTRAP=0xF0007000
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\
71 /$objtype/lib/libdtracy.a\
73 ETHER=`{echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}
74 AUDIO=`{echo devaudio.c audio*.c | sed 's/\.c/.'$O'/g'}
75 VGA=`{echo devvga.c screen.c vga*.c | sed 's/\.c/.'$O'/g'}
76 SDEV=`{echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}
78 $p$CONF: $CONF.c $OBJ $LIB
79 $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
80 $LD -o $target -T$KTZERO -l $OBJ $CONF.$O $LIB
83 # don't strip the gzipped kernels -- too frustrating when that's all you have!
85 gzip -9 <$p$stem >$p$stem.gz
88 # pcflop and pccd need all the space they can get
90 strip -o /fd/1 9pcflop | gzip -9 >9pcflop.gz
93 strip -o /fd/1 9pccd | gzip -9 >9pccd.gz
98 for(i in $EXTRACOPIES)
99 import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/
103 <|../port/mkbootrules $CONF
105 $ETHER: ../port/etherif.h ../port/netif.h
106 $AUDIO: ../port/audioif.h
107 ether8003.$O ether8390.$O: ether8390.h
108 etheryuk.$O: yukdump.h
109 $VGA mouse.$O: screen.h /sys/include/memdraw.h
110 vgavesa.$O: /386/include/ureg.h
111 devfloppy.$O: floppy.h
112 archmp.$O mp.$O: apbootstrap.h
113 apic.$O archmp.$O mp.$O: mp.h
116 sd53c8xx.$O: sd53c8xx.i
118 devaoe.$O sdaoe.$O: ../port/aoe.h
119 main.$O: init.h reboot.h
120 wavelan.$O: wavelan.c ../pc/wavelan.c ../pc/wavelan.h
121 etherwavelan.$O: etherwavelan.c ../pc/wavelan.h
122 devusb.$O usbuhci.$O usbohci.$O usbehci.$O usbehcipc.$O usbxhci.$O: ../port/usb.h
123 usbehci.$O usbehcipc.$O: usbehci.h
124 trap.$O: /sys/include/tos.h
125 uartaxp.$O: uartaxp.i
126 ether8169.$O: ../port/ethermii.h
127 etherdp83820.$O: ../port/ethermii.h
128 etherigbe.$O: ../port/ethermii.h
129 ethervgbe.$O: ../port/ethermii.h
130 ethervt6102.$O: ../port/ethermii.h
131 ethervt6105m.$O: ../port/ethermii.h
132 etherm10g.$O: etherm10g2k.i etherm10g4k.i
133 etheriwl.$O: ../port/wifi.h
134 etherwpi.$O: ../port/wifi.h
135 etherrt2860.$O: ../port/wifi.h
137 init.h:D: ../port/initcode.c init9.c
138 $CC ../port/initcode.c
140 $LD -l -R1 -s -o init.out init9.$O initcode.$O /386/lib/libc.a
141 {echo 'uchar initcode[]={'
143 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
146 reboot.h:D: rebootcode.s mem.h
148 $LD -l -s -T$REBOOTADDR -R4 -o reboot.out rebootcode.$O
149 {echo 'uchar rebootcode[]={'
151 sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
152 echo '};'} > reboot.h
154 apbootstrap.h:D: apbootstrap.s mem.h
156 $LD -o apbootstrap.out -T$APBOOTSTRAP -R4 -l -s apbootstrap.$O
157 {echo 'uchar apbootstrap[]={'
158 xd -1x apbootstrap.out |
159 sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
162 sd53c8xx.i: sd53c8xx.n
163 aux/na $prereq > $target
166 {echo 'static uchar uartaxpcp[] = {'
168 sed -e 's/^[0-9a-f]+ //' -e '/^$/d' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
172 etherm10g%.i: etherm10g%.fw
173 {echo 'static char fw'^$stem^'[] = {'
175 sed -e 's/^[0-9a-f]+ //' -e '/^$/d' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
180 8c -a -w -I. i8253.c>acid
184 x=`{echo $i | sed 's/\.c//'}
185 if(! ~ $x ether8390 && ! grep -s '^ '^$x^'([ ]|$)' $stem)
186 echo $x not included in $stem
192 x=`{echo $i | sed 's/\.c//'}
193 if(! ~ $x vga vgax vgasavage && ! grep -s '^ '^$x^'([ ]|$)' $stem)
194 echo $x not included in $stem
199 for(i in pcdisk pcflop)
200 for(j in checkvga checkether)
204 rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* reboot.h apbootstrap.h init.h