</$objtype/mkfile
p=9
+# must match mem.h
KTZERO=0xffffffff80110000
-APBOOTSTRAP=0xffffffff80003000
+APBOOTSTRAP=0xffffffff80007000
REBOOTADDR=0x11000
DEVS=`{rc ../port/mkdevlist $CONF}
proc.$O\
qio.$O\
qlock.$O\
+ random.$O\
rdb.$O\
rebootcmd.$O\
segment.$O\
- swap.$O\
syscallfmt.$O\
sysfile.$O\
sysproc.$O\
memory.$O\
mmu.$O\
trap.$O\
- pcrandom.$O\
+ bootargs.$O\
$CONF.root.$O\
$CONF.rootc.$O\
$DEVS\
/$objtype/lib/libc.a\
/$objtype/lib/libfis.a\
/$objtype/lib/libaml.a\
+ /$objtype/lib/libdtracy.a\
ETHER=`{cd ../pc; echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}
AUDIO=`{cd ../pc; echo devaudio.c audio*.c | sed 's/\.c/.'$O'/g'}
# copies generated by the rule below
-PCHEADERS=wifi.h usbehci.h screen.h etherif.h ethermii.h mp.h io.h ahci.h
+PCHEADERS=usbehci.h screen.h ethermii.h mp.h io.h ahci.h \
+ yukdump.h
REPCH=`{echo $PCHEADERS | sed 's/\.h//g; s/ /|/g'}
-^($REPCH)\.h:R: '../pc/\1.h'
+^($REPCH)\.h:R: ../pc/\1.h
cp $prereq .
REPCC=`{../port/mkfilelist ../pc}
<../port/portmkfile
<|../port/mkbootrules $CONF
-l.$O apbootstrap.$O: mem.h
+l.$O: mem.h
-$ETHER: etherif.h ../port/netif.h
+$ETHER: ../port/etherif.h ../port/netif.h
$AUDIO: ../port/audioif.h
ether8003.$O ether8390.$O: ether8390.h
etheryuk.$O: yukdump.h
$VGA mouse.$O: screen.h /sys/include/memdraw.h
vgavesa.$O: /386/include/ureg.h
-archmp.$O mp.$O: apbootstrap.h
-apic.$O archmp.$O mp.$O: mp.h
-squidboy.$O: mp.h
+mp.$O: mp.h apbootstrap.h
+apic.$O squidboy.$O: mp.h
+archmp.$O archacpi.$O: mp.h
$SDEV: ../port/sd.h
sdiahci.$O: ahci.h
main.$O: init.h reboot.h
-devusb.$O usbuhci.$O usbohci.$O usbehci.$O: ../port/usb.h
+devusb.$O usbuhci.$O usbohci.$O usbehci.$O usbehcipc.$O usbxhci.$O: ../port/usb.h
usbehci.$O usbehcipc.$O: usbehci.h
trap.$O: /sys/include/tos.h
+
ethermii.$O: ethermii.h
-etheriwl.$O: wifi.h
-etherrt2860.$O: wifi.h
-wifi.$O: wifi.h
+ether8169.$O: ethermii.h
+etherdp83820.$O: ethermii.h
+etherigbe.$O: ethermii.h
+ethervgbe.$O: ethermii.h
+ethervt6102.$O: ethermii.h
+ethervt6105m.$O: ethermii.h
+
+etheriwl.$O: ../port/wifi.h
+etherwpi.$O: ../port/wifi.h
+etherrt2860.$O: ../port/wifi.h
init.h:D: ../port/initcode.c ../pc/init9.c
$CC ../port/initcode.c
sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
echo '};'} > init.h
-reboot.h: rebootcode.s
+reboot.h:D: rebootcode.s mem.h
$AS rebootcode.s
$LD -l -R1 -s -o reboot.out -T$REBOOTADDR rebootcode.$O
{echo 'uchar rebootcode[]={'
sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
echo '};'} > $target
-apbootstrap.h: apbootstrap.s
+apbootstrap.h:D: apbootstrap.s mem.h
$AS apbootstrap.s
$LD -l -R1 -s -o apbootstrap.out -T$APBOOTSTRAP apbootstrap.$O
{echo 'uchar apbootstrap[]={'