The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/bitsy/mkfile

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 CONF=bitsy
    2 CONFLIST=bitsy
    3 
    4 objtype=arm
    5 </$objtype/mkfile
    6 p=9
    7 
    8 DEVS=`{rc ../port/mkdevlist $CONF}
    9 
   10 PORT=\
   11         alarm.$O\
   12         alloc.$O\
   13         allocb.$O\
   14         auth.$O\
   15         cache.$O\
   16         chan.$O\
   17         dev.$O\
   18         edf.$O\
   19         fault.$O\
   20         latin1.$O\
   21         mul64fract.$O\
   22         rebootcmd.$O\
   23         page.$O\
   24         parse.$O\
   25         pgrp.$O\
   26         portclock.$O\
   27         print.$O\
   28         proc.$O\
   29         qio.$O\
   30         qlock.$O\
   31         segment.$O\
   32         swap.$O\
   33         sysfile.$O\
   34         sysproc.$O\
   35         taslock.$O\
   36         tod.$O\
   37         xalloc.$O\
   38 
   39 OBJ=\
   40         l.$O\
   41         clock.$O\
   42         defont.$O\
   43         fpi.$O\
   44         fpiarm.$O\
   45         fpimem.$O\
   46         main.$O\
   47         mmu.$O\
   48         power.$O\
   49         random.$O\
   50         sa1110dma.$O\
   51         screen.$O\
   52         trap.$O\
   53         $CONF.root.$O\
   54         $CONF.rootc.$O\
   55         $DEVS\
   56         $PORT\
   57 
   58 LIB=\
   59         /$objtype/lib/libmemlayer.a\
   60         /$objtype/lib/libmemdraw.a\
   61         /$objtype/lib/libdraw.a\
   62         /$objtype/lib/libip.a\
   63         /$objtype/lib/libc.a\
   64         /$objtype/lib/libsec.a\
   65         /$objtype/lib/libip.a\
   66 
   67 size:VQ: $p$CONF
   68         ls -l $p$CONF|sed 's/^[^ ]+ [^ ]+ [^ ]+ [^ ]+ [^ ]+ ([^ ]+).*/load ram 0xc0008000 \1/'
   69         echo load kernel
   70         echo !xms /sys/src/9/bitsy/^$p$CONF
   71         echo jump 0xc0008010
   72 
   73 acid:VQ:
   74         echo acid -lmap s9bitsy
   75 
   76 $p$CONF:        $OBJ $CONF.c $LIB /arm/inflate
   77         $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
   78         $LD -o $target -H5 -R4 -T0xC0008010 -l $OBJ $CONF.$O $LIB
   79         $LD -o s$target -R4 -T0xC0008010 -l $OBJ $CONF.$O $LIB
   80         gzip $target
   81         cat /arm/inflate $target.gz > $target
   82         echo the boot loader misses the last 12 bytes >> $target
   83         rm $target.gz
   84 
   85 install:V:      $p$CONF paqdisk
   86         if(test -d /n/once/arm){
   87                 cp $p$CONF /n/once/arm/$p$CONF
   88                 cp s$p$CONF /n/once/arm/s$p$CONF
   89                 cp paqdisk /n/once/arm/paqdisk
   90         }
   91         if not
   92                 status=''
   93         # 9fs lookout && cp $p$CONF /n/lookout/$objtype/$p$CONF
   94 
   95 installkern:V:  $p$CONF
   96         cp $p$CONF /$objtype/$p$CONF
   97         cp s$p$CONF /$objtype/s$p$CONF
   98 
   99 <../boot/bootmkfile
  100 <../port/portmkfile
  101 <|../port/mkbootrules $CONF
  102 
  103 init.h: ../port/initcode.c init9.s
  104         $CC ../port/initcode.c
  105         $AS init9.s
  106         $LD -l -R1 -o init.out init9.$O initcode.$O /arm/lib/libc.a
  107         {echo 'uchar initcode[]={'
  108          strip -o /fd/1 init.out | xd -1x |
  109                 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
  110          echo '};'} > init.h
  111 
  112 clock.$O:       /$objtype/include/ureg.h
  113 devether.$O:    /$objtype/include/ureg.h ../port/netif.h
  114 devpcmcia.$O:   /$objtype/include/ureg.h
  115 fpi.$O:         fpi.h
  116 fpiarm.$O:      /$objtype/include/ureg.h fpi.h
  117 fpimem.$O:      fpi.h
  118 main.$O:        /$objtype/include/ureg.h errstr.h init.h
  119 mmu.$O:         /$objtype/include/ureg.h
  120 power.$O:       /$objtype/include/ureg.h
  121 scu.$O:         /$objtype/include/ureg.h
  122 sa1110dma.$O:   /$objtype/include/ureg.h
  123 screen.$O:      gamma.h
  124 sdata.$O:       /$objtype/include/ureg.h
  125 trap$O:         /$objtype/include/ureg.h
  126 wavelan.$O:     /$objtype/include/ureg.h wavelan.c wavelan.h ../pc/wavelan.h
  127 
  128 paqdisk:V:
  129         rm -fr armpaq
  130         mkdir armpaq
  131         cd armpaq
  132         disk/mkfs -d . /sys/lib/sysconfig/proto/armpaqproto
  133         mkpaqfs -o ../paqdisk
  134         cd ..
  135         echo load ramdisk
  136         echo !xms /sys/src/9/bitsy/paqdisk
  137 
  138 bitsy.clean:
  139         rm -rf armpaq $p$CONF s$p$CONF paqdisk $CONF.c boot$CONF.c ../boot/libboot.a5
  140 

Cache object: 14c638d18e7ceede2a6c6687ee22bf3d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.