source: chapter01/how.xml@ 4d7ccf4

xry111/clfs-ng
Last change on this file since 4d7ccf4 was 9e76c64, checked in by Xi Ruoyao <xry111@…>, 5 months ago

Merge remote-tracking branch 'origin/trunk' into xry111/clfs-ng

  • Property mode set to 100644
File size: 3.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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 Cross Build an LFS System</title>
12
13 <para>The LFS system will be built by using an already installed
14 UNIX-like system (such as Debian Linux or Mac OS X). This
15 existing UNIX-like 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 include these
19 tools.</para>
20
21 <note><para>There are many ways to install a Linux distribution and
22 the defaults are usually not optimal for building an LFS system.
23 For suggestions on setting up a commercial distribution see:
24 <ulink url="&lfs-root;hints/downloads/files/partitioning-for-lfs.txt"/>.</para></note>
25
26 <para>As an alternative to installing a separate distribution on your
27 machine, you may wish to use a LiveCD from a commercial distribution.</para>
28
29 <!--
30 <note>
31 <para>The LFS LiveCD might not work on newer hardware configurations,
32 failing to boot or failing to detect some devices such as some SATA hard
33 drives.</para>
34 </note> -->
35
36 <para><xref linkend="chapter-partitioning"/> of this book describes how
37 to create a new Linux native partition and file system,
38 where the new LFS system will be compiled and installed. <xref
39 linkend="chapter-getting-materials"/> explains which packages and
40 patches must be downloaded to build an LFS system, and how to store
41 them on the new file system. <xref linkend="chapter-final-preps"/>
42 discusses the setup of an appropriate working environment. Please read
43 <xref linkend="chapter-final-preps"/> carefully as it explains several
44 important issues you should be aware of before you begin to
45 work your way through <xref linkend="chapter-cross-tools"/> and beyond.</para>
46
47 <para><xref linkend="chapter-cross-tools"/> explains the installation of
48 the initial tool chain, (binutils, gcc, and glibc) using cross-compilation
49 techniques to isolate the new tools from the host system.</para>
50
51 <para><xref linkend="chapter-temporary-tools"/> shows you how to
52 cross-compile basic utilities using the just built cross-toolchain.</para>
53
54 <para><xref linkend="chapter-chroot-temporary-tools"/> then boots the
55 minimal Linux environment on the target machine,
56 where we use the new tools to build all
57 the rest of the tools needed to create the LFS system.
58 Note that in the book the minimal Linux environment may be
59 referred as <quote>chroot environment</quote> only to keep the consistency
60 with the original LFS book.</para>
61
62 <para>This effort to isolate the new system from the host distribution may
63 seem excessive. A full technical explanation as to why this is done is
64 provided in <xref linkend="ch-tools-toolchaintechnotes"/>.</para>
65
66 <para>In <xref linkend="chapter-building-system"/> the
67 full LFS system is built.</para>
68
69 <para>To finish the installation, the basic system configuration is set up in
70 <xref linkend="chapter-config"/>, and the kernel and boot loader are created
71 in <xref linkend="chapter-bootable"/>. <xref linkend="chapter-finalizing"/>
72 contains information on continuing the LFS experience beyond this book.
73 After the steps in this chapter have been implemented, the computer is
74 ready to boot into the new LFS system.</para>
75
76 <para>This is the process in a nutshell. Detailed information on each
77 step is presented in the following chapters.
78 Items that seem complicated now will be clarified, and everything will
79 fall into place as you commence your LFS adventure.</para>
80
81</sect1>
Note: See TracBrowser for help on using the repository browser.