Changeset 586feb7 in clfs-sysroot for BOOK/cross-tools


Ignore:
Timestamp:
Jul 2, 2006, 12:45:15 PM (18 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
940e6b3
Parents:
89c10a9
Message:

Updated the bootscripts package and make LFS to CLFS updates.

Location:
BOOK/cross-tools
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/arm/glibc-headers.xml

    r89c10a9 r586feb7  
    6868
    6969<screen os="i"><userinput>CC=gcc ../glibc-&glibc-version;/configure --prefix=/usr \
    70    --host=${LFS_TARGET} --build=${LFS_HOST} \
    71    --with-headers=${LFS}/usr/include --cache-file=config.cache</userinput></screen>
     70   --host=${CLFS_TARGET} --build=${CLFS_HOST} \
     71   --with-headers=${CLFS}/usr/include --cache-file=config.cache</userinput></screen>
    7272
    7373    <variablelist os="dj">
     
    8282       
    8383       <varlistentry os="dj2">
    84            <term><parameter>--with-headers=${LFS}/usr/include</parameter></term>
     84           <term><parameter>--with-headers=${CLFS}/usr/include</parameter></term>
    8585           <listitem>
    8686              <para>This tells Glibc to compile itself against the headers
    87               recently installed to the <filename class="directory">${LFS}/usr/include</filename>
     87              recently installed to the <filename class="directory">${CLFS}/usr/include</filename>
    8888              directory, so that it knows exactly what features the kernel has
    8989              and can optimize itself accordingly.</para>
     
    101101
    102102   <para os="n">First we will copy a common file over to <filename
    103    class="directory">${LFS}/usr/include</filename>:</para>
     103   class="directory">${CLFS}/usr/include</filename>:</para>
    104104
    105 <screen os="o"><userinput>install -dv ${LFS}/usr/include/bits
    106 cp -v bits/stdio_lim.h ${LFS}/usr/include/bits</userinput></screen>
     105<screen os="o"><userinput>install -dv ${CLFS}/usr/include/bits
     106cp -v bits/stdio_lim.h ${CLFS}/usr/include/bits</userinput></screen>
    107107
    108108   <para os="p">Now we will create a blank stub file:</para>
    109109
    110 <screen os="q"><userinput>touch ${LFS}/usr/include/gnu/stubs.h</userinput></screen>
     110<screen os="q"><userinput>touch ${CLFS}/usr/include/gnu/stubs.h</userinput></screen>
    111111
    112112   <para os="r">For NPTL we use the following command:</para>
    113113   
    114114<screen os="s"><userinput>cp -v ../glibc-&glibc-version;/ports/sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h \
    115     ${LFS}/usr/include/bits</userinput></screen>
     115    ${CLFS}/usr/include/bits</userinput></screen>
    116116
    117117  </sect2>
  • BOOK/cross-tools/arm/linux-headers.xml

    r89c10a9 r586feb7  
    3737    <para os="b">Install the header files that are common to all architectures:</para>
    3838
    39 <screen os="c"><userinput>install -dv ${LFS}/usr/include/{asm,asm-generic,linux,net,mtd,scsi,sound}
    40 cp -av include/asm-generic/* ${LFS}/usr/include/asm-generic
    41 cp -av include/linux/* ${LFS}/usr/include/linux
    42 cp -av include/mtd/* ${LFS}/usr/include/mtd
    43 cp -av include/net/* ${LFS}/usr/include/net
    44 cp -av include/scsi/* ${LFS}/usr/include/scsi
    45 cp -av include/sound/* ${LFS}/usr/include/sound</userinput></screen>
     39<screen os="c"><userinput>install -dv ${CLFS}/usr/include/{asm,asm-generic,linux,net,mtd,scsi,sound}
     40cp -av include/asm-generic/* ${CLFS}/usr/include/asm-generic
     41cp -av include/linux/* ${CLFS}/usr/include/linux
     42cp -av include/mtd/* ${CLFS}/usr/include/mtd
     43cp -av include/net/* ${CLFS}/usr/include/net
     44cp -av include/scsi/* ${CLFS}/usr/include/scsi
     45cp -av include/sound/* ${CLFS}/usr/include/sound</userinput></screen>
    4646
    4747    <para os="d">Install the header files that are specific to this architecture:</para>
    4848
    49 <screen><userinput>cp -av include/asm-arm/* ${LFS}/usr/include/asm</userinput></screen>
     49<screen><userinput>cp -av include/asm-arm/* ${CLFS}/usr/include/asm</userinput></screen>
    5050
    5151    <para os="e">Make sure the users can read the headers:</para>
    5252
    53 <screen os="f"><userinput>find ${LFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type d -exec chmod -v 755 {} \;
    54 find ${LFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \;</userinput></screen>
     53<screen os="f"><userinput>find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type d -exec chmod -v 755 {} \;
     54find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \;</userinput></screen>
    5555
    5656  </sect2>
  • BOOK/cross-tools/arm/variables.xml

    r89c10a9 r586feb7  
    3535  case you have to exit and restart building later:</para>
    3636
    37 <screen os="f"><userinput>echo export LFS_HOST=\""${LFS_HOST}\"" &gt;&gt; ~/.bashrc
    38 echo export LFS_TARGET=\""${LFS_TARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
     37<screen os="f"><userinput>echo export LFS_HOST=\""${CLFS_HOST}\"" &gt;&gt; ~/.bashrc
     38echo export LFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    3939
    4040</sect1>
  • BOOK/cross-tools/common/binutils.xml

    r89c10a9 r586feb7  
    4848    xpointer="xpointer(//*[@os='c'])"/>
    4949
    50 <screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=${LFS}/cross-tools \
    51    --host=${LFS_HOST} --target=${LFS_TARGET} --with-sysroot=${LFS} \
     50<screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=${CLFS}/cross-tools \
     51   --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} \
    5252   --disable-nls --enable-shared --disable-multilib</userinput></screen>
    5353
     
    5656
    5757      <varlistentry os="bd1">
    58         <term><parameter>--prefix=${LFS}/cross-tools</parameter></term>
     58        <term><parameter>--prefix=${CLFS}/cross-tools</parameter></term>
    5959        <listitem>
    6060          <para>This tells the configure script to prepare to install the
    61           package in the <filename class="directory">${LFS}/cross-tools</filename>
     61          package in the <filename class="directory">${CLFS}/cross-tools</filename>
    6262          directory.</para>
    6363        </listitem>
     
    6565
    6666      <varlistentry os="bd2">
    67         <term><parameter>--host=${LFS_HOST}</parameter></term>
     67        <term><parameter>--host=${CLFS_HOST}</parameter></term>
    6868        <listitem>
    6969          <para>When used with --target, this creates a cross-architecture
    70           executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para>
     70          executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).</para>
    7171        </listitem>
    7272      </varlistentry>
    7373
    7474      <varlistentry os="bd3">
    75         <term><parameter>--target=${LFS_TARGET}</parameter></term>
     75        <term><parameter>--target=${CLFS_TARGET}</parameter></term>
    7676        <listitem>
    7777          <para>When used with --host, this creates a cross-architecture
    78           executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para>
     78          executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).</para>
    7979        </listitem>
    8080      </varlistentry>
    8181
    8282      <varlistentry os="bd4">
    83         <term><parameter>--with-sysroot=${LFS}</parameter></term>
     83        <term><parameter>--with-sysroot=${CLFS}</parameter></term>
    8484        <listitem>
    85           <para>This tells configure that ${LFS} is going to be the root
    86           of our system. It will now use the specified sysroot, ${LFS} as
     85          <para>This tells configure that ${CLFS} is going to be the root
     86          of our system. It will now use the specified sysroot, ${CLFS} as
    8787          a prefix of the default search paths.</para>
    8888        </listitem>
     
    137137
    138138    <para os="bj">Copy the <filename class="headerfile">libiberty.h</filename> file to
    139     <filename class="directory">${LFS}/usr/include</filename> directory:</para>
     139    <filename class="directory">${CLFS}/usr/include</filename> directory:</para>
    140140
    141 <screen os="bk"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${LFS}/usr/include</userinput></screen>
     141<screen os="bk"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${CLFS}/usr/include</userinput></screen>
    142142
    143143  </sect2>
  • BOOK/cross-tools/common/file.xml

    r89c10a9 r586feb7  
    1919    <para>Prepare File for compilation:</para>
    2020
    21 <screen><userinput>./configure --prefix=${LFS}/cross-tools</userinput></screen>
     21<screen><userinput>./configure --prefix=${CLFS}/cross-tools</userinput></screen>
    2222
    2323    <para>Compile the Package:</para>
  • BOOK/cross-tools/common/gcc-final.xml

    r89c10a9 r586feb7  
    5959    xpointer="xpointer(//*[@os='e'])"/>
    6060
    61 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${LFS}/cross-tools \
    62     --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \
    63     --with-sysroot=${LFS} --disable-nls --enable-shared \
     61<screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
     62    --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \
     63    --with-sysroot=${CLFS} --disable-nls --enable-shared \
    6464    --enable-languages=c,c++ --enable-__cxa_atexit \
    6565    --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen>
  • BOOK/cross-tools/common/gcc-static.xml

    r89c10a9 r586feb7  
    5151    xpointer="xpointer(//*[@os='e'])"/>
    5252
    53 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${LFS}/cross-tools \
    54     --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \
    55     --with-sysroot=${LFS} --disable-nls --disable-shared \
     53<screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
     54    --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \
     55    --with-sysroot=${CLFS} --disable-nls --disable-shared \
    5656    --enable-languages=c</userinput></screen>
    5757
  • BOOK/cross-tools/common/glibc.xml

    r89c10a9 r586feb7  
    7474    <filename>configparms</filename> to adjust instalation paths:</para>
    7575
    76 <screen os="g"><userinput>echo "install_root=${LFS}" &gt; configparms</userinput></screen>
     76<screen os="g"><userinput>echo "install_root=${CLFS}" &gt; configparms</userinput></screen>
    7777
    7878    <para os="h">Prepare Glibc for compilation:</para>
    7979
    80 <screen os="i"><userinput>BUILD_CC="gcc" CC="${LFS_TARGET}-gcc" \
    81     AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
     80<screen os="i"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
     81    AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
    8282    ../glibc-&glibc-version;/configure --prefix=/usr --libexecdir=/usr/lib/glibc \
    83     --host=${LFS_TARGET} --build=${LFS_HOST} \
     83    --host=${CLFS_TARGET} --build=${CLFS_HOST} \
    8484    --disable-profile --enable-add-ons \
    8585    --with-tls --enable-kernel=2.6.0 --with-__thread \
    86     --with-binutils=${LFS}/cross-tools/bin --with-headers=${LFS}/usr/include \
     86    --with-binutils=${CLFS}/cross-tools/bin --with-headers=${CLFS}/usr/include \
    8787    --cache-file=config.cache</userinput></screen>
    8888
     
    9999
    100100      <varlistentry os="j2">
    101         <term><parameter>CC="${LFS_TARGET}-gcc"</parameter></term>
     101        <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
    102102        <listitem>
    103103          <para>This forces Glibc to use the GCC compiler that we made for our target
     
    107107
    108108      <varlistentry os="j3">
    109         <term><parameter>AR="${LFS_TARGET}-ar"</parameter></term>
     109        <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
    110110        <listitem>
    111111          <para>This forces Glibc to use the <command>ar</command> utility
     
    115115
    116116      <varlistentry os="j4">
    117         <term><parameter>RANLIB="${LFS_TARGET}-ranlib"</parameter></term>
     117        <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
    118118        <listitem>
    119119          <para>This forces Glibc to use the <command>ranlib</command> utility
     
    154154
    155155      <varlistentry os="j9">
    156         <term><parameter>--with-binutils=${LFS}/cross-tools/bin</parameter></term>
     156        <term><parameter>--with-binutils=${CLFS}/cross-tools/bin</parameter></term>
    157157        <listitem>
    158158          <para>This tells Glibc to use the Binutils that are specific to
     
    214214    successfully:</para>
    215215
    216 <screen role="nodump"><userinput>mkdir -pv ${LFS}/usr/lib/locale
     216<screen role="nodump"><userinput>mkdir -pv ${CLFS}/usr/lib/locale
    217217localedef -i de_DE -f ISO-8859-1 de_DE
    218218localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
     
    263263    the following:</para>
    264264
    265 <screen><userinput>cat &gt; ${LFS}/etc/nsswitch.conf &lt;&lt; "EOF"
     265<screen><userinput>cat &gt; ${CLFS}/etc/nsswitch.conf &lt;&lt; "EOF"
    266266<literal># Begin /etc/nsswitch.conf
    267267
     
    283283    <para>To determine the local time zone, run the following script:</para>
    284284
    285 <screen role="nodump"><userinput>${LFS}/usr/bin/tzselect</userinput></screen>
     285<screen role="nodump"><userinput>${CLFS}/usr/bin/tzselect</userinput></screen>
    286286
    287287    <para>After answering a few questions about the location, the script will
     
    290290    <filename>/etc/localtime</filename> file by running:</para>
    291291
    292 <screen><userinput>cp -v --remove-destination ${LFS}/usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
    293     ${LFS}/etc/localtime</userinput></screen>
     292<screen><userinput>cp -v --remove-destination ${CLFS}/usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
     293    ${CLFS}/etc/localtime</userinput></screen>
    294294
    295295    <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
     
    337337    following:</para>
    338338
    339 <screen><userinput>cat &gt; ${LFS}/etc/ld.so.conf &lt;&lt; "EOF"
     339<screen><userinput>cat &gt; ${CLFS}/etc/ld.so.conf &lt;&lt; "EOF"
    340340<literal># Begin /etc/ld.so.conf
    341341
Note: See TracChangeset for help on using the changeset viewer.