source: clfs-sysroot/BOOK/introduction/common/how.xml@ cc09e9f

Last change on this file since cc09e9f was cc09e9f, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Some text updates.

  • Property mode set to 100644
File size: 3.7 KB
RevLine 
[02095ae]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-intro-how">
9 <?dbhtml filename="how.html"?>
10
11 <title>How to Build a CLFS System</title>
12
13 <para>The CLFS system will be built by using a previously installed
[cc09e9f]14 Linux distribution (such as Debian, Mandrake, Red Hat, or SuSE, or Ubuntu).
15 This existing Linux system (the host) will be used as a starting point to
[02095ae]16 provide necessary programs, including a compiler, linker, and shell,
17 to build the new system. Select the <quote>development</quote> option
18 during the distribution installation to be able to access these
19 tools.</para>
20
21 <para>As an alternative to installing an entire separate distribution
[cc09e9f]22 onto your machine, you may wish to use the Linux From Scratch LiveCD.
23 The CD works well as a host system, providing all the tools you need to
24 successfully follow the instructions in this book. Additionally, it
25 contains all the source packages, patches and a copy of this book. So
26 once you have the CD, no network connection or additional downloads are
27 necessary. For more information about the LFS LiveCD or to download a copy,
28 visit <ulink url="&livecd-root;"/></para>
[02095ae]29
30 <para><xref linkend="chapter-partitioning"/> of this book describes how
31 to create a new Linux native partition and file system, the place
32 where the new CLFS system will be compiled and installed. <xref
33 linkend="chapter-getting-materials"/> explains which packages and
34 patches need to be downloaded to build a CLFS system and how to store
35 them on the new file system. <xref linkend="chapter-final-preps"/>
36 discusses the setup for an appropriate working environment. Please read
37 <xref linkend="chapter-final-preps"/> carefully as it explains several
38 important issues the developer should be aware of before beginning to
[8f2279f]39 work through <xref linkend="chapter-cross-tools"/> and beyond.</para>
[02095ae]40
41 <para><xref linkend="chapter-cross-tools"/> explains the installation of
42 cross-compile tools which will be built on the host but be able to compile
43 programs that run on the target machine. These cross-compile tools will
[8f2279f]44 be used to create the final-system.</para>
[02095ae]45
46 <para>The process of building cross-compile tools first involves installing
[586feb7]47 binutils into ${CLFS}/cross-tools, so that we have an asembler and a linker
[8f2279f]48 for our target architecture. GCC is then compiled statically and installed
[586feb7]49 into ${CLFS}/cross-tools, this cross-compiler is used to build glibc for the
[8f2279f]50 final-system. The GCC cross-compiler is then rebuilt dynamically - this final
51 cross-compiler is what will be used to build the final-system.</para>
[02095ae]52
53 <para>In <xref linkend="chapter-building-system"/>, the full CLFS system is
[cc09e9f]54 cross-compiled. The system is built using a sysroot compiler. Sysroot is a
55 parameter passed to binutils and gcc that modifies its default search paths.
56 </para>
[02095ae]57
58 <para>To finish the installation, the CLFS-Bootscripts are set up in <xref
59 linkend="chapter-bootscripts"/>, and the kernel and boot loader are set
[cc09e9f]60 up in <xref linkend="chapter-bootable"/>. <xref linkend="chapter-finalizing"/>
61 contains information on furthering the CLFS experience beyond this book.
62 After the steps in this book have been implemented, the computer will be
63 ready to reboot into the new CLFS system.</para>
[02095ae]64
65 <para>This is the process in a nutshell. Detailed information on each
66 step is discussed in the following chapters and package descriptions.
67 Items that may seem complicated will be clarified, and everything will
68 fall into place as the reader embarks on the CLFS adventure.</para>
69
70</sect1>
Note: See TracBrowser for help on using the repository browser.