Apple Darwin Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Server Apple Darwin herunter. Building the Darwin Kernel - How to Example Code Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 7
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
123
Chapter 7
CHAPTER 7
Building the Darwin Kernel
The Darwin kernel, on which Mac OS X is based, is available in a publicly
accessible CVS archive. This is not a watered-down version: you can rebuild
a kernel that matches your current Mac OS X kernel in every respect. The
only noticeable difference will be when you type uname -v:
Darwin Kernel Version 6.0: Sat Jul 27 13:18:52 PDT 2002;
root:xnu/xnu-344.obj~1/RELEASE_PPC
Just because you can build your kernel, does that mean you should? For
most users, the answer is no, for the following reasons:
For many users, configuring a Unix kernel involves little more than
choosing and configuring device drivers. On Darwin, most devices are
not in the kernel; they have their own top-level directory in the CVS
archive. So, you do not need to configure Darwin to set up additional
hardware support.
Apple hardware is predictable. Most of you will be building Darwin for
a G3 or G4 machine, and the range of possible chipsets is limited.
However, if you want to try installing an unofficial kernel patch, or if you
want to try your hand at optimizing the kernel, then this chapter’s for you.
Darwin Development Tools
The Darwin kernel requires a collection of development tools that are not
part of the Mac OS X Developer Tools package. To get these tools, visit the
Darwin project at http://developer.apple.com/darwin/ and follow the links for
the Darwin Development Environment for Mac OS X. Those links lead to a
package called darwintools.pkg, which you should install. This package
installs a number of header files, libraries, and tools into /usr/local. The tools
,ch07.839 Page 123 Friday, May 6, 2005 1:34 PM
Seitenansicht 0
1 2 3 4 5 6 7

Inhaltsverzeichnis

Seite 1 - Building the Darwin Kernel

123Chapter 7CHAPTER 7Building the Darwin KernelThe Darwin kernel, on which Mac OS X is based, is available in a publiclyaccessible CVS archive. This i

Seite 2 - A Safety Net

124|Chapter 7: Building the Darwin Kernelare described in Table 7-1. The source code for these utilities and librariescan be found in the cctools, mki

Seite 3 - Getting the Source Code

Getting the Source Code|125Getting the Source CodeTo get the Darwin source code, you’ll need to register with the Apple OpenSource web site and check

Seite 4 - Getting the Right Version

126|Chapter 7: Building the Darwin KernelUpdating sourcesTo bring a module into sync with the latest changes to the repository, usethe update command:

Seite 5 - Apple-344

Building and Installing the Kernel|127First, find your Darwin version with the uname -v command. The outputyou’re looking for is the xnu (Darwin kerne

Seite 6 - Kernel Configuration

128|Chapter 7: Building the Darwin KernelTo build the kernel, use this command (the output is not shown):% makeWhen make is finished, you should see m

Seite 7 - Kernel Configuration

Kernel Configuration|129libsa and pexpert are private to the xnu kernel and should not be used bykernel extensions.To tweak machine-independent aspect

Kommentare zu diesen Handbüchern

Keine Kommentare