Apple Darwin Bedienungsanleitung Seite 6

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 7
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 5
128
|
Chapter 7: Building the Darwin Kernel
To build the kernel, use this command (the output is not shown):
% make
When make is finished, you should see mach_kernel in the xnu/BUILD/obj/
RELEASE_PPC directory. Before you install the new kernel, back up your
old kernel as follows:
% sudo cp /mach_kernel /mach_kernel.backup
Next, copy the new kernel over the older version:
% sudo cp BUILD/obj/RELEASE_PPC/mach_kernel /
Cross your fingers, knock on wood, and reboot. If all goes well, you should
see the build time, hostname, and your username (since you’re the person
who compiled the kernel) when you run uname -v:
Darwin Kernel Version 6.0: Thu Aug 22 15:52:19 EDT 2002;
bjepson:BUILD/obj/RELEASE_PPC
Once you’ve made it that far, you can start modifying the code or experi-
menting with unofficial patches!
Kernel Configuration
Darwin includes configuration directories for each major component of the
operating system, as listed here:
xnu/bsd/conf
Contains configuration files for the BSD portions of Darwin.
xnu/iokit/conf
Contains configuration files for IOKit, Darwin’s subsystem for device
drivers.
xnu/libkern/conf
Contains configuration files for libkern, a set of base classes for kernel
C++ code.
xnu/libsa/conf
Contains configuration files for implementations of standard C library
functions that are used by the kernel.
xnu/osfmk/conf
Contains configuration files for the Mach portions of Darwin.
xnu/pexpert/conf
Contains configuration files for pexpert (platform expert). This is for
low-level hardware support during the boot sequence.
,ch07.839 Page 128 Friday, May 6, 2005 1:34 PM
Seitenansicht 5
1 2 3 4 5 6 7

Kommentare zu diesen Handbüchern

Keine Kommentare