source: clfs-embedded/BOOK/introduction/common/how.xml@ becf300

Last change on this file since becf300 was 9eae0a0, checked in by Andrew Bradford <andrew@…>, 11 years ago

Move mkdir build-dir to materials

There was only 1 page for creating the build dir as it used to be
creating a partition (which isn't needed for embedded) but it fits
better within materials as that's where ${CLFS}/cross-tools/sources gets
created anyway. Let's keep it all together.

  • Property mode set to 100644
File size: 3.9 KB
RevLine 
[a9e389d]1<?xml version="1.0" encoding="ISO-8859-1"?>
[bd48e48]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[a9e389d]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, Fedora, Mandriva, SUSE, or Ubuntu).
15 This 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 use the Linux From Scratch LiveCD.
23 This CD works well as a host system, providing all the tools you need to
24 successfully follow the instructions in this book. It does also
25 contain source packages and patches for the LFS book, and a copy of the LFS
26 book, but not the needed packages or book for CLFS. You can still use the
27 CD for building CLFS, but you will need to download the packages, patches
28 and book separately. You can also look at
29 <ulink url="&hints-root;lfscd-remastering-howto.txt"/>
30 for infomation on building your own CD, replacing the LFS packages and book
31 with those for CLFS. Once you have the CD, no network connection or
32 additional downloads are necessary. For more information about the LFS
33 LiveCD or to download a copy, visit <ulink url="&livecd-root;"/>.</para>
34
[9eae0a0]35 <para><xref linkend="chapter-getting-materials"/> of this book describes how
36 to create a temporary build directory and which packages and patches need to
37 be downloaded to build a CLFS system.
38 <xref linkend="chapter-final-preps"/> discusses the setup for an appropriate
[2116d25]39 working environment. Please read <xref linkend="chapter-final-preps"/>
40 carefully as it explains several important issues the developer should be
41 aware of before beginning to work through <xref
42 linkend="chapter-cross-tools"/> and beyond.</para>
[a9e389d]43
44 <para><xref linkend="chapter-cross-tools"/> explains the installation of
45 cross-compile tools which will be built on the host but be able to compile
46 programs that run on the target machine. These cross-compile tools will
47 be used to create the final-system.</para>
48
49 <para>The process of building cross-compile tools first involves installing
50 binutils into ${CLFS}/cross-tools, so that we have an asembler and a linker
51 for our target architecture. GCC is then compiled statically and installed
52 into ${CLFS}/cross-tools, this cross-compiler is used to build glibc for the
53 final-system. The GCC cross-compiler is then rebuilt dynamically - this final
54 cross-compiler is what will be used to build the final-system.</para>
55
56 <para>In <xref linkend="chapter-building-system"/>, the full CLFS system is
57 cross-compiled. The system is built using a sysroot compiler. Sysroot is a
58 parameter passed to binutils and gcc that modifies its default search paths.
59 </para>
60
61 <para>To finish the installation, the CLFS-Bootscripts are set up in <xref
62 linkend="chapter-bootscripts"/>, and the kernel and boot loader are set
63 up in <xref linkend="chapter-bootable"/>. <xref linkend="chapter-finalizing"/>
64 contains information on furthering the CLFS experience beyond this book.
65 After the steps in this book have been implemented, the computer will be
66 ready to reboot into the new CLFS system.</para>
67
68 <para>This is the process in a nutshell. Detailed information on each
69 step is discussed in the following chapters and package descriptions.
70 Items that may seem complicated will be clarified, and everything will
71 fall into place as the reader embarks on the CLFS adventure.</para>
72
73</sect1>
Note: See TracBrowser for help on using the repository browser.