CONF=plug CONFLIST=plug # allegedly u-boot uses the bottom 8MB (up to 0x800000) # so avoid that loadaddr=0x60800000 objtype=arm $target $OBJ: $HFILES install:V: /$objtype/$p$CONF install-in-flash:V: /$objtype/$p$CONF paqdisk plug.flash.cfg echo erase all >/dev/flash/kernelctl cp /$objtype/$p$CONF /dev/flash/kernel echo erase all >/dev/flash/plan9ctl cp paqdisk /dev/flash/plan9 /$objtype/$p$CONF:D: $p$CONF s$p$CONF cp -x $p$CONF s$p$CONF /$objtype & { 9fs lookout && cp -x $p$CONF s$p$CONF /n/lookout/$objtype } & # { 9fs piestand && cp -x $p$CONF s$p$CONF /n/piestand/$objtype } & wait touch $target paqdisk: rm -fr armpaq mkdir armpaq cd armpaq disk/mkfs -d . /sys/lib/sysconfig/proto/armpaqproto mkpaqfs -o ../paqdisk cd .. <../boot/bootmkfile <../port/portmkfile <|../port/mkbootrules $CONF # CFLAGS= -I. -I../port $CFLAGS # hack to compile private sysproc.c (e.g.) arch.$O clock.$O fpiarm.$O main.$O mmu.$O screen.$O sdscsi.$O syscall.$O \ trap.$O: /$objtype/include/ureg.h archkw.$O devether.$O ether1116.$O ethermii.$O: \ etherif.h ethermii.h ../port/netif.h archkw.$O devflash.$O flashkw.$O: ../port/flashif.h fpi.$O fpiarm.$O fpimem.$O: fpi.h l.$O lexception.$O lproc.$O mmu.$O: arm.s arm.h mem.h main.$O: errstr.h init.h reboot.h mouse.$O: screen.h devusb.$O: usb.h usbehci.$O usbohci.$O usbuhci.$O: usb.h usbehci.h uncached.h init.h:D: ../port/initcode.c init9.s $CC ../port/initcode.c $AS init9.s $LD -l -R1 -s -o init.out init9.$O initcode.$O /$objtype/lib/libc.a {echo 'uchar initcode[]={' xd -1x init.h reboot.h:D: rebootcode.s arm.s arm.h mem.h $AS rebootcode.s # -lc is only for memmove. -T arg is PADDR(REBOOTADDR) $LD -l -a -s -T0x100 -R4 -o reboot.out 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 errstr.h:D: ../port/mkerrstr ../port/error.h rc ../port/mkerrstr > errstr.h plug.clean: rm -rf $p$CONF s$p$CONF armpaq paqdisk $CONF.c boot$CONF.c ../boot/libboot.a5