CONF=lnbzroot CONFLIST=lnbzroot lncpu EXTRACOPIES= objtype=spim $target.list size $target install:V: $p$CONF cp $p$CONF /$objtype/ for(i in $EXTRACOPIES) { 9fs $i && cp $p$CONF /n/$i/$objtype/ && echo -n $i... & } wait echo <../boot/bootmkfile <../port/portmkfile <|../port/mkbootrules $CONF init.h: init9.s ../port/initcode.c $objtype.s /sys/src/libc/9syscall/sys.h mkfile $AS init9.s $CC ../port/initcode.c $LD -a -T$UTZERO -R4 -o init.out init9.$O initcode.$O >initcode.list {echo 'uchar initcode[]={' xd -r -1x init.out | sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g' echo '};'} > init.h reboot.h: initreboot.s rebootcode.c mem.h $objtype.s /$objtype/lib/libc.a $AS $AFLAGS initreboot.s $CC $CFLAGS rebootcode.c # -lc is only for memmove $LD -l -a -s -T$REBOOTADDR -R4 -o reboot.out initreboot.$O rebootcode.$O -lc >reboot.list {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 l.$O: $objtype.s main.$O: errstr.h init.h reboot.h devether.$O: ../port/netif.h etherif.h archln.$O clock.$O faultmips.$O mmu.$O trap.$O: /$objtype/include/ureg.h %.clean:V: rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* *.list # override ../port/portmkfile # create /boot/boot boot$CONF.out: $CONF print.$O $BOOTDIR/boot.c $BOOTLIB $BOOTDIR/mkboot $CONF > boot$CONF.c $CC $CFLAGS boot$CONF.c $CC $CFLAGS ../boot/printstub.c $AS c_fcr0.s $LD -a -o boot$CONF.out -T$UTZERO -R$MAXBY2PG boot$CONF.$O $BOOTLIB printstub.$O c_fcr0.$O > boot$CONF.list