Changeset 586feb7 in clfs-sysroot for BOOK/cross-tools/common
- Timestamp:
- Jul 2, 2006, 12:45:15 PM (18 years ago)
- Branches:
- master
- Children:
- 940e6b3
- Parents:
- 89c10a9
- Location:
- BOOK/cross-tools/common
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/common/binutils.xml
r89c10a9 r586feb7 48 48 xpointer="xpointer(//*[@os='c'])"/> 49 49 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} \ 52 52 --disable-nls --enable-shared --disable-multilib</userinput></screen> 53 53 … … 56 56 57 57 <varlistentry os="bd1"> 58 <term><parameter>--prefix=${ LFS}/cross-tools</parameter></term>58 <term><parameter>--prefix=${CLFS}/cross-tools</parameter></term> 59 59 <listitem> 60 60 <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> 62 62 directory.</para> 63 63 </listitem> … … 65 65 66 66 <varlistentry os="bd2"> 67 <term><parameter>--host=${ LFS_HOST}</parameter></term>67 <term><parameter>--host=${CLFS_HOST}</parameter></term> 68 68 <listitem> 69 69 <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> 71 71 </listitem> 72 72 </varlistentry> 73 73 74 74 <varlistentry os="bd3"> 75 <term><parameter>--target=${ LFS_TARGET}</parameter></term>75 <term><parameter>--target=${CLFS_TARGET}</parameter></term> 76 76 <listitem> 77 77 <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> 79 79 </listitem> 80 80 </varlistentry> 81 81 82 82 <varlistentry os="bd4"> 83 <term><parameter>--with-sysroot=${ LFS}</parameter></term>83 <term><parameter>--with-sysroot=${CLFS}</parameter></term> 84 84 <listitem> 85 <para>This tells configure that ${ LFS} is going to be the root86 of our system. It will now use the specified sysroot, ${ LFS} as85 <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 87 87 a prefix of the default search paths.</para> 88 88 </listitem> … … 137 137 138 138 <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> 140 140 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> 142 142 143 143 </sect2> -
BOOK/cross-tools/common/file.xml
r89c10a9 r586feb7 19 19 <para>Prepare File for compilation:</para> 20 20 21 <screen><userinput>./configure --prefix=${ LFS}/cross-tools</userinput></screen>21 <screen><userinput>./configure --prefix=${CLFS}/cross-tools</userinput></screen> 22 22 23 23 <para>Compile the Package:</para> -
BOOK/cross-tools/common/gcc-final.xml
r89c10a9 r586feb7 59 59 xpointer="xpointer(//*[@os='e'])"/> 60 60 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 \ 64 64 --enable-languages=c,c++ --enable-__cxa_atexit \ 65 65 --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen> -
BOOK/cross-tools/common/gcc-static.xml
r89c10a9 r586feb7 51 51 xpointer="xpointer(//*[@os='e'])"/> 52 52 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 \ 56 56 --enable-languages=c</userinput></screen> 57 57 -
BOOK/cross-tools/common/glibc.xml
r89c10a9 r586feb7 74 74 <filename>configparms</filename> to adjust instalation paths:</para> 75 75 76 <screen os="g"><userinput>echo "install_root=${ LFS}" > configparms</userinput></screen>76 <screen os="g"><userinput>echo "install_root=${CLFS}" > configparms</userinput></screen> 77 77 78 78 <para os="h">Prepare Glibc for compilation:</para> 79 79 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" \ 82 82 ../glibc-&glibc-version;/configure --prefix=/usr --libexecdir=/usr/lib/glibc \ 83 --host=${ LFS_TARGET} --build=${LFS_HOST} \83 --host=${CLFS_TARGET} --build=${CLFS_HOST} \ 84 84 --disable-profile --enable-add-ons \ 85 85 --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 \ 87 87 --cache-file=config.cache</userinput></screen> 88 88 … … 99 99 100 100 <varlistentry os="j2"> 101 <term><parameter>CC="${ LFS_TARGET}-gcc"</parameter></term>101 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term> 102 102 <listitem> 103 103 <para>This forces Glibc to use the GCC compiler that we made for our target … … 107 107 108 108 <varlistentry os="j3"> 109 <term><parameter>AR="${ LFS_TARGET}-ar"</parameter></term>109 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term> 110 110 <listitem> 111 111 <para>This forces Glibc to use the <command>ar</command> utility … … 115 115 116 116 <varlistentry os="j4"> 117 <term><parameter>RANLIB="${ LFS_TARGET}-ranlib"</parameter></term>117 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term> 118 118 <listitem> 119 119 <para>This forces Glibc to use the <command>ranlib</command> utility … … 154 154 155 155 <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> 157 157 <listitem> 158 158 <para>This tells Glibc to use the Binutils that are specific to … … 214 214 successfully:</para> 215 215 216 <screen role="nodump"><userinput>mkdir -pv ${ LFS}/usr/lib/locale216 <screen role="nodump"><userinput>mkdir -pv ${CLFS}/usr/lib/locale 217 217 localedef -i de_DE -f ISO-8859-1 de_DE 218 218 localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro … … 263 263 the following:</para> 264 264 265 <screen><userinput>cat > ${ LFS}/etc/nsswitch.conf << "EOF"265 <screen><userinput>cat > ${CLFS}/etc/nsswitch.conf << "EOF" 266 266 <literal># Begin /etc/nsswitch.conf 267 267 … … 283 283 <para>To determine the local time zone, run the following script:</para> 284 284 285 <screen role="nodump"><userinput>${ LFS}/usr/bin/tzselect</userinput></screen>285 <screen role="nodump"><userinput>${CLFS}/usr/bin/tzselect</userinput></screen> 286 286 287 287 <para>After answering a few questions about the location, the script will … … 290 290 <filename>/etc/localtime</filename> file by running:</para> 291 291 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> 294 294 295 295 <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone … … 337 337 following:</para> 338 338 339 <screen><userinput>cat > ${ LFS}/etc/ld.so.conf << "EOF"339 <screen><userinput>cat > ${CLFS}/etc/ld.so.conf << "EOF" 340 340 <literal># Begin /etc/ld.so.conf 341 341
Note:
See TracChangeset
for help on using the changeset viewer.