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

Last change on this file since 8f2279f was 8f2279f, checked in by Jim Gifford <clfs@…>, 18 years ago

r3908@server (orig r1759): jciccone | 2006-06-09 17:33:27 -0700
Updated the how page for sysroot builds

  • Property mode set to 100644
File size: 3.7 KB
Line 
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
14  Linux distribution (such as Debian, Mandrake, Red Hat, or SuSE). This
15  existing Linux system (the host) will be used as a starting point to
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
22  onto your machine, you may wish to
23  use the Linux From Scratch LiveCD. The CD works well as a host system,
24  providing all the tools you need to successfully follow the instructions
25  in this book. Additionally, it contains all the source packages, patches
26  and a copy of this book. So once you have the CD, no network connection
27  or additional downloads are necessary. For more information about the
28  LFS LiveCD or to download a copy, visit <ulink url="&livecd-root;"/></para>
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
39  work through <xref linkend="chapter-cross-tools"/> and beyond.</para>
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
44  be used to create the final-system.</para>
45
46  <para>The process of building cross-compile tools first involves installing
47  binutils into ${LFS}/cross-tools, so that we have an asembler and a linker
48  for our target architecture. GCC is then compiled statically and installed
49  into ${LFS}/cross-tools, this cross-compiler is used to build glibc for the
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>
52
53  <para>In <xref linkend="chapter-building-system"/>, the full CLFS system is
54  cross-compiled. The system is built using a sysroot. Sysroot is a parameter
55  passed to binutils and gcc that modifies its default search paths.</para>
56
57  <para>To finish the installation, the CLFS-Bootscripts are set up in <xref
58  linkend="chapter-bootscripts"/>, and the kernel and boot loader are set
59  up in <xref linkend="chapter-bootable"/>. <xref
60  linkend="chapter-finalizing"/> contains information on furthering the
61  CLFS experience beyond this book.  After the steps in this book have
62  been implemented, the computer will be ready to reboot into the new
63  CLFS system.</para>
64  <!-- -->
65
66  <para>This is the process in a nutshell. Detailed information on each
67  step is discussed in the following chapters and package descriptions.
68  Items that may seem complicated will be clarified, and everything will
69  fall into place as the reader embarks on the CLFS adventure.</para>
70
71</sect1>
Note: See TracBrowser for help on using the repository browser.