[bf8c11f] | 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-final-preps-creatingcrossdir">
|
---|
| 9 | <?dbhtml filename="creatingcrossdir.html"?>
|
---|
| 10 |
|
---|
[2484938] | 11 | <title>Creating the ${CLFS}/cross-tools Directory</title>
|
---|
[bf8c11f] | 12 |
|
---|
[8ca6da6] | 13 | <para>The cross-binutils and cross-compiler built in
|
---|
| 14 | <xref linkend="chapter-cross-tools"/> will be installed under
|
---|
[2484938] | 15 | <filename class="directory">${CLFS}/cross-tools</filename> to keep them
|
---|
[d6bbc965] | 16 | separate from the host programs. The programs compiled here are
|
---|
[8ca6da6] | 17 | cross-tools and will not be a part of the final CLFS system or the
|
---|
| 18 | temp-system. By keeping these programs in a separate directory, they
|
---|
| 19 | can easily be discarded later after their use.</para>
|
---|
[bf8c11f] | 20 |
|
---|
| 21 | <para>Create the required directory by running the following as
|
---|
[bdc79fd] | 22 | <systemitem class="username">root</systemitem>:</para>
|
---|
[bf8c11f] | 23 |
|
---|
[2484938] | 24 | <screen><userinput>install -dv ${CLFS}/cross-tools</userinput></screen>
|
---|
[bf8c11f] | 25 |
|
---|
| 26 | <para>The next step is to create a <filename
|
---|
| 27 | class="symlink">/cross-tools</filename> symlink on the host system.
|
---|
[8ca6da6] | 28 | This will point to the newly-created directory on the CLFS partition.
|
---|
[ed3e5d8] | 29 | Run this command as <systemitem class="username">root</systemitem> as well:</para>
|
---|
[bf8c11f] | 30 |
|
---|
[2484938] | 31 | <screen><userinput>ln -sv ${CLFS}/cross-tools /</userinput></screen>
|
---|
[bf8c11f] | 32 |
|
---|
[5cafa13] | 33 | <para>The symlink isn't technically necessary (though the book's
|
---|
| 34 | instructions do assume its existence), but is there mainly for
|
---|
[2484938] | 35 | consistency (because /tools is also symlinked to ${CLFS}/tools) and to
|
---|
[8ca6da6] | 36 | simplify the installation of the cross-compile tools.</para>
|
---|
[bf8c11f] | 37 |
|
---|
| 38 | </sect1>
|
---|