ref: eae58edb5a6f912d3fd06c96e01499ba46f730da
dir: /sys/src/9/bcm/mkfile/
CONF=pi2 CONFLIST=pi pi2 CRAPLIST=pif picpuf EXTRACOPIES= loadaddr=0x80008000 objtype=arm </$objtype/mkfile p=9 DEVS=`{rc ../port/mkdevlist $CONF} PORT=\ alarm.$O\ alloc.$O\ allocb.$O\ auth.$O\ cache.$O\ chan.$O\ dev.$O\ edf.$O\ fault.$O\ mul64fract.$O\ page.$O\ parse.$O\ pgrp.$O\ portclock.$O\ print.$O\ proc.$O\ qio.$O\ qlock.$O\ rdb.$O\ rebootcmd.$O\ segment.$O\ syscallfmt.$O\ sysfile.$O\ sysproc.$O\ taslock.$O\ tod.$O\ xalloc.$O\ userinit.$O\ OBJ=\ l.$O\ lexception.$O\ lproc.$O\ arch.$O\ bootargs.$O\ clock.$O\ fpi.$O\ fpiarm.$O\ fpimem.$O\ main.$O\ mmu.$O\ random.$O\ syscall.$O\ trap.$O\ $CONF.root.$O\ $CONF.rootc.$O\ $DEVS\ $PORT\ # HFILES= LIB=\ /$objtype/lib/libmemlayer.a\ /$objtype/lib/libmemdraw.a\ /$objtype/lib/libdraw.a\ /$objtype/lib/libip.a\ /$objtype/lib/libsec.a\ /$objtype/lib/libmp.a\ /$objtype/lib/libc.a\ 9:V: $p$CONF s$p$CONF $p$CONF:DQ: $OBJ $CONF.$O $LIB echo '# linking raw kernel' # H6: no headers, data segment aligned $LD -l -o $target -H6 -R4096 -T$loadaddr $prereq s$p$CONF:DQ: $OBJ $CONF.$O $LIB echo '# linking kernel with symbols' $LD -l -o $target -R4096 -T$loadaddr $prereq size $target $p$CONF.gz:D: $p$CONF gzip -9 <$p$CONF >$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 arch.$O trap.$O main.$O: /sys/include/tos.h fpi.$O fpiarm.$O fpimem.$O: fpi.h l.$O lexception.$O lproc.$O mmu.$O: mem.h l.$O lexception.$O lproc.$O armv6.$O armv7.$O: arm.s armv7.$O: cache.v7.s main.$O: errstr.h rebootcode.i devmouse.$O mouse.$O screen.$O: screen.h usbdwc.$O: dwcotg.h ../port/usb.h arch.$O archbcm.$O archbcm2.$O clock.$O coproc.$O fpiarn.$O mmu.$O trap.$O vfp3.$O rebootcode.$O: arm.h mem.h rebootcode.$O: arm.s cache.v7.s 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 -H6 -R4 -T0x1c00 -s -o $target $prereq