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
88 REPCH=`{echo $PCHEADERS | sed 's/\.h//g; s/ /|/g'}
89 ^($REPCH)\.h:R: ../pc/\1.h
92 REPCC=`{../port/mkfilelist ../pc}
93 ^($REPCC)\.$O:R: '../pc/\1.c'
94 $CC $CFLAGS -I. -. ../pc/$stem1.c
98 <|../port/mkbootrules $CONF
100 l.$O apbootstrap.$O: mem.h
102 $ETHER: etherif.h ../port/netif.h
103 $AUDIO: ../port/audioif.h
104 ether8003.$O ether8390.$O: ether8390.h
105 etheryuk.$O: yukdump.h
106 $VGA mouse.$O: screen.h /sys/include/memdraw.h
107 vgavesa.$O: /386/include/ureg.h
109 archmp.$O mp.$O: apbootstrap.h
110 apic.$O archmp.$O mp.$O: mp.h
115 devaoe.$O sdaoe.$O: ../port/aoe.h
117 main.$O: init.h reboot.h
119 devusb.$O usbuhci.$O usbohci.$O usbehci.$O: ../port/usb.h
120 usbehci.$O usbehcipc.$O: usbehci.h
122 trap.$O: /sys/include/tos.h
123 ethermii.$O: ethermii.h
126 etherrt2860.$O: wifi.h
129 init.h:D: ../port/initcode.c ../pc/init9.c
130 $CC ../port/initcode.c
132 $LD -l -R1 -s -o init.out init9.$O initcode.$O /$objtype/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: rebootcode.s
140 $LD -l -R1 -s -o reboot.out -T$REBOOTADDR rebootcode.$O
141 {echo 'uchar rebootcode[]={'
142 dd -if reboot.out -bs 1 -iseek 40 |
144 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
147 apbootstrap.h: apbootstrap.s
149 $LD -l -R1 -s -o apbootstrap.out -T$APBOOTSTRAP apbootstrap.$O
150 {echo 'uchar apbootstrap[]={'
151 dd -if apbootstrap.out -bs 1 -iseek 40 |
153 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
156 sd53c8xx.i: sd53c8xx.n
157 aux/na $prereq > $target
160 $CC -a -w main.c>acid
163 rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* apbootstrap.h reboot.h init.h $PCHEADERS