From d0f824edc2fa69ab9fc9618a93fd6e3f15acb2b9 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 4 Jan 2019 02:51:29 +0100 Subject: pc, pc64: properly track dependencies for mem.h on autogenerated apbootstrap.h and reboot.h targets --- sys/src/9/pc/mkfile | 9 +++++---- sys/src/9/pc64/mkfile | 7 ++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/sys/src/9/pc/mkfile b/sys/src/9/pc/mkfile index 6b43feddc..17964dd92 100644 --- a/sys/src/9/pc/mkfile +++ b/sys/src/9/pc/mkfile @@ -8,8 +8,9 @@ objtype=386 p=9 # must match mem.h -APBOOTSTRAP=0xF0007000 KTZERO=0xF0100020 +APBOOTSTRAP=0xF0007000 +REBOOTADDR=0x11000 DEVS=`{rc ../port/mkdevlist $CONF} @@ -143,15 +144,15 @@ init.h:D: ../port/initcode.c init9.c sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g' echo '};'} > init.h -reboot.h:D: rebootcode.s +reboot.h:D: rebootcode.s mem.h $AS rebootcode.s - $LD -l -s -T0x11000 -R4 -o reboot.out rebootcode.$O + $LD -l -s -T$REBOOTADDR -R4 -o reboot.out rebootcode.$O {echo 'uchar rebootcode[]={' xd -1x reboot.out | sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g' echo '};'} > reboot.h -apbootstrap.h: apbootstrap.s mem.h +apbootstrap.h:D: apbootstrap.s mem.h $AS $prereq $LD -o apbootstrap.out -T$APBOOTSTRAP -R4 -l -s apbootstrap.$O {echo 'uchar apbootstrap[]={' diff --git a/sys/src/9/pc64/mkfile b/sys/src/9/pc64/mkfile index fc0b5af09..541b1f7af 100644 --- a/sys/src/9/pc64/mkfile +++ b/sys/src/9/pc64/mkfile @@ -5,6 +5,7 @@ objtype=amd64 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[]={' @@ -153,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[]={' -- cgit v1.2.3