CONF=ts CONFLIST=ts EXTRACOPIES= # allegedly u-boot uses the bottom 4MB (up to 0x400000) so avoid that, # and leave 64K for plan9.ini. loadaddr must match KTZERO in mem.h # and CONFADDR must be 0x10000 lower. loadaddr=0xc0410000 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 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 archtegra.$O devether.$0 ether9221.$O: ../port/etherif.h ../port/netif.h archtegra.$O devflash.$O flashtegra.$O flashigep.$O: ../port/flashif.h ecc.$O flashtegra.$O flashigep.$O: ../port/nandecc.h io.h fpi.$O fpiarm.$O fpimem.$O: fpi.h l.$O lexception.$O lproc.$O mmu.$O rebootcode.$O: arm.s mem.h l.$O rebootcode.$O: cache.v7.s main.$O: errstr.h rebootcode.i /sys/include/tos.h devusb.$O: ../port/usb.h usbehci.$O usbohci.$O usbuhci.$O: ../port/usb.h usbehci.h uncached.h init9.$O: ../omap/init9.s $AS ../omap/init9.s initcode.out: init9.$O initcode.$O /$objtype/lib/libc.a $LD -l -R1 -s -o $target $prereq rebootcode.out: rebootcode.$O $LD -l -R4 -T0x100 -s -o $target $prereq -lc