Ignore:
Timestamp:
06/16/2020 11:56:28 AM (4 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
9a05e45
Parents:
560065f (diff), 1cd5961 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Split Chapter 5 into three separate chapters.
Implement a new method of cross-building the LFS tool chain
and other tools to simplify the method of isolating the
new system from the original host. This will be the start of
LFS-10.0.

Move old trunk/BOOK to branches/old-trunk.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11946 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/binutils-pass1.xml

    r560065f r675606b  
    2626
    2727    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    28     href="../chapter06/binutils.xml"
     28    href="../chapter08/binutils.xml"
    2929    xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
    3030
     
    3434
    3535      <seglistitem>
    36         <seg>&binutils-ch5p1-sbu;</seg>
    37         <seg>&binutils-ch5p1-du;</seg>
     36        <seg>&binutils-tmpp1-sbu;</seg>
     37        <seg>&binutils-tmpp1-du;</seg>
    3838      </seglistitem>
    3939    </segmentedlist>
     
    6464      the configuration, up to and including the first install. To achieve
    6565      this easily, wrap the commands in a <command>time</command>
    66       command like this: <userinput>time { ./configure ... &amp;&amp; ...
     66      command like this: <userinput>time { ./configure ... &amp;&amp; make
    6767      &amp;&amp; make install; }</userinput>.</para>
    6868    </note>
    6969
    70     <note><para>The approximate build SBU values and required disk space
    71     in Chapter&nbsp;5 does not include test suite data.</para></note>
    72 
    7370    <para>Now prepare Binutils for compilation:</para>
    7471
    75 <screen><userinput remap="configure">../configure --prefix=/tools            \
     72<screen><userinput remap="configure">../configure --prefix=$LFS/tools       \
    7673             --with-sysroot=$LFS        \
    77              --with-lib-path=/tools/lib \
    7874             --target=$LFS_TGT          \
    7975             --disable-nls              \
     
    8480
    8581      <varlistentry>
    86         <term><parameter>--prefix=/tools</parameter></term>
     82        <term><parameter>--prefix=$LFS/tools</parameter></term>
    8783        <listitem>
    8884          <para>This tells the configure script to prepare to install the
    89           Binutils programs in the <filename class="directory">/tools</filename>
    90           directory.</para>
     85          binutils programs in the <filename
     86          class="directory">$LFS/tools</filename> directory.</para>
    9187        </listitem>
    9288      </varlistentry>
     
    10197
    10298      <varlistentry>
    103         <term><parameter>--with-lib-path=/tools/lib</parameter></term>
    104         <listitem>
    105           <para>This specifies which library path the linker should be
    106           configured to use.</para>
    107         </listitem>
    108       </varlistentry>
    109 
    110       <varlistentry>
    11199        <term><envar>--target=$LFS_TGT</envar></term>
    112100        <listitem>
     
    114102          variable is slightly different than the value returned by the
    115103          <command>config.guess</command> script, this switch will tell the
    116           <command>configure</command> script to adjust Binutil's build system
     104          <command>configure</command> script to adjust binutil's build system
    117105          for building a cross linker.  </para>
    118106        </listitem>
     
    141129<screen><userinput remap="make">make</userinput></screen>
    142130
    143     <para>Compilation is now complete. Ordinarily we would now run the
    144     test suite, but at this early stage the test suite framework (Tcl,
    145     Expect, and DejaGNU) is not yet in place. The benefits of running the
    146     tests at this point are minimal since the programs from this
    147     first pass will soon be replaced by those from the second.</para>
    148 
    149     <para>If building on x86_64, create a symlink to ensure the sanity of
    150     the toolchain:</para>
    151 
    152 <screen><userinput remap="install">case $(uname -m) in
    153   x86_64) mkdir -v /tools/lib &amp;&amp; ln -sv lib /tools/lib64 ;;
    154 esac</userinput></screen>
    155 
    156131    <para>Install the package:</para>
    157132
Note: See TracChangeset for help on using the changeset viewer.