Changeset 94e2400 in clfs-embedded


Ignore:
Timestamp:
Oct 15, 2013, 1:35:34 PM (11 years ago)
Author:
Andrew Bradford <andrew@…>
Branches:
master
Children:
877c72d
Parents:
5f18bea
Message:

Use ${CLFS}/cross-tools/${CLFS_TARGET} as sysroot dir

BUG: This uses ${CLFS_TARGET} before it is exported within materials
chapter for creating the sysroot directory!

Location:
BOOK
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • BOOK/beyond-lib/common/zlib.xml

    r5f18bea r94e2400  
    5353    <para os="e">Install the package:</para>
    5454
    55 <screen os="f"><userinput>make prefix=${CLFS}/cross-tools/sysroot install</userinput></screen>
     55<screen os="f"><userinput>make prefix=${CLFS}/cross-tools/${CLFS_TARGET} install</userinput></screen>
    5656
    5757  </sect2>
  • BOOK/cleanup/copylibs.xml

    r5f18bea r94e2400  
    1515    copied to the target:</para>
    1616
    17 <screen><userinput>cp -v ${CLFS}/cross-tools/sysroot/lib/*.so ${CLFS}/targetfs/lib/</userinput></screen>
     17<screen><userinput>cp -v ${CLFS}/cross-tools/${CLFS_TARGET}/lib/*.so ${CLFS}/targetfs/lib/</userinput></screen>
    1818
    1919  <para>Optionally, strip the libraries to reduce their size:</para>
  • BOOK/cross-tools/arm/gcc-final.xml

    r5f18bea r94e2400  
    6262  --target=${CLFS_TARGET} \
    6363  --host=${CLFS_HOST} \
    64   --with-sysroot=${CLFS}/cross-tools/sysroot \
     64  --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
    6565  --disable-nls \
    6666  --enable-languages=c \
  • BOOK/cross-tools/arm/gcc-static.xml

    r5f18bea r94e2400  
    6161  --host=${CLFS_HOST} \
    6262  --target=${CLFS_TARGET} \
    63   --with-sysroot=${CLFS}/cross-tools/sysroot \
     63  --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
    6464  --disable-nls \
    6565  --disable-shared \
  • BOOK/cross-tools/common/binutils.xml

    r5f18bea r94e2400  
    4747   --prefix=${CLFS}/cross-tools \
    4848   --target=${CLFS_TARGET} \
    49    --with-sysroot=${CLFS}/cross-tools/sysroot \
     49   --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
    5050   --disable-nls \
    5151   --disable-multilib</userinput></screen>
     
    7373
    7474      <varlistentry os="f4">
    75         <term><parameter>--with-sysroot=${CLFS}/cross-tools/sysroot</parameter></term>
     75        <term><parameter>--with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET}</parameter></term>
    7676        <listitem>
    7777          <para>This tells configure that ${CLFS} is going to be the root
  • BOOK/cross-tools/common/gcc-final.xml

    r5f18bea r94e2400  
    6464  --target=${CLFS_TARGET} \
    6565  --host=${CLFS_HOST} \
    66   --with-sysroot=${CLFS}/cross-tools/sysroot \
     66  --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
    6767  --disable-nls \
    6868  --enable-languages=c \
  • BOOK/cross-tools/common/gcc-static.xml

    r5f18bea r94e2400  
    6060  --host=${CLFS_HOST} \
    6161  --target=${CLFS_TARGET} \
    62   --with-sysroot=${CLFS}/cross-tools/sysroot \
     62  --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
    6363  --disable-nls  \
    6464  --disable-shared \
     
    118118
    119119      <varlistentry os="af5">
    120         <term><parameter>--with-sysroot=${CLFS}/cross-tools/sysroot</parameter></term>
    121         <listitem>
    122           <para>This tells configure that ${CLFS}/cross-tools/sysroot is going
     120        <term><parameter>--with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET}</parameter></term>
     121        <listitem>
     122          <para>This tells configure that ${CLFS}/cross-tools/${CLFS_TARGET} is going
    123123          to be the temporary root of our system. It will now use the specified
    124124          sysroot as a prefix of the default search paths.</para>
  • BOOK/cross-tools/common/linux-headers.xml

    r5f18bea r94e2400  
    3232<screen os="c"><userinput>make mrproper
    3333make ARCH=${CLFS_ARCH} headers_check
    34 make ARCH=${CLFS_ARCH} INSTALL_HDR_PATH=${CLFS}/cross-tools/sysroot headers_install</userinput></screen>
     34make ARCH=${CLFS_ARCH} INSTALL_HDR_PATH=${CLFS}/cross-tools/${CLFS_TARGET} headers_install</userinput></screen>
    3535
    3636  </sect2>
     
    4343
    4444      <seglistitem>
    45         <seg>${CLFS}/cross-tools/sysroot/include/{asm,asm-generic,drm,linux,mtd,rdma,scsi,sound,video,xen}/*.h</seg>
     45        <seg>${CLFS}/cross-tools/${CLFS_TARGET}/include/{asm,asm-generic,drm,linux,mtd,rdma,scsi,sound,video,xen}/*.h</seg>
    4646      </seglistitem>
    4747    </segmentedlist>
     
    5353
    5454      <varlistentry id="linux-headers">
    55         <term><filename class="headerfile">${CLFS}/cross-tools/sysroot/include/{asm,asm-generic,drm,linux,mtd,rdma,scsi,sound,video,xen}/*.h</filename></term>
     55        <term><filename class="headerfile">${CLFS}/cross-tools/${CLFS_TARGET}/include/{asm,asm-generic,drm,linux,mtd,rdma,scsi,sound,video,xen}/*.h</filename></term>
    5656        <listitem>
    5757          <para>The Linux API headers</para>
    5858          <indexterm zone="ch-cross-tools-linux-headers linux-headers">
    5959            <primary
    60             sortas="e-${CLFS}/cross-tools/sysroot/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
     60            sortas="e-${CLFS}/cross-tools/${CLFS_TARGET}/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
    6161          </indexterm>
    6262        </listitem>
  • BOOK/cross-tools/mips/gcc-final.xml

    r5f18bea r94e2400  
    6262  --target=${CLFS_TARGET} \
    6363  --host=${CLFS_HOST} \
    64   --with-sysroot=${CLFS}/cross-tools/sysroot \
     64  --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
    6565  --disable-nls \
    6666  --enable-languages=c \
  • BOOK/cross-tools/mips/gcc-static.xml

    r5f18bea r94e2400  
    6161  --host=${CLFS_HOST} \
    6262  --target=${CLFS_TARGET} \
    63   --with-sysroot=${CLFS}/cross-tools/sysroot \
     63  --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
    6464  --disable-nls  \
    6565  --disable-shared \
  • BOOK/cross-tools/x86/gcc-final.xml

    r5f18bea r94e2400  
    6262  --target=${CLFS_TARGET} \
    6363  --host=${CLFS_HOST} \
    64   --with-sysroot=${CLFS}/cross-tools/sysroot \
     64  --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
    6565  --disable-nls \
    6666  --enable-languages=c \
  • BOOK/cross-tools/x86/gcc-static.xml

    r5f18bea r94e2400  
    6161  --host=${CLFS_HOST} \
    6262  --target=${CLFS_TARGET} \
    63   --with-sysroot=${CLFS}/cross-tools/sysroot \
     63  --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
    6464  --disable-nls  \
    6565  --disable-shared \
  • BOOK/materials/common/creatingbuilddir.xml

    r5f18bea r94e2400  
    2929    to itself such that everything installs to the sysroot:</para>
    3030
    31 <screen><userinput>mkdir -p ${CLFS}/cross-tools/sysroot
    32   ln -sfv . ${CLFS}/cross-tools/sysroot/usr</userinput></screen>
     31<screen><userinput>mkdir -p ${CLFS}/cross-tools/${CLFS_TARGET}
     32  ln -sfv . ${CLFS}/cross-tools/${CLFS_TARGET}/usr</userinput></screen>
    3333
    3434  <para>Downloaded packages and patches will need to be stored somewhere
Note: See TracChangeset for help on using the changeset viewer.