Changeset 586feb7 in clfs-sysroot for BOOK/cross-tools
- Timestamp:
- Jul 2, 2006, 12:45:15 PM (18 years ago)
- Branches:
- master
- Children:
- 940e6b3
- Parents:
- 89c10a9
- Location:
- BOOK/cross-tools
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/arm/glibc-headers.xml
r89c10a9 r586feb7 68 68 69 69 <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> 72 72 73 73 <variablelist os="dj"> … … 82 82 83 83 <varlistentry os="dj2"> 84 <term><parameter>--with-headers=${ LFS}/usr/include</parameter></term>84 <term><parameter>--with-headers=${CLFS}/usr/include</parameter></term> 85 85 <listitem> 86 86 <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> 88 88 directory, so that it knows exactly what features the kernel has 89 89 and can optimize itself accordingly.</para> … … 101 101 102 102 <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> 104 104 105 <screen os="o"><userinput>install -dv ${ LFS}/usr/include/bits106 cp -v bits/stdio_lim.h ${ LFS}/usr/include/bits</userinput></screen>105 <screen os="o"><userinput>install -dv ${CLFS}/usr/include/bits 106 cp -v bits/stdio_lim.h ${CLFS}/usr/include/bits</userinput></screen> 107 107 108 108 <para os="p">Now we will create a blank stub file:</para> 109 109 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> 111 111 112 112 <para os="r">For NPTL we use the following command:</para> 113 113 114 114 <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> 116 116 117 117 </sect2> -
BOOK/cross-tools/arm/linux-headers.xml
r89c10a9 r586feb7 37 37 <para os="b">Install the header files that are common to all architectures:</para> 38 38 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-generic41 cp -av include/linux/* ${ LFS}/usr/include/linux42 cp -av include/mtd/* ${ LFS}/usr/include/mtd43 cp -av include/net/* ${ LFS}/usr/include/net44 cp -av include/scsi/* ${ LFS}/usr/include/scsi45 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} 40 cp -av include/asm-generic/* ${CLFS}/usr/include/asm-generic 41 cp -av include/linux/* ${CLFS}/usr/include/linux 42 cp -av include/mtd/* ${CLFS}/usr/include/mtd 43 cp -av include/net/* ${CLFS}/usr/include/net 44 cp -av include/scsi/* ${CLFS}/usr/include/scsi 45 cp -av include/sound/* ${CLFS}/usr/include/sound</userinput></screen> 46 46 47 47 <para os="d">Install the header files that are specific to this architecture:</para> 48 48 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> 50 50 51 51 <para os="e">Make sure the users can read the headers:</para> 52 52 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 {} \; 54 find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \;</userinput></screen> 55 55 56 56 </sect2> -
BOOK/cross-tools/arm/variables.xml
r89c10a9 r586feb7 35 35 case you have to exit and restart building later:</para> 36 36 37 <screen os="f"><userinput>echo export LFS_HOST=\""${ LFS_HOST}\"" >> ~/.bashrc38 echo export LFS_TARGET=\""${ LFS_TARGET}\"" >> ~/.bashrc</userinput></screen>37 <screen os="f"><userinput>echo export LFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 38 echo export LFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen> 39 39 40 40 </sect1> -
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.