CONF=pi2 CONFLIST=pi picpu pifat pi2 pi2cpu EXTRACOPIES= loadaddr=0x80008000 objtype=arm $target $OBJ: $HFILES install:V: /$objtype/$p$CONF /$objtype/$p$CONF:D: $p$CONF s$p$CONF cp -x $p$CONF s$p$CONF /$objtype/ & for(i in $EXTRACOPIES) { 9fs $i && cp $p$CONF s$p$CONF /n/$i/$objtype && echo -n $i... & } wait echo touch $target <../boot/bootmkfile <../port/portmkfile <|../port/mkbootrules $CONF arch.$O clock.$O fpiarm.$O main.$O mmu.$O screen.$O syscall.$O trap.$O: \ /$objtype/include/ureg.h archbcm.$O archbcm2.$O devether.$0 etherusb.$O: etherif.h ../port/netif.h fpi.$O fpiarm.$O fpimem.$O: ../port/fpi.h l.$O lexception.$O lproc.$O armv6.$O armv7.$O: arm.s armv7.$O: cache.v7.s main.$O: errstr.h init.h reboot.h mouse.$O screen.$O: screen.h devusb.$O usbdwc.$O: ../port/usb.h usbdwc.$O: dwcotg.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 -s -T0x1800 -R4 -o reboot.out rebootcode.$O -lc {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