2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2006-01-22 12:20:02 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-01-22 12:20:02 +00:00
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<sect1 id="ch-tools-introduction">
|
2006-01-22 12:20:02 +00:00
|
|
|
<?dbhtml filename="introduction.html"?>
|
|
|
|
|
|
|
|
<title>Introduction</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-01-22 12:20:02 +00:00
|
|
|
<para>This chapter shows how to compile and install a minimal Linux system.
|
|
|
|
This system will contain just enough tools to start constructing the final
|
|
|
|
LFS system in <xref linkend="chapter-building-system"/> and allow a working
|
|
|
|
environment with more user convenience than a minimum environment would.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-22 12:20:02 +00:00
|
|
|
<para>There are two steps in building this minimal system. The first step
|
|
|
|
is to build a new and host-independent toolchain (compiler, assembler,
|
|
|
|
linker, libraries, and a few useful utilities). The second step uses this
|
|
|
|
toolchain to build the other essential tools.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-22 12:20:02 +00:00
|
|
|
<para>The files compiled in this chapter will be installed under the
|
|
|
|
<filename class="directory">$LFS/tools</filename> directory to keep them
|
|
|
|
separate from the files installed in the next chapter and the host
|
|
|
|
production directories. Since the packages compiled here are temporary,
|
|
|
|
we do not want them to pollute the soon-to-be LFS system.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-22 12:20:02 +00:00
|
|
|
<important>
|
|
|
|
<para>Before issuing the build instructions for a package, the package
|
|
|
|
should be unpacked as user <systemitem class="username">lfs</systemitem>,
|
|
|
|
and a <command>cd</command> into the created directory should be performed.
|
|
|
|
The build instructions assume that the <command>bash</command> shell is
|
|
|
|
in use.</para>
|
|
|
|
</important>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-22 12:20:02 +00:00
|
|
|
<para>Several of the packages are patched before compilation, but only when
|
|
|
|
the patch is needed to circumvent a problem. A patch is often needed in both
|
|
|
|
this and the next chapter, but sometimes in only one or the other. Therefore,
|
|
|
|
do not be concerned if instructions for a downloaded patch seem to be missing.
|
|
|
|
Warning messages about <emphasis>offset</emphasis> or <emphasis>fuzz</emphasis>
|
|
|
|
may also be encountered when applying a patch. Do not worry about these
|
|
|
|
warnings, as the patch was still successfully applied.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-22 12:20:02 +00:00
|
|
|
<para>During the compilation of most packages, there will be several warnings
|
|
|
|
that scroll by on the screen. These are normal and can safely be ignored.
|
|
|
|
These warnings are as they appear—warnings about deprecated, but not
|
|
|
|
invalid, use of the C or C++ syntax. C standards change fairly often, and
|
|
|
|
some packages still use the older standard. This is not a problem, but does
|
|
|
|
prompt the warning.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-22 12:20:02 +00:00
|
|
|
<important>
|
|
|
|
<para>After installing each package, delete its source and build directories,
|
|
|
|
unless specifically instructed otherwise. Deleting the sources prevents
|
2006-01-30 06:51:33 +00:00
|
|
|
mis-configuration when the same package is reinstalled later.</para>
|
2006-01-22 12:20:02 +00:00
|
|
|
</important>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-22 12:20:02 +00:00
|
|
|
<para>Check one last time that the <envar>LFS</envar> environment
|
|
|
|
variable is set up properly:</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2005-10-29 17:56:38 +01:00
|
|
|
<screen role="nodump"><userinput>echo $LFS</userinput></screen>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-22 12:20:02 +00:00
|
|
|
<para>Make sure the output shows the path to the LFS partition's mount
|
|
|
|
point, which is <filename class="directory">/mnt/lfs</filename>, using
|
|
|
|
our example.</para>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect1>
|