]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/pc64/mkfile
pc, pc64: properly track dependencies for mem.h on autogenerated apbootstrap.h and...
[plan9front.git] / sys / src / 9 / pc64 / mkfile
index 3027eaaa5e4abbf39399ed590117ad29be6863f3..541b1f7aff998c10d6aea50a63283efc9d2cde18 100644 (file)
@@ -5,8 +5,9 @@ objtype=amd64
 </$objtype/mkfile
 p=9
 
+# must match mem.h
 KTZERO=0xffffffff80110000
-APBOOTSTRAP=0xffffffff80003000
+APBOOTSTRAP=0xffffffff80007000
 REBOOTADDR=0x11000
 
 DEVS=`{rc ../port/mkdevlist $CONF}
@@ -29,10 +30,10 @@ PORT=\
        proc.$O\
        qio.$O\
        qlock.$O\
+       random.$O\
        rdb.$O\
        rebootcmd.$O\
        segment.$O\
-       swap.$O\
        syscallfmt.$O\
        sysfile.$O\
        sysproc.$O\
@@ -49,7 +50,7 @@ OBJ=\
        memory.$O\
        mmu.$O\
        trap.$O\
-       pcrandom.$O\
+       bootargs.$O\
        $CONF.root.$O\
        $CONF.rootc.$O\
        $DEVS\
@@ -65,6 +66,7 @@ LIB=\
        /$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'}
@@ -83,10 +85,11 @@ install:V:  $p$CONF
 
 
 # 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}
@@ -97,18 +100,18 @@ 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
@@ -116,14 +119,22 @@ devaoe.$O sdaoe.$O:               ../port/aoe.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
@@ -134,7 +145,7 @@ init.h:D:           ../port/initcode.c ../pc/init9.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[]={'
@@ -143,7 +154,7 @@ reboot.h:   rebootcode.s
         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[]={'