8 KTZERO=0xffffffff80110000
9 APBOOTSTRAP=0xffffffff80003000
12 DEVS=`{rc ../port/mkdevlist $CONF}
59 /$objtype/lib/libmemlayer.a\
60 /$objtype/lib/libmemdraw.a\
61 /$objtype/lib/libdraw.a\
62 /$objtype/lib/libip.a\
63 /$objtype/lib/libsec.a\
64 /$objtype/lib/libmp.a\
66 /$objtype/lib/libfis.a\
67 /$objtype/lib/libaml.a\
69 ETHER=`{cd ../pc; echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}
70 AUDIO=`{cd ../pc; echo devaudio.c audio*.c | sed 's/\.c/.'$O'/g'}
71 VGA=`{cd ../pc; echo devvga.c screen.c vga*.c | sed 's/\.c/.'$O'/g'}
72 SDEV=`{cd ../pc; echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}
74 $p$CONF: $CONF.c $OBJ $LIB
75 $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
76 $LD -o $target -T$KTZERO -R4096 -l $OBJ $CONF.$O $LIB
81 for(i in $EXTRACOPIES)
82 import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/
85 # copies generated by the rule below
86 PCHEADERS=wifi.h usbehci.h screen.h etherif.h ethermii.h mp.h io.h ahci.h \
89 REPCH=`{echo $PCHEADERS | sed 's/\.h//g; s/ /|/g'}
90 ^($REPCH)\.h:R: ../pc/\1.h
93 REPCC=`{../port/mkfilelist ../pc}
94 ^($REPCC)\.$O:R: '../pc/\1.c'
95 $CC $CFLAGS -I. -. ../pc/$stem1.c
99 <|../port/mkbootrules $CONF
101 l.$O apbootstrap.$O: mem.h
103 $ETHER: 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
110 archmp.$O mp.$O: apbootstrap.h
111 apic.$O archmp.$O mp.$O: mp.h
116 devaoe.$O sdaoe.$O: ../port/aoe.h
118 main.$O: init.h reboot.h
120 devusb.$O usbuhci.$O usbohci.$O usbehci.$O: ../port/usb.h
121 usbehci.$O usbehcipc.$O: usbehci.h
123 trap.$O: /sys/include/tos.h
124 ethermii.$O: ethermii.h
127 etherrt2860.$O: wifi.h
130 init.h:D: ../port/initcode.c ../pc/init9.c
131 $CC ../port/initcode.c
133 $LD -l -R1 -s -o init.out init9.$O initcode.$O /$objtype/lib/libc.a
134 {echo 'uchar initcode[]={'
136 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
139 reboot.h: rebootcode.s
141 $LD -l -R1 -s -o reboot.out -T$REBOOTADDR rebootcode.$O
142 {echo 'uchar rebootcode[]={'
143 dd -if reboot.out -bs 1 -iseek 40 |
145 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
148 apbootstrap.h: apbootstrap.s
150 $LD -l -R1 -s -o apbootstrap.out -T$APBOOTSTRAP apbootstrap.$O
151 {echo 'uchar apbootstrap[]={'
152 dd -if apbootstrap.out -bs 1 -iseek 40 |
154 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
157 sd53c8xx.i: sd53c8xx.n
158 aux/na $prereq > $target
161 $CC -a -w main.c>acid
164 rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* apbootstrap.h reboot.h init.h $PCHEADERS