Apple Darwin Manuel d'utilisateur Page 5

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 7
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 4
Building and Installing the Kernel
|
127
First, find your Darwin version with the uname -v command. The output
you’re looking for is the xnu (Darwin kernel) version, shown in italic type:
% uname -v
Darwin Kernel Version 6.0: Sat Jul 27 13:18:52 PDT 2002;
root:xnu/xnu-344.obj~1/RELEASE_PPC
You need to translate that number into an Apple CVS tag, by replacing the
period (
.) with a dash (-) and prefixing the version with Apple-. So, the
Apple CVS tag for the xnu version previously shown would be
Apple-344.
This is the version you must supply with the -r flag. Now that you know the
CVS tag, you can check it out:
cvs -z3 checkout -r APPLE_CVS_TAG modulename
Where APPLE_CVS_TAG is the CVS tag you computed, and modulename is xnu.
For example:
% cvs -z3 checkout -r Apple-344
cvs server: Updating xnu
U xnu/APPLE_LICENSE
U xnu/Makefile
U xnu/PB.project
U xnu/README
.
.
.
The CVS tags are symbolic names associated with a snap-
shot of the source code in time. An easy way to browse the
available tags is through the Darwin CVSWeb archive, avail-
able at http://www.opensource.apple.com/tools/cvs/. You will
need to provide your registered username and password to
access the archive. You can also use CVSWeb to peruse the
archive and view the source code.
Building and Installing the Kernel
Now that you have downloaded the source from CVS, you can change to the
xnu directory and load some environment variables. If you’re using tcsh, you
can use the following commands:
% cd xnu
% source SETUP/setup.csh
If you’re using bash or zsh, you can use these commands:
$ cd xnu
$ . SETUP/setup.sh
,ch07.839 Page 127 Friday, May 6, 2005 1:34 PM
Vue de la page 4
1 2 3 4 5 6 7

Commentaires sur ces manuels

Pas de commentaire