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/pc/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=pc
    2 CONFLIST=pc pccpu pcf pccpuf pcdisk pcauth
    3 CRAPLIST=pccd pcflop
    4 EXTRACOPIES=
    5 #EXTRACOPIES=lookout boundary   # copy to these servers on install
    6 
    7 objtype=386
    8 </$objtype/mkfile
    9 p=9
   10 
   11 # must match mem.h
   12 
   13 APBOOTSTRAP=0xF0003000
   14 KTZERO=0xF0100020
   15 
   16 DEVS=`{rc ../port/mkdevlist $CONF}
   17 
   18 PORT=\
   19         alarm.$O\
   20         alloc.$O\
   21         allocb.$O\
   22         auth.$O\
   23         cache.$O\
   24         chan.$O\
   25         dev.$O\
   26         edf.$O\
   27         fault.$O\
   28         latin1.$O\
   29         page.$O\
   30         parse.$O\
   31         pgrp.$O\
   32         portclock.$O\
   33         print.$O\
   34         proc.$O\
   35         qio.$O\
   36         qlock.$O\
   37         rdb.$O\
   38         rebootcmd.$O\
   39         segment.$O\
   40         swap.$O\
   41         sysfile.$O\
   42         sysproc.$O\
   43         taslock.$O\
   44         tod.$O\
   45         xalloc.$O\
   46 
   47 OBJ=\
   48         l.$O\
   49         plan9l.$O\
   50         cga.$O\
   51         i8253.$O\
   52         i8259.$O\
   53         kbd.$O\
   54         main.$O\
   55         memory.$O\
   56         mmu.$O\
   57         random.$O\
   58         trap.$O\
   59         $CONF.root.$O\
   60         $CONF.rootc.$O\
   61         $DEVS\
   62         $PORT\
   63 
   64 LIB=\
   65         /$objtype/lib/libmemlayer.a\
   66         /$objtype/lib/libmemdraw.a\
   67         /$objtype/lib/libdraw.a\
   68         /$objtype/lib/libip.a\
   69         /$objtype/lib/libc.a\
   70         /$objtype/lib/libsec.a\
   71         /$objtype/lib/libmp.a\
   72 
   73 ETHER=`{echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}
   74 VGA=`{echo devvga.c screen.c vga*.c | sed 's/\.c/.'$O'/g'}
   75 SDEV=`{echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}
   76 
   77 $p$CONF:        $CONF.c $OBJ $LIB
   78         $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
   79         $LD -o $target -T$KTZERO -l $OBJ $CONF.$O $LIB
   80         size $target
   81 
   82 # don't strip the gzipped kernels -- too frustrating when that's all you have!
   83 $p%.gz: $p%
   84         gzip -9 <$p$stem >$p$stem.gz
   85 
   86 
   87 # pcflop and pccd need all the space they can get
   88 9pcflop.gz: 9pcflop
   89         strip -o /fd/1 9pcflop | gzip -9 >9pcflop.gz
   90 
   91 9pccd.gz: 9pccd
   92         strip -o /fd/1 9pccd | gzip -9 >9pccd.gz
   93 
   94 
   95 install:V:      $p$CONF $p$CONF.gz
   96         cp $p$CONF $p$CONF.gz /$objtype/
   97         for(i in $EXTRACOPIES)
   98                 import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/
   99 
  100 <../boot/bootmkfile
  101 <../port/portmkfile
  102 <|../port/mkbootrules $CONF
  103 
  104 $ETHER:                         etherif.h ../port/netif.h
  105 ether8003.$O ether8390.$O:      ether8390.h
  106 $VGA mouse.$O:                  screen.h
  107 devfloppy.$O:                   floppy.h
  108 archmp.$O mp.$O:                apbootstrap.h
  109 apic.$O archmp.$O mp.$O:        mp.h
  110 $SDEV:                          ../port/sd.h
  111 sd53c8xx.$O:                    sd53c8xx.i
  112 sdiahci.$O:                     ahci.h
  113 devaoe.$O sdaoe.$O:             ../port/aoe.h
  114 main.$O:                        init.h reboot.h
  115 wavelan.$O:                     wavelan.c ../pc/wavelan.c ../pc/wavelan.h
  116 etherwavelan.$O:                etherwavelan.c ../pc/wavelan.h
  117 devusb.$O usbuhci.$O usbohci.$O: usb.h
  118 trap.$O:                        /sys/include/tos.h
  119 uartaxp.$O:                     uartaxp.i
  120 etherm10g.$O:                   etherm10g2k.i etherm10g4k.i
  121 
  122 init.h:         ../port/initcode.c init9.c
  123         $CC ../port/initcode.c
  124         $CC init9.c
  125         $LD -l -R1 -o init.out init9.$O initcode.$O /386/lib/libc.a
  126         strip init.out
  127         {echo 'uchar initcode[]={'
  128          cat init.out | xd -1x |
  129                 sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
  130          echo '};'} > init.h
  131 
  132 reboot.h:       rebootcode.s
  133         $AS rebootcode.s
  134         $LD -l -s -T0x11000 -R4 -o reboot.out rebootcode.$O
  135         {echo 'uchar rebootcode[]={'
  136          xd -1x reboot.out |
  137                 sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
  138          echo '};'} > reboot.h
  139 
  140 apbootstrap.h:  apbootstrap.s mem.h
  141         $AS $prereq
  142         $LD -o apbootstrap.out -T$APBOOTSTRAP -R4 -l -s apbootstrap.$O
  143         {echo 'uchar apbootstrap[]={'
  144          xd -1x apbootstrap.out |
  145                 sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
  146          echo '};'} > $target
  147 
  148 sd53c8xx.i:     sd53c8xx.n
  149         aux/na $prereq > $target
  150 
  151 uartaxp.i:      a100p.cp
  152         {echo 'static uchar uartaxpcp[] = {'
  153          xd -1x $prereq |
  154                 sed -e 's/^[0-9a-f]+ //' -e '/^$/d' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
  155          echo '};'
  156         } > $target
  157 
  158 acid:V:
  159         8c -a -w -I. i8253.c>acid
  160 
  161 %.checkether:VQ:
  162         for (i in ether*.c){
  163                 x=`{echo $i | sed 's/\.c//'}
  164                 if(! ~ $x ether8390 && ! grep -s '^     '^$x^'([        ]|$)' $stem)
  165                         echo $x not included in $stem
  166         }
  167         exit 0
  168 
  169 %.checkvga:VQ:
  170         for (i in vga*.c){
  171                 x=`{echo $i | sed 's/\.c//'}
  172                 if(! ~ $x vga vgax vgasavage && ! grep -s '^    '^$x^'([        ]|$)' $stem)
  173                         echo $x not included in $stem
  174         }
  175         exit 0
  176 
  177 checkdist:VQ:
  178         for(i in pcdisk pcflop)
  179         for(j in checkvga checkether)
  180                 mk $i.$j
  181 
  182 %.clean:V:
  183         rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* reboot.h apbootstrap.h init.h
  184 
  185 # testing
  186 9load:D: /usr/rsc/boot/$O.load 9pcload
  187         cat $prereq >$target
  188 
  189 9load.flp: 9load
  190         disk/format -b /386/pbs -df $target $prereq
  191 
  192 $p$CONF.flp: /386/9load plan9.ini $p$CONF.gz
  193         disk/format -b /386/pbs -df $target $prereq
  194 
  195 

Cache object: 06c5c8777121a44eddf94593e3bdfb92


[ 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.