Changeset 9cb6b64
- Timestamp:
- Jul 1, 2006, 12:48:39 PM (18 years ago)
- Children:
- 8018c66
- Parents:
- 2ce8e8a
- Files:
-
- 122 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r2ce8e8a r9cb6b64 76 76 endef 77 77 78 lfs: toplevel render common78 clfs: toplevel render common 79 79 80 80 toplevel: … … 132 132 done 133 133 134 .PHONY: lfs toplevel common render nochunk nochunk_render pdf text validate trouble dump-commands download-list 134 target-list: 135 @printf "%-15s %-10s\n" "Architecture" "Build Type" ;\ 136 for arch in $(ARCH) ; do \ 137 MULTILIB=0 ;\ 138 PURE64=0 ;\ 139 TEST="`echo $$arch | grep -c -e '-64'`" ;\ 140 if [ "$$TEST" = "1" ]; then \ 141 PURE64=1 ;\ 142 else \ 143 TEST="`echo $$arch | grep -c -e '64'`" ;\ 144 if [ "$$TEST" = "1" ]; then \ 145 MULTILIB=1 ;\ 146 fi; \ 147 fi; \ 148 if [ "$$PURE64" = "1" ]; then \ 149 printf "%-15s %-10s\n" $$arch "Pure 64" ;\ 150 else \ 151 if [ "$$MULTILIB" = "1" ]; then \ 152 printf "%-15s %-10s\n" $$arch "Multilib" ;\ 153 else \ 154 printf "%-15s %-10s\n" $$arch "Default" ;\ 155 fi; \ 156 fi; \ 157 done 158 159 help: 160 @printf "%-25s %-20s\n" "Command" "Function" 161 @printf "%-25s %-20s\n" "make download-list" "Create download file lists" 162 @printf "%-25s %-20s\n" "make dump-commands" "Dump all the commands from the book" 163 @printf "%-25s %-20s\n" "make clfs" "Make the standard multilib page book" 164 @printf "%-25s %-20s\n" "make nochunks" "Make single html file book" 165 @printf "%-25s %-20s\n" "make pdf" "Make pdf copy of the book" 166 @printf "%-25s %-20s\n" "make target-list" "Get List of Architecture targets" 167 @printf "%-25s %-20s\n" "make test" "Make a text copy of the book" 168 @printf "%-25s %-20s\n" "make trouble" "Make a copy tha's easy to troubleshoot" 169 @printf "%-25s %-20s\n" "make validate" "Run book validation" 170 171 .PHONY: clfs toplevel common render nochunks nochunk_render pdf text validate trouble dump-commands download-list \ 172 target-list help -
README
r2ce8e8a r9cb6b64 1 LFS Book README1 CLFS Book README 2 2 3 3 This document is meant to instruct the user on how to convert the book's XML … … 7 7 INSTALL file, then continue reading for examples how to convert these files into 8 8 various other formats. 9 10 By default all books will be generated, to only generate the target your want 11 you can specify ARCH={target} to create a particular book to any of the command 12 lines below. To get a list of targets use make target-list 9 13 10 14 XML to XHTML: -
boot/alpha/kernel.xml
r2ce8e8a r9cb6b64 67 67 xpointer="xpointer(//*[@os='ae'])"/> 68 68 69 <screen><userinput>make ARCH=alpha CROSS_COMPILE=${ LFS_TARGET}- menuconfig</userinput></screen>69 <screen><userinput>make ARCH=alpha CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen> 70 70 71 71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 73 73 xpointer="xpointer(//*[@os='m'])"/> 74 74 75 <screen><userinput>make ARCH=alpha CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>75 <screen><userinput>make ARCH=alpha CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 76 76 77 77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 91 91 xpointer="xpointer(//*[@os='s'])"/> 92 92 93 <screen><userinput>make ARCH=alpha CROSS_COMPILE=${ LFS_TARGET}- \93 <screen><userinput>make ARCH=alpha CROSS_COMPILE=${CLFS_TARGET}- \ 94 94 INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen> 95 95 -
boot/common/changingowner.xml
r2ce8e8a r9cb6b64 11 11 <title>Changing Ownership</title> 12 12 13 <para os="a">Currently, the <filename class="directory">$ LFS</filename>13 <para os="a">Currently, the <filename class="directory">$CLFS</filename> 14 14 directory and all of its subdirectories are owned by the user 15 15 <systemitem class="username">lfs</systemitem>, a user that exists only 16 on the host system. For security reasons, the $ LFS root directory and16 on the host system. For security reasons, the $CLFS root directory and 17 17 all of it subdirectories should be owned by 18 18 <systemitem class="username">root</systemitem>. Change the ownership 19 for $ LFS and its subdirectories by running this command:</para>19 for $CLFS and its subdirectories by running this command:</para> 20 20 21 21 <screen os="b"><userinput>chown -Rv root:root ${LFS}</userinput></screen> -
boot/common/devices.xml
r2ce8e8a r9cb6b64 21 21 <para>The commands in the remainder of the book should be run as 22 22 the <systemitem class="username">root</systemitem> user. Also, 23 double-check that $ LFS is set as23 double-check that $CLFS is set as 24 24 <systemitem class="username">root</systemitem>.</para> 25 25 </note> -
boot/common/e2fsprogs.xml
r2ce8e8a r9cb6b64 37 37 <screen os="aa"><userinput>../configure --prefix=/tools \ 38 38 --enable-elf-shlibs --disable-evms \ 39 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>39 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 40 40 41 41 <variablelist os="e"> -
boot/common/introduction.xml
r2ce8e8a r9cb6b64 18 18 installed to allow you to boot the minimal system. Some of these 19 19 packages will be installed onto the root or in /usr on the CLFS 20 partition ($ LFS/bin, $LFS/usr/lib, etc...), rather than /tools, using the20 partition ($CLFS/bin, $CLFS/usr/lib, etc...), rather than /tools, using the 21 21 "DESTDIR" option with make. This will require the 22 22 <systemitem class="username">lfs</systemitem> user to have write access to 23 the rest of the $ LFS partition, so you will need to temporarily change the24 ownership of $ LFS to the <systemitem class="username">lfs</systemitem> user.23 the rest of the $CLFS partition, so you will need to temporarily change the 24 ownership of $CLFS to the <systemitem class="username">lfs</systemitem> user. 25 25 Run the following command as <systemitem 26 26 class="username">root</systemitem>:</para> 27 27 28 <screen><userinput>chown -v lfs $ LFS</userinput></screen>28 <screen><userinput>chown -v lfs $CLFS</userinput></screen> 29 29 30 30 </sect1> -
boot/common/module-init-tools.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="f"><userinput>./configure --prefix=/ \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>30 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 31 31 32 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/common/udev.xml
r2ce8e8a r9cb6b64 27 27 xpointer="xpointer(//*[@os='a'])"/> 28 28 29 <screen os="b"><userinput>make CROSS_COMPILE="${ LFS_TARGET}-" CC="${CC}" LD="${CC}" udevdir=/dev</userinput></screen>29 <screen os="b"><userinput>make CROSS_COMPILE="${CLFS_TARGET}-" CC="${CC}" LD="${CC}" udevdir=/dev</userinput></screen> 30 30 31 31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/mips/colo-build.xml
r2ce8e8a r9cb6b64 34 34 make CC=gcc 35 35 cd ../.. 36 make CROSS_COMPILE="${ LFS_TARGET}-" binary</userinput></screen>36 make CROSS_COMPILE="${CLFS_TARGET}-" binary</userinput></screen> 37 37 38 38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/mips/kernel.xml
r2ce8e8a r9cb6b64 67 67 xpointer="xpointer(//*[@os='ae'])"/> 68 68 69 <screen><userinput>make ARCH=mips CROSS_COMPILE=${ LFS_TARGET}- menuconfig</userinput></screen>69 <screen><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen> 70 70 71 71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 73 73 xpointer="xpointer(//*[@os='m'])"/> 74 74 75 <screen><userinput>make ARCH=mips CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>75 <screen><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 76 76 77 77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 91 91 xpointer="xpointer(//*[@os='s'])"/> 92 92 93 <screen><userinput>make ARCH=mips CROSS_COMPILE=${ LFS_TARGET)- \93 <screen><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET)- \ 94 94 INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen> 95 95 -
boot/mips64/colo-build.xml
r2ce8e8a r9cb6b64 38 38 make CC=gcc 39 39 cd ../.. 40 make CC="${CC} ${BUILD64}" CROSS_COMPILE="${ LFS_TARGET}-" binary</userinput></screen>40 make CC="${CC} ${BUILD64}" CROSS_COMPILE="${CLFS_TARGET}-" binary</userinput></screen> 41 41 42 42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/mips64/flags.xml
r2ce8e8a r9cb6b64 17 17 echo export BUILDN32=\""${BUILDN32}\"" >> ${LFS}/root/.bash_profile 18 18 echo export BUILD64=\""${BUILD64}\"" >> ${LFS}/root/.bash_profile 19 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ${LFS}/root/.bash_profile</userinput></screen>19 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${LFS}/root/.bash_profile</userinput></screen> 20 20 21 21 </sect1> -
boot/mips64/kernel.xml
r2ce8e8a r9cb6b64 71 71 xpointer="xpointer(//*[@os='ae'])"/> 72 72 73 <screen><userinput>make ARCH=mips CROSS_COMPILE=${ LFS_TARGET}- menuconfig</userinput></screen>73 <screen><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen> 74 74 75 75 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 77 77 xpointer="xpointer(//*[@os='m'])"/> 78 78 79 <screen><userinput>make ARCH=mips CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>79 <screen><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 80 80 81 81 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 95 95 xpointer="xpointer(//*[@os='s'])"/> 96 96 97 <screen><userinput>make ARCH=mips CROSS_COMPILE=${ LFS_TARGET}- \97 <screen><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- \ 98 98 INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen> 99 99 -
boot/multilib/e2fsprogs.xml
r2ce8e8a r9cb6b64 44 44 <screen os="aa"><userinput>CC="${CC} ${BUILD64}" ../configure --prefix=/tools \ 45 45 --enable-elf-shlibs --disable-evms \ 46 --host=${ LFS_TARGET}</userinput></screen>46 --host=${CLFS_TARGET}</userinput></screen> 47 47 48 48 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/multilib/module-init-tools.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="f"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/ \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>30 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 31 31 32 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/multilib/udev.xml
r2ce8e8a r9cb6b64 27 27 xpointer="xpointer(//*[@os='a'])"/> 28 28 29 <screen os="b"><userinput>make CROSS_COMPILE="${ LFS_TARGET}-" CC="${CC} ${BUILD64}" LD="${CC} ${BUILD64}" \29 <screen os="b"><userinput>make CROSS_COMPILE="${CLFS_TARGET}-" CC="${CC} ${BUILD64}" LD="${CC} ${BUILD64}" \ 30 30 udevdir=/dev</userinput></screen> 31 31 -
boot/ppc/kernel.xml
r2ce8e8a r9cb6b64 59 59 xpointer="xpointer(//*[@os='ae'])"/> 60 60 61 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${ LFS_TARGET}- menuconfig</userinput></screen>61 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen> 62 62 63 63 <warning> … … 70 70 xpointer="xpointer(//*[@os='m'])"/> 71 71 72 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>72 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 73 73 74 74 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 88 88 xpointer="xpointer(//*[@os='s'])"/> 89 89 90 <screen><userinput>make ARCH=ppc CROSS_COMPILE=${ LFS_TARGET}- \90 <screen><userinput>make ARCH=ppc CROSS_COMPILE=${CLFS_TARGET}- \ 91 91 INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen> 92 92 -
boot/ppc/mktemp.xml
r2ce8e8a r9cb6b64 35 35 36 36 <screen os="e"><userinput>CC="${CC}" ./configure --prefix=/tools --with-libc\ 37 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>37 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 38 38 39 39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/ppc/yaboot-build.xml
r2ce8e8a r9cb6b64 52 52 53 53 <screen><userinput>cp Makefile,{.orig} 54 sed -e "s/\(strip \)/${ LFS_TARGET}-\1/" \54 sed -e "s/\(strip \)/${CLFS_TARGET}-\1/" \ 55 55 -e 's/-o root -g root//' \ 56 56 Makefile.orig > Makefile</userinput></screen> … … 60 60 xpointer="xpointer(//*[@os='g'])"/> 61 61 62 <screen><userinput>make CROSS=${ LFS_TARGET}-</userinput></screen>62 <screen><userinput>make CROSS=${CLFS_TARGET}-</userinput></screen> 63 63 64 64 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 66 66 xpointer="xpointer(//*[@os='i'])"/> 67 67 68 <screen><userinput>make CROSS=${ LFS_TARGET}- ROOT=/tools PREFIX= install</userinput></screen>68 <screen><userinput>make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX= install</userinput></screen> 69 69 70 70 </sect2> -
boot/ppc64/e2fsprogs.xml
r2ce8e8a r9cb6b64 56 56 <screen os="aa"><userinput>CC="${CC} ${BUILD64}" ../configure --prefix=/tools \ 57 57 --enable-elf-shlibs --disable-evms \ 58 --build=${ LFS_HOST} --host=${LFS_TARGET} --cache-file=config.cache</userinput></screen>58 --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache</userinput></screen> 59 59 60 60 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/ppc64/kernel.xml
r2ce8e8a r9cb6b64 63 63 xpointer="xpointer(//*[@os='ae'])"/> 64 64 65 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${ LFS_TARGET}- menuconfig</userinput></screen>65 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen> 66 66 67 67 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 69 69 xpointer="xpointer(//*[@os='m'])"/> 70 70 71 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>71 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 72 72 73 73 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 87 87 xpointer="xpointer(//*[@os='s'])"/> 88 88 89 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${ LFS_TARGET}- \89 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}- \ 90 90 INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen> 91 91 -
boot/ppc64/mktemp.xml
r2ce8e8a r9cb6b64 43 43 44 44 <screen os="e"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools --with-libc\ 45 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>45 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 46 46 47 47 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/ppc64/yaboot-build.xml
r2ce8e8a r9cb6b64 57 57 sed -e "s/\(-print-libgcc-file-name\)/${BUILD32} \1/" \ 58 58 -e "s/\(-Bstatic\)/-melf32ppclinux \1/" \ 59 -e "s/\(strip \)/${ LFS_TARGET}-\1/" \59 -e "s/\(strip \)/${CLFS_TARGET}-\1/" \ 60 60 -e 's/-o root -g root//' \ 61 61 Makefile.orig > Makefile</userinput></screen> … … 65 65 xpointer="xpointer(//*[@os='g'])"/> 66 66 67 <screen><userinput>CFLAGS=${BUILD32} make CROSS=${ LFS_TARGET}-</userinput></screen>67 <screen><userinput>CFLAGS=${BUILD32} make CROSS=${CLFS_TARGET}-</userinput></screen> 68 68 69 69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 75 75 xpointer="xpointer(//*[@os='j0'])"/> 76 76 77 <screen><userinput>make CROSS=${ LFS_TARGET}- ROOT=/tools PREFIX= install 2>&1 | tee instlog</userinput></screen>77 <screen><userinput>make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX= install 2>&1 | tee instlog</userinput></screen> 78 78 79 79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/sparc/kernel.xml
r2ce8e8a r9cb6b64 59 59 xpointer="xpointer(//*[@os='ae'])"/> 60 60 61 <screen><userinput>make ARCH=sparc CROSS_COMPILE=${ LFS_TARGET}- menuconfig</userinput></screen>61 <screen><userinput>make ARCH=sparc CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen> 62 62 63 63 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 65 65 xpointer="xpointer(//*[@os='m'])"/> 66 66 67 <screen><userinput>make ARCH=sparc CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>67 <screen><userinput>make ARCH=sparc CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 68 68 69 69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 83 83 xpointer="xpointer(//*[@os='s'])"/> 84 84 85 <screen><userinput>make ARCH=sparc CROSS_COMPILE=${ LFS_TARGET}- \85 <screen><userinput>make ARCH=sparc CROSS_COMPILE=${CLFS_TARGET}- \ 86 86 INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen> 87 87 -
boot/sparc/silo-build.xml
r2ce8e8a r9cb6b64 35 35 xpointer="xpointer(//*[@os='c'])"/> 36 36 37 <screen os="aa"><userinput>make CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>37 <screen os="aa"><userinput>make CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 38 38 39 39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/sparc64/flags.xml
r2ce8e8a r9cb6b64 16 16 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${LFS}/root/.bash_profile 17 17 echo export BUILD64=\""${BUILD64}\"" >> ${LFS}/root/.bash_profile 18 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ${LFS}/root/.bash_profile</userinput></screen>18 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${LFS}/root/.bash_profile</userinput></screen> 19 19 20 20 </sect1> -
boot/sparc64/kernel.xml
r2ce8e8a r9cb6b64 39 39 xpointer="xpointer(//*[@os='m1'])"/> 40 40 41 <screen><userinput>make mrproper ARCH=sparc64 CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>41 <screen><userinput>make mrproper ARCH=sparc64 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 42 42 43 43 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 61 61 xpointer="xpointer(//*[@os='ae'])"/> 62 62 63 <screen><userinput>make ARCH=sparc64 CROSS_COMPILE=${ LFS_TARGET}- menuconfig</userinput></screen>63 <screen><userinput>make ARCH=sparc64 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen> 64 64 65 65 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 67 67 xpointer="xpointer(//*[@os='m'])"/> 68 68 69 <screen><userinput>make ARCH=sparc64 CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>69 <screen><userinput>make ARCH=sparc64 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 70 70 71 71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 86 86 87 87 <screen><userinput>make INSTALL_MOD_PATH=${LFS} ARCH=sparc64 \ 88 CROSS_COMPILE=${ LFS_TARGET}- modules_install</userinput></screen>88 CROSS_COMPILE=${CLFS_TARGET}- modules_install</userinput></screen> 89 89 90 90 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/x86/grub-build.xml
r2ce8e8a r9cb6b64 40 40 41 41 <screen os="aa"><userinput>./configure --prefix=/usr \ 42 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>42 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 43 43 44 44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/x86/kernel.xml
r2ce8e8a r9cb6b64 63 63 <para os="ae">Configure the kernel via a menu-driven interface:</para> 64 64 65 <screen><userinput>make ARCH=i386 CROSS_COMPILE=${ LFS_TARGET}- menuconfig</userinput></screen>65 <screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen> 66 66 67 67 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 69 69 xpointer="xpointer(//*[@os='m'])"/> 70 70 71 <screen><userinput>make ARCH=i386 CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>71 <screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 72 72 73 73 <para os="af">If the use of kernel modules can't be avoided, an … … 91 91 xpointer="xpointer(//*[@os='s'])"/> 92 92 93 <screen><userinput>make ARCH=i386 CROSS_COMPILE=${ LFS_TARGET}- \93 <screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \ 94 94 INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen> 95 95 -
boot/x86_64-64/bin86.xml
r2ce8e8a r9cb6b64 48 48 output is not for a native system.</para> 49 49 50 <screen os="f"><userinput>install -v -m 755 -s as/as86 /cross-tools/bin/${ LFS_TARGET}-as8651 install -v -m 755 -s ld/ld86 /cross-tools/bin/${ LFS_TARGET}-ld86</userinput></screen>50 <screen os="f"><userinput>install -v -m 755 -s as/as86 /cross-tools/bin/${CLFS_TARGET}-as86 51 install -v -m 755 -s ld/ld86 /cross-tools/bin/${CLFS_TARGET}-ld86</userinput></screen> 52 52 53 53 </sect2> -
boot/x86_64/flags.xml
r2ce8e8a r9cb6b64 16 16 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${LFS}/root/.bash_profile 17 17 echo export BUILD64=\""${BUILD64}\"" >> ${LFS}/root/.bash_profile 18 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ${LFS}/root/.bash_profile</userinput></screen>18 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${LFS}/root/.bash_profile</userinput></screen> 19 19 20 20 </sect1> -
boot/x86_64/grub-build.xml
r2ce8e8a r9cb6b64 32 32 33 33 <screen os="aa"><userinput>CC="${CC} ${BUILD32}" ./configure --prefix=/usr \ 34 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>34 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 35 35 36 36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/x86_64/kernel.xml
r2ce8e8a r9cb6b64 63 63 xpointer="xpointer(//*[@os='ae'])"/> 64 64 65 <screen><userinput>make ARCH=x86_64 CROSS_COMPILE=${ LFS_TARGET}- menuconfig</userinput></screen>65 <screen><userinput>make ARCH=x86_64 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen> 66 66 67 67 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 69 69 xpointer="xpointer(//*[@os='m'])"/> 70 70 71 <screen><userinput>make ARCH=x86_64 CROSS_COMPILE=${ LFS_TARGET}-</userinput></screen>71 <screen><userinput>make ARCH=x86_64 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen> 72 72 73 73 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 87 87 xpointer="xpointer(//*[@os='s'])"/> 88 88 89 <screen><userinput>make ARCH=x86_64 CROSS_COMPILE=${ LFS_TARGET}- \89 <screen><userinput>make ARCH=x86_64 CROSS_COMPILE=${CLFS_TARGET}- \ 90 90 INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen> 91 91 -
chroot/common/chroot.xml
r2ce8e8a r9cb6b64 17 17 temporary tools:</para> 18 18 19 <screen><userinput>chroot "$ LFS" /tools/bin/env -i \19 <screen><userinput>chroot "$CLFS" /tools/bin/env -i \ 20 20 HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ 21 21 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ … … 38 38 <envar>LFS</envar> variable anymore, because all work will be 39 39 restricted to the CLFS file system. This is because the Bash shell is 40 told that <filename class="directory">$ LFS</filename> is now the root40 told that <filename class="directory">$CLFS</filename> is now the root 41 41 (<filename class="directory">/</filename>) directory.</para> 42 42 -
chroot/common/kernfs.xml
r2ce8e8a r9cb6b64 23 23 be mounted:</para> 24 24 25 <screen><userinput>mkdir -pv $ LFS/{dev,proc,sys}</userinput></screen>25 <screen><userinput>mkdir -pv $CLFS/{dev,proc,sys}</userinput></screen> 26 26 27 27 <para>Now mount the file systems:</para> 28 28 29 <screen><userinput>mount -vt proc proc $ LFS/proc30 mount -vt sysfs sysfs $ LFS/sys</userinput></screen>29 <screen><userinput>mount -vt proc proc $CLFS/proc 30 mount -vt sysfs sysfs $CLFS/sys</userinput></screen> 31 31 32 32 <para>Remember that if for any reason you stop working on the CLFS system … … 38 38 starting Udev early in the boot process, so we create them here:</para> 39 39 40 <screen><userinput>mknod -m 600 $ LFS/dev/console c 5 141 mknod -m 666 $ LFS/dev/null c 1 3</userinput></screen>40 <screen><userinput>mknod -m 600 $CLFS/dev/console c 5 1 41 mknod -m 666 $CLFS/dev/null c 1 3</userinput></screen> 42 42 43 43 <para>Once the system is complete and booting, the rest of our device … … 48 48 appear in the new CLFS filesystem:</para> 49 49 50 <screen><userinput>/tools/bin/mount -o bind /dev $ LFS/dev</userinput></screen>50 <screen><userinput>/tools/bin/mount -o bind /dev $CLFS/dev</userinput></screen> 51 51 52 52 <para>Additional file systems will soon be mounted from within the chroot … … 54 54 for each of these now:</para> 55 55 56 <screen><userinput>mount -f -vt tmpfs tmpfs $ LFS/dev/shm57 mount -f -vt devpts -o gid=10,mode=620 devpts $ LFS/dev/pts</userinput></screen>56 <screen><userinput>mount -f -vt tmpfs tmpfs $CLFS/dev/shm 57 mount -f -vt devpts -o gid=10,mode=620 devpts $CLFS/dev/pts</userinput></screen> 58 58 59 59 </sect1> -
chroot/mips64/flags.xml
r2ce8e8a r9cb6b64 20 20 <para>You will need to set your host target triplet for o32 bit:</para> 21 21 22 <screen><userinput>export LFS_TARGET32="`echo ${MACH_TYPE}| sed -e 's/64//g'`"</userinput></screen>22 <screen><userinput>export CLFS_TARGET32="`echo ${MACH_TYPE}| sed -e 's/64//g'`"</userinput></screen> 23 23 24 24 <para>To prevent errors when you come back to your build, we will export these … … 28 28 echo export BUILDN32=\""${BUILDN32}\"" >> ~/.bash_profile 29 29 echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile 30 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen>30 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen> 31 31 32 32 </sect1> -
chroot/ppc64/flags.xml
r2ce8e8a r9cb6b64 19 19 <para>You will need to set your host target triplet for 32 bit:</para> 20 20 21 <screen><userinput>export LFS_TARGET32="powerpc-unknown-linux-gnu"</userinput></screen>21 <screen><userinput>export CLFS_TARGET32="powerpc-unknown-linux-gnu"</userinput></screen> 22 22 23 23 <para>To prevent errors when you come back to your build, we will export these … … 26 26 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile 27 27 echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile 28 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen>28 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen> 29 29 30 30 </sect1> -
chroot/sparc64/flags.xml
r2ce8e8a r9cb6b64 19 19 <para>You will need to set your host target triplet for 32 bit:</para> 20 20 21 <screen><userinput>export LFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen>21 <screen><userinput>export CLFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen> 22 22 23 23 <para>To prevent errors when you come back to your build, we will export these … … 26 26 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile 27 27 echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile 28 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen>28 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen> 29 29 30 30 </sect1> -
chroot/x86_64/flags.xml
r2ce8e8a r9cb6b64 19 19 <para>You will need to set your host target triplet for 32 bit:</para> 20 20 21 <screen><userinput>export LFS_TARGET32="i686-pc-linux-gnu"</userinput></screen>21 <screen><userinput>export CLFS_TARGET32="i686-pc-linux-gnu"</userinput></screen> 22 22 23 23 <para>To prevent errors when you come back to your build, we will export these … … 26 26 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile 27 27 echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile 28 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen>28 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen> 29 29 30 30 </sect1> -
cross-tools/64/binutils.xml
r2ce8e8a r9cb6b64 48 48 49 49 <screen os="ca"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \ 50 --host=${ LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \50 --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \ 51 51 --disable-nls --enable-shared --enable-64-bit-bfd --disable-multilib</userinput></screen> 52 52 -
cross-tools/64/glibc.xml
r2ce8e8a r9cb6b64 71 71 xpointer="xpointer(//*[@os='g'])"/> 72 72 73 <screen os="df"><userinput>BUILD_CC="gcc" CC="${ LFS_TARGET}-gcc ${BUILD64}" \74 AR="${ LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \73 <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD64}" \ 74 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \ 75 75 ../glibc-&glibc-version;/configure --prefix=/tools \ 76 --host=${ LFS_TARGET} --build=${LFS_HOST} \76 --host=${CLFS_TARGET} --build=${CLFS_HOST} \ 77 77 --disable-profile --enable-add-ons \ 78 78 --with-tls --enable-kernel=2.6.0 --with-__thread \ -
cross-tools/alpha/gcc-static.xml
r2ce8e8a r9cb6b64 81 81 82 82 <screen><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \ 83 --host=${ LFS_HOST} --target=${LFS_TARGET} \83 --host=${CLFS_HOST} --target=${CLFS_TARGET} \ 84 84 --with-local-prefix=/tools --disable-nls --disable-shared \ 85 85 --disable-threads --enable-languages=c</userinput></screen> -
cross-tools/alpha/glibc-headers.xml
r2ce8e8a r9cb6b64 53 53 54 54 <screen os="s3"><userinput>CC=gcc ../glibc-&glibc-version;/configure --prefix=/tools \ 55 --host=${ LFS_TARGET} --build=${LFS_HOST} \55 --host=${CLFS_TARGET} --build=${CLFS_HOST} \ 56 56 --disable-sanity-checks --enable-kernel=2.6.0 \ 57 57 --with-headers=/tools/include --cache-file=config.cache \ 58 --with-binutils=/cross-tools/${ LFS_TARGET}/bin</userinput></screen>58 --with-binutils=/cross-tools/${CLFS_TARGET}/bin</userinput></screen> 59 59 60 60 <warning os="e1"> … … 83 83 84 84 <varlistentry os="ca3"> 85 <term><parameter>--build=${ LFS_HOST}</parameter></term>85 <term><parameter>--build=${CLFS_HOST}</parameter></term> 86 86 <listitem> 87 87 <para>When used with --host, this creates a cross-architecture 88 executable that creates files for ${ LFS_TARGET} but runs on ${LFS_HOST).</para>88 executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).</para> 89 89 </listitem> 90 90 </varlistentry> 91 91 92 92 <varlistentry os="ca4"> 93 <term><parameter>--host=${ LFS_TARGET}</parameter></term>93 <term><parameter>--host=${CLFS_TARGET}</parameter></term> 94 94 <listitem> 95 95 <para>When used with --build, this creates a cross-architecture 96 executable that creates files for ${ LFS_TARGET} but runs on ${LFS_HOST).</para>96 executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).</para> 97 97 </listitem> 98 98 </varlistentry> … … 124 124 125 125 <varlistentry os="ca8"> 126 <term><parameter>--with-binutils=/cross-tools/${ LFS_TARGET}/bin</parameter></term>126 <term><parameter>--with-binutils=/cross-tools/${CLFS_TARGET}/bin</parameter></term> 127 127 <listitem> 128 128 <para>This tells GLIBC to use the binutils for our specific target architecture.</para> -
cross-tools/alpha/variables.xml
r2ce8e8a r9cb6b64 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 27 <screen os="d"><userinput>export LFS_TARGET="alpha-unknown-linux-gnu"</userinput></screen>27 <screen os="d"><userinput>export CLFS_TARGET="alpha-unknown-linux-gnu"</userinput></screen> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
cross-tools/common/binutils.xml
r2ce8e8a r9cb6b64 46 46 47 47 <screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \ 48 --host=${ LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \48 --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \ 49 49 --disable-nls --enable-shared --disable-multilib</userinput></screen> 50 50 … … 62 62 63 63 <varlistentry os="bd2"> 64 <term><parameter>--host=${ LFS_HOST}</parameter></term>64 <term><parameter>--host=${CLFS_HOST}</parameter></term> 65 65 <listitem> 66 66 <para>When used with --target, this creates a cross-architecture 67 executable that creates files for ${ LFS_TARGET} but runs on ${LFS_HOST).</para>67 executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).</para> 68 68 </listitem> 69 69 </varlistentry> 70 70 71 71 <varlistentry os="bd3"> 72 <term><parameter>--target=${ LFS_TARGET}</parameter></term>72 <term><parameter>--target=${CLFS_TARGET}</parameter></term> 73 73 <listitem> 74 74 <para>When used with --host, this creates a cross-architecture 75 executable that creates files for ${ LFS_TARGET} but runs on ${LFS_HOST).</para>75 executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).</para> 76 76 </listitem> 77 77 </varlistentry> -
cross-tools/common/glibc.xml
r2ce8e8a r9cb6b64 65 65 xpointer="xpointer(//*[@os='g'])"/> 66 66 67 <screen os="df"><userinput>BUILD_CC="gcc" CC="${ LFS_TARGET}-gcc" \68 AR="${ LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \67 <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \ 68 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \ 69 69 ../glibc-&glibc-version;/configure --prefix=/tools \ 70 --host=${ LFS_TARGET} --build=${LFS_HOST} \70 --host=${CLFS_TARGET} --build=${CLFS_HOST} \ 71 71 --disable-profile --enable-add-ons \ 72 72 --with-tls --enable-kernel=2.6.0 --with-__thread \ … … 86 86 87 87 <varlistentry os="dg2"> 88 <term><parameter>CC="${ LFS_TARGET}-gcc"</parameter></term>88 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term> 89 89 <listitem> 90 90 <para>This forces Glibc to use the GCC compiler that we made for our target … … 94 94 95 95 <varlistentry os="dg3"> 96 <term><parameter>AR="${ LFS_TARGET}-ar"</parameter></term>96 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term> 97 97 <listitem> 98 98 <para>This forces Glibc to use the <command>ar</command> utility … … 102 102 103 103 <varlistentry os="dg4"> 104 <term><parameter>RANLIB="${ LFS_TARGET}-ranlib"</parameter></term>104 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term> 105 105 <listitem> 106 106 <para>This forces Glibc to use the <command>ranlib</command> utility -
cross-tools/mips/variables.xml
r2ce8e8a r9cb6b64 27 27 <para os="aa">For a MIPS Little Endian Machine:</para> 28 28 29 <screen os="ab"><userinput>export LFS_TARGET="mipsel-unknown-linux-gnu"</userinput></screen>29 <screen os="ab"><userinput>export CLFS_TARGET="mipsel-unknown-linux-gnu"</userinput></screen> 30 30 31 31 <para os="ac">For a MIPS Big Endian Machine:</para> 32 32 33 <screen os="ad"><userinput>export LFS_TARGET="mips-unknown-linux-gnu"</userinput></screen>33 <screen os="ad"><userinput>export CLFS_TARGET="mips-unknown-linux-gnu"</userinput></screen> 34 34 35 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
cross-tools/mips64-64/gcc-final.xml
r2ce8e8a r9cb6b64 88 88 89 89 <screen os="bf" ><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \ 90 --target=${ LFS_TARGET} --host=${LFS_HOST} --with-abi=64 \90 --target=${CLFS_TARGET} --host=${CLFS_HOST} --with-abi=64 \ 91 91 --with-local-prefix=/tools --disable-nls --enable-shared \ 92 92 --enable-languages=c,c++ --enable-__cxa_atexit --disable-multilib \ -
cross-tools/mips64-64/gcc-static.xml
r2ce8e8a r9cb6b64 81 81 82 82 <screen os="al"><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \ 83 --host=${ LFS_HOST} --target=${LFS_TARGET} --disable-mutlilib \83 --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-mutlilib \ 84 84 --with-local-prefix=/tools --disable-nls --disable-shared \ 85 85 --disable-threads --enable-languages=c --with-abi=64</userinput></screen> -
cross-tools/mips64/glibc-n32.xml
r2ce8e8a r9cb6b64 92 92 xpointer="xpointer(//*[@os='g'])"/> 93 93 94 <screen os="df"><userinput>BUILD_CC="gcc" CC="${ LFS_TARGET}-gcc ${BUILDN32}" \95 AR="${ LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \94 <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILDN32}" \ 95 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \ 96 96 ../glibc-&glibc-version;/configure --prefix=/tools \ 97 --host=${ LFS_TARGET} --build=${LFS_HOST} --libdir=/tools/lib32 \97 --host=${CLFS_TARGET} --build=${CLFS_HOST} --libdir=/tools/lib32 \ 98 98 --disable-profile --enable-add-ons \ 99 99 --with-tls --enable-kernel=2.6.0 --with-__thread \ … … 105 105 106 106 <varlistentry os="fa1"> 107 <term><parameter>CC="${ LFS_TARGET}-gcc ${BUILDN32}"</parameter></term>107 <term><parameter>CC="${CLFS_TARGET}-gcc ${BUILDN32}"</parameter></term> 108 108 <listitem> 109 109 <para>Forces Glibc to utilize our target architecture GCC utilizing -
cross-tools/mips64/variables.xml
r2ce8e8a r9cb6b64 29 29 xpointer="xpointer(//*[@os='aa'])"/> 30 30 31 <screen os="ab"><userinput>export LFS_TARGET="mips64el-unknown-linux-gnu"</userinput></screen>31 <screen os="ab"><userinput>export CLFS_TARGET="mips64el-unknown-linux-gnu"</userinput></screen> 32 32 33 33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 35 35 xpointer="xpointer(//*[@os='ac'])"/> 36 36 37 <screen os="ad"><userinput>export LFS_TARGET="mips64-unknown-linux-gnu"</userinput></screen>37 <screen os="ad"><userinput>export CLFS_TARGET="mips64-unknown-linux-gnu"</userinput></screen> 38 38 39 39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 41 41 xpointer="xpointer(//*[@os='m1'])"/> 42 42 43 <screen os="m2"><userinput>export LFS_TARGET32="`echo ${LFS_TARGET}| sed -e 's/64//g'`"</userinput></screen>43 <screen os="m2"><userinput>export CLFS_TARGET32="`echo ${CLFS_TARGET}| sed -e 's/64//g'`"</userinput></screen> 44 44 45 45 <bridgehead renderas="sect4">Copy settings to Environment</bridgehead> -
cross-tools/multilib/binutils.xml
r2ce8e8a r9cb6b64 56 56 57 57 <screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \ 58 --host=${ LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \58 --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \ 59 59 --disable-nls --enable-shared --enable-64-bit-bfd</userinput></screen> 60 60 -
cross-tools/multilib/glibc-64bit.xml
r2ce8e8a r9cb6b64 76 76 xpointer="xpointer(//*[@os='g'])"/> 77 77 78 <screen os="df"><userinput>BUILD_CC="gcc" CC="${ LFS_TARGET}-gcc ${BUILD64}" \79 AR="${ LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \78 <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD64}" \ 79 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \ 80 80 ../glibc-&glibc-version;/configure --prefix=/tools \ 81 --host=${ LFS_TARGET} --build=${LFS_HOST} --libdir=/tools/lib64 \81 --host=${CLFS_TARGET} --build=${CLFS_HOST} --libdir=/tools/lib64 \ 82 82 --disable-profile --enable-add-ons \ 83 83 --with-tls --enable-kernel=2.6.0 --with-__thread \ … … 89 89 90 90 <varlistentry os="fa1"> 91 <term><parameter>CC="${ LFS_TARGET}-gcc ${BUILD64}"</parameter></term>91 <term><parameter>CC="${CLFS_TARGET}-gcc ${BUILD64}"</parameter></term> 92 92 <listitem> 93 93 <para>Forces Glibc to utilize our target architecture GCC utilizing -
cross-tools/multilib/glibc.xml
r2ce8e8a r9cb6b64 71 71 xpointer="xpointer(//*[@os='g'])"/> 72 72 73 <screen os="df"><userinput>BUILD_CC="gcc" CC="${ LFS_TARGET}-gcc ${BUILD32}" \74 AR="${ LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \73 <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" \ 74 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \ 75 75 ../glibc-&glibc-version;/configure --prefix=/tools \ 76 --host=${ LFS_TARGET32} --build=${LFS_HOST} \76 --host=${CLFS_TARGET32} --build=${CLFS_HOST} \ 77 77 --disable-profile --enable-add-ons \ 78 78 --with-tls --enable-kernel=2.6.0 --with-__thread \ … … 88 88 89 89 <varlistentry os="ea1"> 90 <term><parameter>CC="${ LFS_TARGET}-gcc ${BUILD32}"</parameter></term>90 <term><parameter>CC="${CLFS_TARGET}-gcc ${BUILD32}"</parameter></term> 91 91 <listitem> 92 92 <para>Forces Glibc to utilize our target architecture GCC utilizing -
cross-tools/ppc/variables.xml
r2ce8e8a r9cb6b64 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 27 <screen os="d"><userinput>export LFS_TARGET="powerpc-unknown-linux-gnu"</userinput></screen>27 <screen os="d"><userinput>export CLFS_TARGET="powerpc-unknown-linux-gnu"</userinput></screen> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
cross-tools/ppc64/glibc-64bit.xml
r2ce8e8a r9cb6b64 85 85 xpointer="xpointer(//*[@os='g'])"/> 86 86 87 <screen os="df"><userinput>BUILD_CC="gcc" CC="${ LFS_TARGET}-gcc ${BUILD64}" \88 AR="${ LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \87 <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD64}" \ 88 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \ 89 89 ../glibc-&glibc-version;/configure --prefix=/tools \ 90 --host=${ LFS_TARGET} --build=${LFS_HOST} --libdir=/tools/lib64 \90 --host=${CLFS_TARGET} --build=${CLFS_HOST} --libdir=/tools/lib64 \ 91 91 --disable-profile --enable-add-ons \ 92 92 --with-tls --enable-kernel=2.6.0 --with-__thread \ … … 98 98 99 99 <varlistentry os="fa1"> 100 <term><parameter>CC="${ LFS_TARGET}-gcc ${BUILD64}"</parameter></term>100 <term><parameter>CC="${CLFS_TARGET}-gcc ${BUILD64}"</parameter></term> 101 101 <listitem> 102 102 <para>Forces Glibc to utilize our target architecture GCC utilizing -
cross-tools/ppc64/glibc.xml
r2ce8e8a r9cb6b64 88 88 xpointer="xpointer(//*[@os='g'])"/> 89 89 90 <screen os="df"><userinput>BUILD_CC="gcc" CC="${ LFS_TARGET}-gcc ${BUILD32}" \91 AR="${ LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \90 <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" \ 91 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \ 92 92 ../glibc-&glibc-version;/configure --prefix=/tools \ 93 --host=${ LFS_TARGET32} --build=${LFS_HOST} \93 --host=${CLFS_TARGET32} --build=${CLFS_HOST} \ 94 94 --disable-profile --enable-add-ons \ 95 95 --with-tls --enable-kernel=2.6.0 --with-__thread \ … … 105 105 106 106 <varlistentry os="ea1"> 107 <term><parameter>CC="${ LFS_TARGET}-gcc ${BUILD32}"</parameter></term>107 <term><parameter>CC="${CLFS_TARGET}-gcc ${BUILD32}"</parameter></term> 108 108 <listitem> 109 109 <para>Forces Glibc to utilize our target architecture GCC utilizing -
cross-tools/ppc64/variables.xml
r2ce8e8a r9cb6b64 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 27 <screen os="d"><userinput>export LFS_TARGET="powerpc64-unknown-linux-gnu"</userinput></screen>27 <screen os="d"><userinput>export CLFS_TARGET="powerpc64-unknown-linux-gnu"</userinput></screen> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 31 31 xpointer="xpointer(//*[@os='m1'])"/> 32 32 33 <screen os="m2"><userinput>export LFS_TARGET32="powerpc-unknown-linux-gnu"</userinput></screen>33 <screen os="m2"><userinput>export CLFS_TARGET32="powerpc-unknown-linux-gnu"</userinput></screen> 34 34 35 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
cross-tools/sparc/variables.xml
r2ce8e8a r9cb6b64 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 27 <screen os="d"><userinput>export LFS_TARGET="sparc-unknown-linux-gnu"</userinput></screen>27 <screen os="d"><userinput>export CLFS_TARGET="sparc-unknown-linux-gnu"</userinput></screen> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
cross-tools/sparc64/variables.xml
r2ce8e8a r9cb6b64 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 27 <screen os="d"><userinput>export LFS_TARGET="sparc64-unknown-linux-gnu"</userinput></screen>27 <screen os="d"><userinput>export CLFS_TARGET="sparc64-unknown-linux-gnu"</userinput></screen> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 31 31 xpointer="xpointer(//*[@os='m1'])"/> 32 32 33 <screen os="m2"><userinput>export LFS_TARGET32="sparc-unknown-linux-gnu"</userinput></screen>33 <screen os="m2"><userinput>export CLFS_TARGET32="sparc-unknown-linux-gnu"</userinput></screen> 34 34 35 35 <bridgehead renderas="sect4">Copy settings to Environment</bridgehead> -
cross-tools/x86/gcc-final.xml
r2ce8e8a r9cb6b64 94 94 95 95 <screen os="bf"><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \ 96 --target=${ LFS_TARGET} --host=${LFS_HOST} --disable-multilib \96 --target=${CLFS_TARGET} --host=${CLFS_HOST} --disable-multilib \ 97 97 --with-local-prefix=/tools --disable-nls --enable-shared \ 98 98 --enable-languages=c,c++ --enable-__cxa_atexit \ … … 145 145 <para os="bh">Continue with compiling the package:</para> 146 146 147 <screen os="bi"><userinput>make AS_FOR_TARGET="${ LFS_TARGET}-as" \148 LD_FOR_TARGET="${ LFS_TARGET}-ld"</userinput></screen>147 <screen os="bi"><userinput>make AS_FOR_TARGET="${CLFS_TARGET}-as" \ 148 LD_FOR_TARGET="${CLFS_TARGET}-ld"</userinput></screen> 149 149 150 150 <para os="bj">Install the package:</para> -
cross-tools/x86/gcc-static.xml
r2ce8e8a r9cb6b64 73 73 74 74 <screen os="al"><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \ 75 --host=${ LFS_HOST} --target=${LFS_TARGET} --disable-multilib \75 --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \ 76 76 --with-local-prefix=/tools --disable-nls --disable-shared \ 77 77 --disable-threads --enable-languages=c</userinput></screen> -
cross-tools/x86/variables.xml
r2ce8e8a r9cb6b64 20 20 command:</para> 21 21 22 <screen os="b"><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>22 <screen os="b"><userinput>export CLFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen> 23 23 24 24 <para os="c">Now you will need to set the target triplet for the target … … 28 28 the command using the method listed below:</para> 29 29 30 <screen os="d"><userinput>export LFS_TARGET="{target triplet}"</userinput></screen>30 <screen os="d"><userinput>export CLFS_TARGET="{target triplet}"</userinput></screen> 31 31 32 32 <bridgehead renderas="sect4">Copy settings to Environment</bridgehead> … … 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 CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 38 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen> 39 39 40 40 <table os="g"> -
cross-tools/x86_64-64/gcc-static.xml
r2ce8e8a r9cb6b64 79 79 80 80 <screen os="al"><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \ 81 --host=${ LFS_HOST} --target=${LFS_TARGET} --disable-multilib \81 --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \ 82 82 --with-local-prefix=/tools --disable-nls --disable-shared \ 83 83 --disable-threads --enable-languages=c</userinput></screen> -
cross-tools/x86_64/gcc-final.xml
r2ce8e8a r9cb6b64 95 95 96 96 <screen os="bf"><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \ 97 --target=${ LFS_TARGET} --host=${LFS_HOST} \97 --target=${CLFS_TARGET} --host=${CLFS_HOST} \ 98 98 --with-local-prefix=/tools --disable-nls --enable-shared \ 99 99 --enable-languages=c,c++ --enable-__cxa_atexit \ -
cross-tools/x86_64/gcc-static.xml
r2ce8e8a r9cb6b64 81 81 82 82 <screen os="al"><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \ 83 --host=${ LFS_HOST} --target=${LFS_TARGET} \83 --host=${CLFS_HOST} --target=${CLFS_TARGET} \ 84 84 --with-local-prefix=/tools --disable-nls --disable-shared \ 85 85 --disable-threads --enable-languages=c</userinput></screen> -
cross-tools/x86_64/variables.xml
r2ce8e8a r9cb6b64 23 23 <para os="c">Now we will set our Target Triplet:</para> 24 24 25 <screen os="d"><userinput>export LFS_TARGET="x86_64-unknown-linux-gnu"</userinput></screen>25 <screen os="d"><userinput>export CLFS_TARGET="x86_64-unknown-linux-gnu"</userinput></screen> 26 26 27 27 <para os="m1">Now we will set our Target Triplet for 32 Bits:</para> 28 28 29 <screen os="m2"><userinput>export LFS_TARGET32="i686-pc-linux-gnu"</userinput></screen>29 <screen os="m2"><userinput>export CLFS_TARGET32="i686-pc-linux-gnu"</userinput></screen> 30 30 31 31 <bridgehead renderas="sect4">Copy settings to Environment</bridgehead> … … 35 35 xpointer="xpointer(//*[@os='e'])"/> 36 36 37 <screen os="f"><userinput>echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc38 echo export LFS_TARGET=\""${LFS_TARGET}\"" >> ~/.bashrc39 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bashrc</userinput></screen>37 <screen os="f"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 38 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 39 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bashrc</userinput></screen> 40 40 41 41 </sect1> -
final-preps/aboutlfs.xml
r2ce8e8a r9cb6b64 9 9 <?dbhtml filename="aboutlfs.html"?> 10 10 11 <title>About $ LFS</title>11 <title>About $CLFS</title> 12 12 13 13 <para>Throughout this book, the environment variable <envar>LFS</envar> will … … 16 16 Check that the <envar>LFS</envar> variable is set up properly with:</para> 17 17 18 <screen><userinput>echo $ LFS</userinput></screen>18 <screen><userinput>echo $CLFS</userinput></screen> 19 19 20 20 <para>Make sure the output shows the path to the CLFS partition's mount … … 26 26 27 27 <para>Having this variable set is beneficial in that commands such as 28 <command>install -dv $ LFS/tools</command> can be typed literally. The shell29 will automatically replace <quote>$ LFS</quote> with28 <command>install -dv $CLFS/tools</command> can be typed literally. The shell 29 will automatically replace <quote>$CLFS</quote> with 30 30 <quote>/mnt/lfs</quote> (or whatever the variable was set to) when it 31 31 processes the command line.</para> 32 32 33 <para>If you haven't created the <filename class="directory">$ LFS</filename>33 <para>If you haven't created the <filename class="directory">$CLFS</filename> 34 34 directory, do so at this time by issuing the following commands:</para> 35 35 36 <screen><userinput>install -dv $ LFS</userinput></screen>36 <screen><userinput>install -dv $CLFS</userinput></screen> 37 37 38 <para>Do not forget to check that <envar>$ LFS</envar> is set whenever38 <para>Do not forget to check that <envar>$CLFS</envar> is set whenever 39 39 you leave and reenter the current working environment (as when doing a 40 40 <quote>su</quote> to <systemitem class="username">root</systemitem> or -
final-preps/addinguser.xml
r2ce8e8a r9cb6b64 79 79 80 80 <para>Grant <systemitem class="username">lfs</systemitem> full access to 81 <filename class="directory">$ LFS/cross-tools</filename> and82 <filename class="directory">$ LFS/tools</filename> by making <systemitem81 <filename class="directory">$CLFS/cross-tools</filename> and 82 <filename class="directory">$CLFS/tools</filename> by making <systemitem 83 83 class="username">lfs</systemitem> the directorys' owner:</para> 84 84 85 <screen><userinput>chown -v lfs $ LFS/tools86 chown -v lfs $ LFS/cross-tools</userinput></screen>85 <screen><userinput>chown -v lfs $CLFS/tools 86 chown -v lfs $CLFS/cross-tools</userinput></screen> 87 87 88 88 <para>If a separate working directory was created as suggested, 89 89 give user <systemitem class="username">lfs</systemitem> ownership of this directory:</para> 90 90 91 <screen><userinput>chown -v lfs $ LFS/sources</userinput></screen>91 <screen><userinput>chown -v lfs $CLFS/sources</userinput></screen> 92 92 93 93 <para>Next, login as user <systemitem class="username">lfs</systemitem>. -
final-preps/creatingcrossdir.xml
r2ce8e8a r9cb6b64 9 9 <?dbhtml filename="creatingcrossdir.html"?> 10 10 11 <title>Creating the $ LFS/cross-tools Directory</title>11 <title>Creating the $CLFS/cross-tools Directory</title> 12 12 13 13 <para>The cross-binutils and cross-compiler built in 14 14 <xref linkend="chapter-cross-tools"/> will be installed under 15 <filename class="directory">$ LFS/cross-tools</filename> to keep them15 <filename class="directory">$CLFS/cross-tools</filename> to keep them 16 16 separate from the host programs. The programs compiled here are 17 17 cross-tools and will not be a part of the final CLFS system or the … … 22 22 <systemitem class="username">root</systemitem>:</para> 23 23 24 <screen><userinput>install -dv $ LFS/cross-tools</userinput></screen>24 <screen><userinput>install -dv $CLFS/cross-tools</userinput></screen> 25 25 26 26 <para>The next step is to create a <filename … … 29 29 Run this command as <systemitem class="username">root</systemitem> as well:</para> 30 30 31 <screen><userinput>ln -sv $ LFS/cross-tools /</userinput></screen>31 <screen><userinput>ln -sv $CLFS/cross-tools /</userinput></screen> 32 32 33 33 <para>The symlink isn't technically necessary (though the book's 34 34 instructions do assume its existence), but is there mainly for 35 consistency (because /tools is also symlinked to $ LFS/tools) and to35 consistency (because /tools is also symlinked to $CLFS/tools) and to 36 36 simplify the installation of the cross-compile tools.</para> 37 37 -
final-preps/creatingtoolsdir.xml
r2ce8e8a r9cb6b64 9 9 <?dbhtml filename="creatingtoolsdir.html"?> 10 10 11 <title>Creating the $ LFS/tools Directory</title>11 <title>Creating the $CLFS/tools Directory</title> 12 12 13 13 <para>All programs compiled in <xref linkend="chapter-temp-system"/> 14 will be installed under <filename class="directory">$ LFS/tools</filename>14 will be installed under <filename class="directory">$CLFS/tools</filename> 15 15 to keep them separate from the programs compiled in <xref 16 16 linkend="chapter-building-system"/>. The programs compiled here are … … 24 24 <systemitem class="username">root</systemitem>:</para> 25 25 26 <screen><userinput>install -dv $ LFS/tools</userinput></screen>26 <screen><userinput>install -dv $CLFS/tools</userinput></screen> 27 27 28 28 <para>The next step is to create a <filename class="symlink">/tools</filename> … … 31 31 class="username">root</systemitem> as well:</para> 32 32 33 <screen><userinput>ln -sv $ LFS/tools /</userinput></screen>33 <screen><userinput>ln -sv $CLFS/tools /</userinput></screen> 34 34 35 35 <note> -
final-preps/settingenviron.xml
r2ce8e8a r9cb6b64 56 56 the shell will always search the <envar>PATH</envar> when a program is to 57 57 be run. As such, the shell will find the newly compiled tools in 58 <filename class="directory">$ LFS/cross-tools</filename> as soon as they are58 <filename class="directory">$CLFS/cross-tools</filename> as soon as they are 59 59 available without remembering a previous version of the same program in a 60 60 different location.</para> -
final-system/common/stripping.xml
r2ce8e8a r9cb6b64 33 33 <para os="e">Then reenter it with:</para> 34 34 35 <screen os="f" role="nodump"><userinput>chroot $ LFS /tools/bin/env -i \35 <screen os="f" role="nodump"><userinput>chroot $CLFS /tools/bin/env -i \ 36 36 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ 37 37 PATH=/bin:/usr/bin:/sbin:/usr/sbin \ -
final-system/multilib/glibc.xml
r2ce8e8a r9cb6b64 70 70 ../glibc-&glibc-version;/configure --prefix=/usr \ 71 71 --disable-profile --enable-add-ons --enable-kernel=2.6.0 \ 72 --libexecdir=/usr/lib/glibc --host=${ LFS_TARGET32}</userinput></screen>72 --libexecdir=/usr/lib/glibc --host=${CLFS_TARGET32}</userinput></screen> 73 73 74 74 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
final-system/ppc64/glibc.xml
r2ce8e8a r9cb6b64 78 78 ../glibc-&glibc-version;/configure --prefix=/usr \ 79 79 --disable-profile --enable-add-ons --enable-kernel=2.6.0 \ 80 --libexecdir=/usr/lib/glibc --host=${ LFS_TARGET32}</userinput></screen>80 --libexecdir=/usr/lib/glibc --host=${CLFS_TARGET32}</userinput></screen> 81 81 82 82 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
introduction/common/changelog.xml
r2ce8e8a r9cb6b64 38 38 39 39 <listitem> 40 <para>July 1, 2006</para> 41 <itemizedlist> 42 <listitem> 43 <para>[jim] - Updated the build to use CLFS in variables 44 instead of LFS. Also change /mnt/lfs to /mnt/clfs.</para> 45 </listitem> 46 </itemizedlist> 47 </listitem> 48 49 <listitem> 40 50 <para>June 29, 2006</para> 41 51 <itemizedlist> … … 1346 1356 <itemizedlist> 1347 1357 <listitem> 1348 <para>[jim] - Change the LFS_HOST andLFS_TARGET pages to prevent1358 <para>[jim] - Change the CLFS_HOST and CLFS_TARGET pages to prevent 1349 1359 further build issues.</para> 1350 1360 </listitem> … … 1473 1483 </listitem> 1474 1484 <listitem> 1475 <para>[Matt Darcy] - Updated creation of $ LFSHOME parameter to a less1485 <para>[Matt Darcy] - Updated creation of $CLFSHOME parameter to a less 1476 1486 user error system. This change will will need to be validated by 1477 1487 by other devs</para> -
introduction/sparc64/changelog.xml
r2ce8e8a r9cb6b64 80 80 be correct at this point and point to /cross-tools first. 81 81 Also, we've already set up a variable for AS and LD - no need to 82 use \${ LFS_TARGET}-{as,ld}.</para>82 use \${CLFS_TARGET}-{as,ld}.</para> 83 83 </listitem> 84 84 </itemizedlist> -
introduction/x86_64/changelog.xml
r2ce8e8a r9cb6b64 90 90 <itemizedlist> 91 91 <listitem> 92 <para>[jim] - Fixed type on kernel page. Had TARGET should of been LFS_TARGET.</para>92 <para>[jim] - Fixed type on kernel page. Had TARGET should of been CLFS_TARGET.</para> 93 93 </listitem> 94 94 </itemizedlist> -
materials/common/introduction.xml
r2ce8e8a r9cb6b64 30 30 that is conveniently available throughout the entire build. A working 31 31 directory is also required to unpack the sources and build them. 32 <filename class="directory">$ LFS/sources</filename> can be used both32 <filename class="directory">$CLFS/sources</filename> can be used both 33 33 as the place to store the tarballs and patches and as a working 34 34 directory. By using this directory, the required elements will be … … 40 40 starting the download session:</para> 41 41 42 <screen><userinput>mkdir -v $ LFS/sources</userinput></screen>42 <screen><userinput>mkdir -v $CLFS/sources</userinput></screen> 43 43 44 44 <para>Make this directory writable and sticky. <quote>Sticky</quote> … … 48 48 sticky modes:</para> 49 49 50 <screen><userinput>chmod -v a+wt $ LFS/sources</userinput></screen>50 <screen><userinput>chmod -v a+wt $CLFS/sources</userinput></screen> 51 51 52 52 </sect1> -
partitioning/common/mounting.xml
r2ce8e8a r9cb6b64 26 26 running:</para> 27 27 28 <screen><userinput>mkdir -pv $ LFS29 mount -v /dev/<replaceable>[xxx]</replaceable> $ LFS</userinput></screen>28 <screen><userinput>mkdir -pv $CLFS 29 mount -v /dev/<replaceable>[xxx]</replaceable> $CLFS</userinput></screen> 30 30 31 31 <para>Replace <replaceable>[xxx]</replaceable> with the designation of … … 36 36 class="directory">/usr</filename>), mount them using:</para> 37 37 38 <screen><userinput>mkdir -pv $ LFS39 mount -v /dev/<replaceable>[xxx]</replaceable> $ LFS40 mkdir -v $ LFS/usr41 mount -v /dev/<replaceable>[yyy]</replaceable> $ LFS/usr</userinput></screen>38 <screen><userinput>mkdir -pv $CLFS 39 mount -v /dev/<replaceable>[xxx]</replaceable> $CLFS 40 mkdir -v $CLFS/usr 41 mount -v /dev/<replaceable>[yyy]</replaceable> $CLFS/usr</userinput></screen> 42 42 43 43 <para>Replace <replaceable>[xxx]</replaceable> and -
prologue/common/typography.xml
r2ce8e8a r9cb6b64 40 40 and websites.</para> 41 41 42 <screen role="nodump"><userinput>cat > $ LFS/etc/group << "EOF"42 <screen role="nodump"><userinput>cat > $CLFS/etc/group << "EOF" 43 43 <literal>root:x:0: 44 44 bin:x:1: … … 48 48 <para>This format is used when creating configuration files. The first 49 49 command tells the system to create the file 50 <filename>$ LFS/etc/group</filename> from whatever is typed on the50 <filename>$CLFS/etc/group</filename> from whatever is typed on the 51 51 following lines until the sequence end of file (EOF) is encountered. 52 52 Therefore, this entire section is generally typed as seen.</para> -
temp-system/64/binutils.xml
r2ce8e8a r9cb6b64 45 45 <screen os="j"><userinput>CC="${CC} ${BUILD64}" \ 46 46 ../binutils-&binutils-version;/configure --prefix=/tools \ 47 --build=${ LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \47 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \ 48 48 --disable-nls --enable-shared --enable-64-bit-bfd \ 49 49 --disable-multilib</userinput></screen> -
temp-system/64/ncurses.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="b"><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ 30 ./configure --prefix=/tools --with-shared --build=${ LFS_HOST} \31 --host=${ LFS_TARGET} --without-debug --without-ada \30 ./configure --prefix=/tools --with-shared --build=${CLFS_HOST} \ 31 --host=${CLFS_TARGET} --without-debug --without-ada \ 32 32 --enable-overwrite --with-build-cc=gcc</userinput></screen> 33 33 -
temp-system/common/bash.xml
r2ce8e8a r9cb6b64 32 32 33 33 <screen os="h"><userinput>./configure --prefix=/tools \ 34 --build=${ LFS_HOST} --host=${LFS_TARGET} \34 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 35 35 --without-bash-malloc --cache-file=config.cache</userinput></screen> 36 36 -
temp-system/common/binutils.xml
r2ce8e8a r9cb6b64 44 44 45 45 <screen os="j"><userinput>../binutils-&binutils-version;/configure --prefix=/tools \ 46 --build=${ LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \46 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \ 47 47 --disable-nls --enable-shared --disable-multilib</userinput></screen> 48 48 -
temp-system/common/coreutils.xml
r2ce8e8a r9cb6b64 33 33 34 34 <screen os="be"><userinput>./configure --prefix=/tools --cache-file=config.cache \ 35 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>35 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 36 36 37 37 <para os="bf">Compile the package:</para> -
temp-system/common/diffutils.xml
r2ce8e8a r9cb6b64 26 26 27 27 <screen os="b"><userinput>./configure --prefix=/tools \ 28 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>28 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 29 29 30 30 <para os="c">Compile the package:</para> -
temp-system/common/findutils.xml
r2ce8e8a r9cb6b64 33 33 34 34 <screen os="ac"><userinput>./configure --prefix=/tools \ 35 --build=${ LFS_HOST} --host=${LFS_TARGET} \35 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 36 36 --cache-file=config.cache</userinput></screen> 37 37 -
temp-system/common/gawk.xml
r2ce8e8a r9cb6b64 26 26 27 27 <screen os="b"><userinput>./configure --prefix=/tools \ 28 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>28 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 29 29 30 30 <para os="c">Compile the package:</para> -
temp-system/common/gettext.xml
r2ce8e8a r9cb6b64 32 32 33 33 <screen os="d"><userinput>./configure --prefix=/tools \ 34 --build=${ LFS_HOST} --host=${LFS_TARGET} \34 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 35 35 --disable-shared --cache-file=config.cache</userinput></screen> 36 36 -
temp-system/common/grep.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="ca"><userinput>./configure --prefix=/tools \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET} \30 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 31 31 --disable-perl-regexp</userinput></screen> 32 32 -
temp-system/common/gzip.xml
r2ce8e8a r9cb6b64 27 27 28 28 <screen os="ab"><userinput>cp -v configure{,.orig} 29 sed -e "s@nm conftest@${ LFS_TARGET}-&@" configure.orig > configure</userinput></screen>29 sed -e "s@nm conftest@${CLFS_TARGET}-&@" configure.orig > configure</userinput></screen> 30 30 31 31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 34 34 35 35 <screen os="ac"><userinput>./configure --prefix=/tools \ 36 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>36 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 37 37 38 38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/common/introduction.xml
r2ce8e8a r9cb6b64 19 19 <para>The tools in this chapter are cross-compiled using the toolchain in 20 20 /cross-tools and will be installed under the 21 <filename class="directory">$ LFS/tools</filename> directory to keep21 <filename class="directory">$CLFS/tools</filename> directory to keep 22 22 them separate from the files installed in <xref 23 23 linkend="chapter-building-system"/> and the host production directories. … … 28 28 variable is set up properly:</para> 29 29 30 <screen><userinput>echo $ LFS</userinput></screen>30 <screen><userinput>echo $CLFS</userinput></screen> 31 31 32 32 <para>Make sure the output shows the path to the CLFS partition's mount -
temp-system/common/make.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="aa"><userinput>./configure --prefix=/tools \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>30 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 31 31 32 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/common/ncurses.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="b"><userinput>./configure --prefix=/tools --with-shared \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET} \30 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 31 31 --without-debug --without-ada \ 32 32 --enable-overwrite --with-build-cc=gcc</userinput></screen> -
temp-system/common/patch.xml
r2ce8e8a r9cb6b64 26 26 27 27 <screen os="b"><userinput>./configure --prefix=/tools \ 28 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>28 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 29 29 30 30 <para os="c">Compile the package:</para> -
temp-system/common/sed.xml
r2ce8e8a r9cb6b64 26 26 27 27 <screen os="b"><userinput>./configure --prefix=/tools \ 28 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>28 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 29 29 30 30 <para os="c">Compile the package:</para> -
temp-system/common/tar.xml
r2ce8e8a r9cb6b64 33 33 34 34 <screen os="b"><userinput>./configure --prefix=/tools \ 35 --build=${ LFS_HOST} --host=${LFS_TARGET} \35 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 36 36 --cache-file=config.cache</userinput></screen> 37 37 -
temp-system/common/texinfo.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="b"><userinput>./configure --prefix=/tools \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>30 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 31 31 32 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/common/variables.xml
r2ce8e8a r9cb6b64 14 14 and linkers:</para> 15 15 16 <screen><userinput>export CC="${ LFS_TARGET}-gcc"17 export CXX="${ LFS_TARGET}-g++"18 export AR="${ LFS_TARGET}-ar"19 export AS="${ LFS_TARGET}-as"20 export RANLIB="${ LFS_TARGET}-ranlib"21 export LD="${ LFS_TARGET}-ld"22 export STRIP="${ LFS_TARGET}-strip"</userinput></screen>16 <screen><userinput>export CC="${CLFS_TARGET}-gcc" 17 export CXX="${CLFS_TARGET}-g++" 18 export AR="${CLFS_TARGET}-ar" 19 export AS="${CLFS_TARGET}-as" 20 export RANLIB="${CLFS_TARGET}-ranlib" 21 export LD="${CLFS_TARGET}-ld" 22 export STRIP="${CLFS_TARGET}-strip"</userinput></screen> 23 23 24 24 <para>Then add the build variables to <filename>~/.bashrc</filename> to -
temp-system/mips64-64/gcc.xml
r2ce8e8a r9cb6b64 101 101 <screen os="ck"><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ 102 102 ../gcc-&gcc-version;/configure --prefix=/tools --disable-multilib \ 103 --build=${ LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \103 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \ 104 104 --with-local-prefix=/tools --enable-long-long --with-abi=64 \ 105 105 --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit \ -
temp-system/mips64/gcc.xml
r2ce8e8a r9cb6b64 101 101 <screen os="ck"><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ 102 102 ../gcc-&gcc-version;/configure --prefix=/tools --libdir=/tools/lib64 \ 103 --build=${ LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} --with-abi=64 \103 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} --with-abi=64 \ 104 104 --with-local-prefix=/tools --enable-long-long --enable-c99 \ 105 105 --enable-shared --enable-threads=posix --enable-__cxa_atexit \ -
temp-system/multilib/bash.xml
r2ce8e8a r9cb6b64 37 37 <screen os="h"><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ 38 38 ./configure --prefix=/tools \ 39 --build=${ LFS_HOST} --host=${LFS_TARGET} \39 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 40 40 --without-bash-malloc --cache-file=config.cache</userinput></screen> 41 41 -
temp-system/multilib/binutils.xml
r2ce8e8a r9cb6b64 54 54 ../binutils-&binutils-version;/configure --prefix=/tools \ 55 55 --libdir=/tools/lib64 --with-lib-path=/tools/lib \ 56 --build=${ LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \56 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \ 57 57 --disable-nls --enable-shared --enable-64-bit-bfd</userinput></screen> 58 58 -
temp-system/multilib/coreutils.xml
r2ce8e8a r9cb6b64 37 37 <screen os="be"><userinput>CC="${CC} ${BUILD64}" \ 38 38 ./configure --prefix=/tools --cache-file=config.cache \ 39 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>39 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 40 40 41 41 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/multilib/diffutils.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="b"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>30 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 31 31 32 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/multilib/findutils.xml
r2ce8e8a r9cb6b64 36 36 37 37 <screen os="ac"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools \ 38 --build=${ LFS_HOST} --host=${LFS_TARGET} --cache-file=config.cache</userinput></screen>38 --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache</userinput></screen> 39 39 40 40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/multilib/gawk.xml
r2ce8e8a r9cb6b64 29 29 <screen os="b"><userinput>CC="${CC} ${BUILD64}" \ 30 30 ./configure --prefix=/tools \ 31 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>31 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 32 32 33 33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/multilib/gettext.xml
r2ce8e8a r9cb6b64 37 37 <screen os="d"><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ 38 38 ./configure --prefix=/tools \ 39 --build=${ LFS_HOST} --host=${LFS_TARGET} --disable-shared \39 --build=${CLFS_HOST} --host=${CLFS_TARGET} --disable-shared \ 40 40 --cache-file=config.cache</userinput></screen> 41 41 -
temp-system/multilib/grep.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="ca"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET} \30 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 31 31 --disable-perl-regexp</userinput></screen> 32 32 -
temp-system/multilib/gzip.xml
r2ce8e8a r9cb6b64 36 36 37 37 <screen os="ac"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools \ 38 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>38 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 39 39 40 40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/multilib/make.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="aa"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>30 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 31 31 32 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/multilib/ncurses.xml
r2ce8e8a r9cb6b64 29 29 <screen os="b"><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ 30 30 ./configure --prefix=/tools --with-shared \ 31 --build=${ LFS_HOST} --host=${LFS_TARGET} \31 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 32 32 --without-debug --without-ada \ 33 33 --enable-overwrite --with-build-cc=gcc \ -
temp-system/multilib/patch.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="b"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>30 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 31 31 32 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/multilib/sed.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="b"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>30 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 31 31 32 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/multilib/tar.xml
r2ce8e8a r9cb6b64 36 36 37 37 <screen os="b"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools \ 38 --build=${ LFS_HOST} --host=${LFS_TARGET} \38 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 39 39 --cache-file=config.cache</userinput></screen> 40 40 -
temp-system/multilib/texinfo.xml
r2ce8e8a r9cb6b64 28 28 29 29 <screen os="b"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools \ 30 --build=${ LFS_HOST} --host=${LFS_TARGET}</userinput></screen>30 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 31 31 32 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
temp-system/x86/gcc.xml
r2ce8e8a r9cb6b64 89 89 90 90 <screen os="ck"><userinput>../gcc-&gcc-version;/configure --prefix=/tools \ 91 --build=${ LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \91 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \ 92 92 --with-local-prefix=/tools --enable-long-long --enable-c99 \ 93 93 --enable-shared --enable-threads=posix --enable-__cxa_atexit \ -
temp-system/x86_64-64/gcc.xml
r2ce8e8a r9cb6b64 101 101 <screen os="ck"><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ 102 102 ../gcc-&gcc-version;/configure --prefix=/tools --disable-multilib \ 103 --build=${ LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \103 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \ 104 104 --libexecdir=/tools/lib --with-local-prefix=/tools --enable-long-long \ 105 105 --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit \ -
temp-system/x86_64/gcc.xml
r2ce8e8a r9cb6b64 101 101 <screen os="dc"><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ 102 102 ../gcc-&gcc-version;/configure --prefix=/tools --libdir=/tools/lib64 \ 103 --build=${ LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \103 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \ 104 104 --with-local-prefix=/tools --enable-long-long --enable-c99 \ 105 105 --enable-shared --enable-threads=posix --enable-__cxa_atexit \ -
the-end/reboot.xml
r2ce8e8a r9cb6b64 37 37 <para>Then unmount the virtual file systems:</para> 38 38 39 <screen><userinput>umount $ LFS/dev/pts40 umount $ LFS/dev/shm41 umount $ LFS/dev42 umount $ LFS/proc43 umount $ LFS/sys</userinput></screen>39 <screen><userinput>umount $CLFS/dev/pts 40 umount $CLFS/dev/shm 41 umount $CLFS/dev 42 umount $CLFS/proc 43 umount $CLFS/sys</userinput></screen> 44 44 45 45 <para>Unmount the CLFS file system itself:</para> 46 46 47 <screen><userinput>umount $ LFS</userinput></screen>47 <screen><userinput>umount $CLFS</userinput></screen> 48 48 49 49 <para>If multiple partitions were created, unmount the other 50 50 partitions before unmounting the main one, like this:</para> 51 51 52 <screen><userinput>umount $ LFS/usr53 umount $ LFS/home54 umount $ LFS</userinput></screen>52 <screen><userinput>umount $CLFS/usr 53 umount $CLFS/home 54 umount $CLFS</userinput></screen> 55 55 56 56 <para>Now, reboot the system with:</para>
Note:
See TracChangeset
for help on using the changeset viewer.