# build pxe loaders (from pxe + pbs) and disk loaders (disk + usb) objtype=386 $target # creating 9boot also creates 9bootdebug, out of mk's sight 9boot.install:V: 9boot cp 9boot 9bootdebug /$objtype/ & for(i in $EXTRACOPIES) { 9fs $i && cp $prereq /n/$i/$objtype && echo -n $i... & } wait echo # # disk-resident pxe loader, loaded by pbs # 9bootpbs:V: @ { rfork ne; bind bootmkfile mkfile KTZERO=$PBSBASE CONF=bootpbs SFX=pbs NPROC=$ONPROC START=l16r.$O; mk all } 9bootpbs.install:V: 9bootpbs @ { rfork ne; bind bootmkfile mkfile KTZERO=$PBSBASE CONF=bootpbs SFX=pbs NPROC=$ONPROC START=l16r.$O; mk install } # # disk-resident disk loaders, loaded by pbs # 9load:V: @ { rfork ne; bind bootmkfile mkfile KTZERO=$PBSBASE BASE=load CONF=load NPROC=$ONPROC START=l16r.$O; mk all } 9load.install:V: 9load @ { rfork ne; bind bootmkfile mkfile KTZERO=$PBSBASE BASE=load CONF=load NPROC=$ONPROC START=l16r.$O; mk install } 9loadusb:V: @ { rfork ne; bind bootmkfile mkfile KTZERO=$PBSBASE BASE=load CONF=loadusb NPROC=$ONPROC START=l16r.$O; mk all } 9loadusb.install:V: 9loadusb @ { rfork ne; bind bootmkfile mkfile KTZERO=$PBSBASE BASE=load CONF=loadusb NPROC=$ONPROC START=l16r.$O; mk install } # # pxe-loaded disk loaders for convenient debugging only # 9loadpxe:V: @ { rfork ne; bind bootmkfile mkfile KTZERO=$PXEBASE BASE=load CONF=loadpxe SFX=pxe NPROC=$ONPROC START=l16r.$O; mk all } 9loadpxe.install:V: 9loadpxe @ { rfork ne; bind bootmkfile mkfile KTZERO=$PXEBASE BASE=load CONF=loadpxe SFX=pxe NPROC=$ONPROC START=l16r.$O; mk install } 9loadusbpxe:V: @ { rfork ne; bind bootmkfile mkfile KTZERO=$PXEBASE BASE=load CONF=loadusbpxe SFX=pxe NPROC=$ONPROC START=l16r.$O; mk all } 9loadusbpxe.install:V: 9loadusbpxe @ { rfork ne; bind bootmkfile mkfile KTZERO=$PXEBASE BASE=load CONF=loadusbpxe SFX=pxe NPROC=$ONPROC START=l16r.$O; mk install } # # 8.expand: the decompressing header for 9boot # # for pbs, 0x10000 (64K), for pxe, 0x7c00 (31K) LOADADDR=0x7c00 cga.tiny.$O expand.$O: expand.h inflate.guts.c $O.expand: ldecomp.$O cga.tiny.$O expand.$O $LD -o $target^debug -R1 -T$LOADADDR $prereq $LD -o $target -H3 -R1 -T$LOADADDR $prereq