Changeset 586feb7 in clfs-sysroot for BOOK/cross-tools/arm
- Timestamp:
- Jul 2, 2006, 12:45:15 PM (18 years ago)
- Branches:
- master
- Children:
- 940e6b3
- Parents:
- 89c10a9
- Location:
- BOOK/cross-tools/arm
- Files:
-
- 3 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>
Note:
See TracChangeset
for help on using the changeset viewer.