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.
13 $(OBJROOT)/RELEASE_PPC/osfmk/RELEASE/osfmk.o: pre-linked object for osfmk component
14 $(OBJROOT)/RELEASE_PPC/mach_kernel: bootable image
16 2) Building a Component
18 Go to the top directory in your XNU project.
20 If you are using a sh-style shell, run the following command:
23 If you are using a csh-style shell, run the following command:
24 % source SETUP/setup.csh
26 This will define the following environmental variables:
27 SRCROOT, OBJROOT, DSTROOT, SYMROOT
29 From a component top directory:
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 .
39 $(OBJROOT)/RELEASE_PPC/osfmk/RELEASE/osfmk.o: pre-linked object for osfmk component
41 From the component top directory:
45 This includes your component in the bootable image, mach_kernel, and
46 in the kernel binary with symbols, mach_kernel.sys.
48 WARNING: If a component header file has been modified, you will have to do
49 the above procedure 1.
53 Define KERNEL_CONFIGS to DEBUG in your environment or when running a
54 make command. Then, apply procedures 4, 5
56 $ make KERNEL_CONFIGS=DEBUG all
60 $ export KERNEL_CONFIGS=DEBUG
64 $(OBJROOT)/DEBUG_PPC/osfmk/DEBUG/osfmk.o: pre-linked object for osfmk component
65 $(OBJROOT)/DEBUG_PPC/mach_kernel: bootable image
69 Define ARCH_CONFIGS in your environment or when running a make command.
70 Apply procedures 3, 4, 5
72 $ make ARCH_CONFIGS="PPC I386" exporthdrs all
76 $ export ARCH_CONFIGS="PPC I386"
79 5) Build check before integration
81 From the top directory, run:
83 $ ~rc/bin/buildit . -arch ppc -arch i386 -noinstallsrc -nosum
85 6) Creating tags and cscope
87 Set up your build environment as per instructions in 2a
89 From the top directory, run:
91 $ make tags # this will build ctags and etags
93 $ make cscope # this will build cscope database