6.1. GCC compilerYou can compile your kernel with your own PA-RISC box. But on old systems, you may prefer to use another - faster - computer to compile your kernel. We will see the two alternatives. Whichever you choose, you need at least gcc-3.0.
6.1.1. native buildSince Debian is the only distribution supporting PA-RISC architecture, if you want to use the Super Cow powers, you need to have some basic knowledge about the Debian packaging system. We will explain here how to quickly get a gcc compiler ready on your PA-RISC box. 6.1.1.1. apt-get and friendsapt-get is a simple command line utility that manages Debian package system. Gustavo Noronha Silva wrote the APT HOWTO that you should read for sharper details. Actually, we just want to build a kernel, so we will tell you the bare minimum needed to do that. First, setup your sources.list in order to fetch the needed archives from the Internet. Here is a sample configuration for /etc/apt/sources.list, using a German Debian mirror :
6.1.1.2. update your gccIf you are using your own PA-RISC box, you only need the good old GCC compiler. We recommend to keep it up-to-date with the latest version uploaded by the developers.
If you do not want to upgrade all your system, according to the package description of kernel-source, you need to get those packages updated :
When this is done, you can proceed to the kernel settings. 6.1.2. cross compiled buildIn this kernel build method, everything depends on the architecture of your building machine. For x86 computers, you can download a ready-to-use cross compiler archive on the PA/Linux FTP server. You can also find some "exotic" (like for MacOS X) cross-compilers archives on the PA/Linux ESIEE Team website. For other architectures or if you want to compile your own toolchain, please refer to Carlos O'Donell's HOWTO.
Linux HOWTO full list |
|
This document, LDP HOWTO-INDEX, is copyrighted (c) 1995 - 2002 by Tim Bynum, Guylhem Aznar, Joshua Drake and Greg Ferguson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at http://www.gnu.org/copyleft/fdl.html. If you have questions, please contact the LDP.
Web Design Copyright © 1999-2003. Chrisranjana Software Solutions Pvt Ltd. syndicate rss feed |