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 ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/

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 

Name Size Last modified (GMT) Description
Folder EXTERNAL_HEADERS/ 2009-01-21 22:29:41
Folder SETUP/ 2009-01-21 22:29:41
Folder bsd/ 2009-01-21 22:29:33
Folder config/ 2009-01-21 22:29:32
Folder iokit/ 2009-01-21 22:29:31
Folder libkern/ 2009-01-21 22:29:30
Folder libsa/ 2009-01-21 22:29:30
Folder makedefs/ 2009-01-21 22:29:29
Folder osfmk/ 2009-01-21 22:29:23
Folder pexpert/ 2009-01-21 22:29:23
File APPLE_LICENSE 19930 bytes 2005-04-28 00:35:31
File Makefile 1154 bytes 2005-04-28 00:35:31
File README 2633 bytes 2005-04-28 00:35:31
File kgmacros 56949 bytes 2005-04-28 00:35:31

    1 How to build XNU:
    2 
    3 1) Type: "make"
    4 
    5   This builds all the components for all architectures defined in 
    6   ARCH_CONFIGS and for all kernel configurations defined in KERNEL_CONFIGS.
    7   By default, ARCH_CONFIGS contains one architecture, the build machine 
    8   architecture, and KERNEL_CONFIGS is set to build for RELEASE.
    9   This will also create a bootable image, mach_kernel,  and a kernel binary 
   10   with symbols, mach_kernel.sys.
   11 
   12   Example:
   13     $(OBJROOT)/RELEASE_PPC/osfmk/RELEASE/osfmk.o: pre-linked object for osfmk component
   14     $(OBJROOT)/RELEASE_PPC/mach_kernel: bootable image
   15 
   16 2) Building a Component
   17 
   18   Go to the top directory in your XNU project.
   19 
   20   If you are using a sh-style shell, run the following command:
   21      $ . SETUP/setup.sh
   22 
   23   If you are using a csh-style shell, run the following command:
   24      % source SETUP/setup.csh
   25 
   26   This will define the following environmental variables:
   27     SRCROOT, OBJROOT, DSTROOT, SYMROOT
   28 
   29   From a component top directory:
   30 
   31     $ make all
   32 
   33   This builds a component for all architectures defined in ARCH_CONFIGS 
   34   and for all kernel configurations defined in KERNEL_CONFIGS. 
   35   By default, ARCH_CONFIGS contains one architecture, the build machine 
   36   architecture, and KERNEL_CONFIGS is set to build for RELEASE .
   37 
   38   Example:
   39     $(OBJROOT)/RELEASE_PPC/osfmk/RELEASE/osfmk.o: pre-linked object for osfmk component
   40 
   41   From the component top directory:
   42 
   43     $ make mach_kernel
   44 
   45   This includes your component in the bootable image, mach_kernel,  and 
   46   in the kernel binary with symbols, mach_kernel.sys.
   47 
   48   WARNING: If a component header file has been modified, you will have to do 
   49            the above procedure 1.
   50 
   51 3) Building DEBUG
   52 
   53   Define KERNEL_CONFIGS to DEBUG in your environment or when running a 
   54   make command.  Then, apply procedures 4, 5
   55 
   56   $ make KERNEL_CONFIGS=DEBUG all
   57 
   58   or
   59 
   60   $ export KERNEL_CONFIGS=DEBUG
   61   $ make all
   62 
   63   Example:
   64     $(OBJROOT)/DEBUG_PPC/osfmk/DEBUG/osfmk.o: pre-linked object for osfmk component
   65     $(OBJROOT)/DEBUG_PPC/mach_kernel: bootable image
   66 
   67 4) Building fat
   68 
   69   Define ARCH_CONFIGS in your environment or when running a make command.
   70   Apply procedures 3, 4, 5
   71 
   72   $ make ARCH_CONFIGS="PPC I386" exporthdrs all
   73 
   74   or
   75 
   76   $ export ARCH_CONFIGS="PPC I386"
   77   $ make exporthdrs all
   78 
   79 5) Build check before integration
   80 
   81   From the top directory, run:
   82 
   83     $ ~rc/bin/buildit . -arch ppc -arch i386 -noinstallsrc -nosum
   84 
   85 6) Creating tags and cscope
   86 
   87   Set up your build environment as per instructions in 2a
   88 
   89   From the top directory, run:
   90 
   91     $ make tags         # this will build ctags and etags
   92 
   93     $ make cscope       # this will build cscope database
   94 

[ source navigation ] [ 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.