Index: Makefile
===================================================================
--- Makefile (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ Makefile (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -76,5 +76,5 @@
endef
-lfs: toplevel render common
+clfs: toplevel render common
toplevel:
@@ -132,3 +132,41 @@
done
-.PHONY: lfs toplevel common render nochunk nochunk_render pdf text validate trouble dump-commands download-list
+target-list:
+ @printf "%-15s %-10s\n" "Architecture" "Build Type" ;\
+ for arch in $(ARCH) ; do \
+ MULTILIB=0 ;\
+ PURE64=0 ;\
+ TEST="`echo $$arch | grep -c -e '-64'`" ;\
+ if [ "$$TEST" = "1" ]; then \
+ PURE64=1 ;\
+ else \
+ TEST="`echo $$arch | grep -c -e '64'`" ;\
+ if [ "$$TEST" = "1" ]; then \
+ MULTILIB=1 ;\
+ fi; \
+ fi; \
+ if [ "$$PURE64" = "1" ]; then \
+ printf "%-15s %-10s\n" $$arch "Pure 64" ;\
+ else \
+ if [ "$$MULTILIB" = "1" ]; then \
+ printf "%-15s %-10s\n" $$arch "Multilib" ;\
+ else \
+ printf "%-15s %-10s\n" $$arch "Default" ;\
+ fi; \
+ fi; \
+ done
+
+help:
+ @printf "%-25s %-20s\n" "Command" "Function"
+ @printf "%-25s %-20s\n" "make download-list" "Create download file lists"
+ @printf "%-25s %-20s\n" "make dump-commands" "Dump all the commands from the book"
+ @printf "%-25s %-20s\n" "make clfs" "Make the standard multilib page book"
+ @printf "%-25s %-20s\n" "make nochunks" "Make single html file book"
+ @printf "%-25s %-20s\n" "make pdf" "Make pdf copy of the book"
+ @printf "%-25s %-20s\n" "make target-list" "Get List of Architecture targets"
+ @printf "%-25s %-20s\n" "make test" "Make a text copy of the book"
+ @printf "%-25s %-20s\n" "make trouble" "Make a copy tha's easy to troubleshoot"
+ @printf "%-25s %-20s\n" "make validate" "Run book validation"
+
+.PHONY: clfs toplevel common render nochunks nochunk_render pdf text validate trouble dump-commands download-list \
+ target-list help
Index: README
===================================================================
--- README (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ README (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -1,3 +1,3 @@
-LFS Book README
+CLFS Book README
This document is meant to instruct the user on how to convert the book's XML
@@ -7,4 +7,8 @@
INSTALL file, then continue reading for examples how to convert these files into
various other formats.
+
+By default all books will be generated, to only generate the target your want
+you can specify ARCH={target} to create a particular book to any of the command
+lines below. To get a list of targets use make target-list
XML to XHTML:
Index: boot/alpha/kernel.xml
===================================================================
--- boot/alpha/kernel.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/alpha/kernel.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -67,5 +67,5 @@
xpointer="xpointer(//*[@os='ae'])"/>
-make ARCH=alpha CROSS_COMPILE=${LFS_TARGET}- menuconfig
+make ARCH=alpha CROSS_COMPILE=${CLFS_TARGET}- menuconfig
-make ARCH=alpha CROSS_COMPILE=${LFS_TARGET}-
+make ARCH=alpha CROSS_COMPILE=${CLFS_TARGET}-
-make ARCH=alpha CROSS_COMPILE=${LFS_TARGET}- \
+make ARCH=alpha CROSS_COMPILE=${CLFS_TARGET}- \
INSTALL_MOD_PATH=${LFS} modules_install
Index: boot/common/changingowner.xml
===================================================================
--- boot/common/changingowner.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/common/changingowner.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -11,11 +11,11 @@
Changing Ownership
- Currently, the $LFS
+ Currently, the $CLFS
directory and all of its subdirectories are owned by the user
lfs, a user that exists only
- on the host system. For security reasons, the $LFS root directory and
+ on the host system. For security reasons, the $CLFS root directory and
all of it subdirectories should be owned by
root. Change the ownership
- for $LFS and its subdirectories by running this command:
+ for $CLFS and its subdirectories by running this command:
chown -Rv root:root ${LFS}
Index: boot/common/devices.xml
===================================================================
--- boot/common/devices.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/common/devices.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -21,5 +21,5 @@
The commands in the remainder of the book should be run as
the root user. Also,
- double-check that $LFS is set as
+ double-check that $CLFS is set as
root.
Index: boot/common/e2fsprogs.xml
===================================================================
--- boot/common/e2fsprogs.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/common/e2fsprogs.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -37,5 +37,5 @@
../configure --prefix=/tools \
--enable-elf-shlibs --disable-evms \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
Index: boot/common/introduction.xml
===================================================================
--- boot/common/introduction.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/common/introduction.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -18,13 +18,13 @@
installed to allow you to boot the minimal system. Some of these
packages will be installed onto the root or in /usr on the CLFS
- partition ($LFS/bin, $LFS/usr/lib, etc...), rather than /tools, using the
+ partition ($CLFS/bin, $CLFS/usr/lib, etc...), rather than /tools, using the
"DESTDIR" option with make. This will require the
lfs user to have write access to
- the rest of the $LFS partition, so you will need to temporarily change the
- ownership of $LFS to the lfs user.
+ the rest of the $CLFS partition, so you will need to temporarily change the
+ ownership of $CLFS to the lfs user.
Run the following command as root:
-chown -v lfs $LFS
+chown -v lfs $CLFS
Index: boot/common/module-init-tools.xml
===================================================================
--- boot/common/module-init-tools.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/common/module-init-tools.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -28,5 +28,5 @@
./configure --prefix=/ \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
-make CROSS_COMPILE="${LFS_TARGET}-" CC="${CC}" LD="${CC}" udevdir=/dev
+make CROSS_COMPILE="${CLFS_TARGET}-" CC="${CC}" LD="${CC}" udevdir=/dev
+make CROSS_COMPILE="${CLFS_TARGET}-" binary
-make ARCH=mips CROSS_COMPILE=${LFS_TARGET}- menuconfig
+make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- menuconfig
-make ARCH=mips CROSS_COMPILE=${LFS_TARGET}-
+make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}-
-make ARCH=mips CROSS_COMPILE=${LFS_TARGET)- \
+make ARCH=mips CROSS_COMPILE=${CLFS_TARGET)- \
INSTALL_MOD_PATH=${LFS} modules_install
Index: boot/mips64/colo-build.xml
===================================================================
--- boot/mips64/colo-build.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/mips64/colo-build.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -38,5 +38,5 @@
make CC=gcc
cd ../..
-make CC="${CC} ${BUILD64}" CROSS_COMPILE="${LFS_TARGET}-" binary
+make CC="${CC} ${BUILD64}" CROSS_COMPILE="${CLFS_TARGET}-" binary
+echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${LFS}/root/.bash_profile
Index: boot/mips64/kernel.xml
===================================================================
--- boot/mips64/kernel.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/mips64/kernel.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -71,5 +71,5 @@
xpointer="xpointer(//*[@os='ae'])"/>
-make ARCH=mips CROSS_COMPILE=${LFS_TARGET}- menuconfig
+make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- menuconfig
-make ARCH=mips CROSS_COMPILE=${LFS_TARGET}-
+make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}-
-make ARCH=mips CROSS_COMPILE=${LFS_TARGET}- \
+make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- \
INSTALL_MOD_PATH=${LFS} modules_install
Index: boot/multilib/e2fsprogs.xml
===================================================================
--- boot/multilib/e2fsprogs.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/multilib/e2fsprogs.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -44,5 +44,5 @@
CC="${CC} ${BUILD64}" ../configure --prefix=/tools \
--enable-elf-shlibs --disable-evms \
---host=${LFS_TARGET}
+--host=${CLFS_TARGET}
CC="${CC} ${BUILD64}" ./configure --prefix=/ \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
-make CROSS_COMPILE="${LFS_TARGET}-" CC="${CC} ${BUILD64}" LD="${CC} ${BUILD64}" \
+make CROSS_COMPILE="${CLFS_TARGET}-" CC="${CC} ${BUILD64}" LD="${CC} ${BUILD64}" \
udevdir=/dev
Index: boot/ppc/kernel.xml
===================================================================
--- boot/ppc/kernel.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/ppc/kernel.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -59,5 +59,5 @@
xpointer="xpointer(//*[@os='ae'])"/>
-make ARCH=powerpc CROSS_COMPILE=${LFS_TARGET}- menuconfig
+make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}- menuconfig
@@ -70,5 +70,5 @@
xpointer="xpointer(//*[@os='m'])"/>
-make ARCH=powerpc CROSS_COMPILE=${LFS_TARGET}-
+make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}-
-make ARCH=ppc CROSS_COMPILE=${LFS_TARGET}- \
+make ARCH=ppc CROSS_COMPILE=${CLFS_TARGET}- \
INSTALL_MOD_PATH=${LFS} modules_install
Index: boot/ppc/mktemp.xml
===================================================================
--- boot/ppc/mktemp.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/ppc/mktemp.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -35,5 +35,5 @@
CC="${CC}" ./configure --prefix=/tools --with-libc\
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
cp Makefile,{.orig}
-sed -e "s/\(strip \)/${LFS_TARGET}-\1/" \
+sed -e "s/\(strip \)/${CLFS_TARGET}-\1/" \
-e 's/-o root -g root//' \
Makefile.orig > Makefile
@@ -60,5 +60,5 @@
xpointer="xpointer(//*[@os='g'])"/>
-make CROSS=${LFS_TARGET}-
+make CROSS=${CLFS_TARGET}-
-make CROSS=${LFS_TARGET}- ROOT=/tools PREFIX= install
+make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX= install
Index: boot/ppc64/e2fsprogs.xml
===================================================================
--- boot/ppc64/e2fsprogs.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/ppc64/e2fsprogs.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -56,5 +56,5 @@
CC="${CC} ${BUILD64}" ../configure --prefix=/tools \
--enable-elf-shlibs --disable-evms \
---build=${LFS_HOST} --host=${LFS_TARGET} --cache-file=config.cache
+--build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache
-make ARCH=powerpc CROSS_COMPILE=${LFS_TARGET}- menuconfig
+make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}- menuconfig
-make ARCH=powerpc CROSS_COMPILE=${LFS_TARGET}-
+make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}-
-make ARCH=powerpc CROSS_COMPILE=${LFS_TARGET}- \
+make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}- \
INSTALL_MOD_PATH=${LFS} modules_install
Index: boot/ppc64/mktemp.xml
===================================================================
--- boot/ppc64/mktemp.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/ppc64/mktemp.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -43,5 +43,5 @@
CC="${CC} ${BUILD64}" ./configure --prefix=/tools --with-libc\
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
Makefile
@@ -65,5 +65,5 @@
xpointer="xpointer(//*[@os='g'])"/>
-CFLAGS=${BUILD32} make CROSS=${LFS_TARGET}-
+CFLAGS=${BUILD32} make CROSS=${CLFS_TARGET}-
-make CROSS=${LFS_TARGET}- ROOT=/tools PREFIX= install 2>&1 | tee instlog
+make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX= install 2>&1 | tee instlog
-make ARCH=sparc CROSS_COMPILE=${LFS_TARGET}- menuconfig
+make ARCH=sparc CROSS_COMPILE=${CLFS_TARGET}- menuconfig
-make ARCH=sparc CROSS_COMPILE=${LFS_TARGET}-
+make ARCH=sparc CROSS_COMPILE=${CLFS_TARGET}-
-make ARCH=sparc CROSS_COMPILE=${LFS_TARGET}- \
+make ARCH=sparc CROSS_COMPILE=${CLFS_TARGET}- \
INSTALL_MOD_PATH=${LFS} modules_install
Index: boot/sparc/silo-build.xml
===================================================================
--- boot/sparc/silo-build.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/sparc/silo-build.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -35,5 +35,5 @@
xpointer="xpointer(//*[@os='c'])"/>
-make CROSS_COMPILE=${LFS_TARGET}-
+make CROSS_COMPILE=${CLFS_TARGET}-
echo export BUILD32=\""${BUILD32}\"" >> ${LFS}/root/.bash_profile
echo export BUILD64=\""${BUILD64}\"" >> ${LFS}/root/.bash_profile
-echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ${LFS}/root/.bash_profile
+echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${LFS}/root/.bash_profile
Index: boot/sparc64/kernel.xml
===================================================================
--- boot/sparc64/kernel.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/sparc64/kernel.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -39,5 +39,5 @@
xpointer="xpointer(//*[@os='m1'])"/>
-make mrproper ARCH=sparc64 CROSS_COMPILE=${LFS_TARGET}-
+make mrproper ARCH=sparc64 CROSS_COMPILE=${CLFS_TARGET}-
-make ARCH=sparc64 CROSS_COMPILE=${LFS_TARGET}- menuconfig
+make ARCH=sparc64 CROSS_COMPILE=${CLFS_TARGET}- menuconfig
-make ARCH=sparc64 CROSS_COMPILE=${LFS_TARGET}-
+make ARCH=sparc64 CROSS_COMPILE=${CLFS_TARGET}-
make INSTALL_MOD_PATH=${LFS} ARCH=sparc64 \
- CROSS_COMPILE=${LFS_TARGET}- modules_install
+ CROSS_COMPILE=${CLFS_TARGET}- modules_install
./configure --prefix=/usr \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
Configure the kernel via a menu-driven interface:
-make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- menuconfig
+make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig
-make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}-
+make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}-
If the use of kernel modules can't be avoided, an
@@ -91,5 +91,5 @@
xpointer="xpointer(//*[@os='s'])"/>
-make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- \
+make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
INSTALL_MOD_PATH=${LFS} modules_install
Index: boot/x86_64-64/bin86.xml
===================================================================
--- boot/x86_64-64/bin86.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/x86_64-64/bin86.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -48,6 +48,6 @@
output is not for a native system.
-install -v -m 755 -s as/as86 /cross-tools/bin/${LFS_TARGET}-as86
-install -v -m 755 -s ld/ld86 /cross-tools/bin/${LFS_TARGET}-ld86
+install -v -m 755 -s as/as86 /cross-tools/bin/${CLFS_TARGET}-as86
+install -v -m 755 -s ld/ld86 /cross-tools/bin/${CLFS_TARGET}-ld86
Index: boot/x86_64/flags.xml
===================================================================
--- boot/x86_64/flags.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/x86_64/flags.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -16,5 +16,5 @@
echo export BUILD32=\""${BUILD32}\"" >> ${LFS}/root/.bash_profile
echo export BUILD64=\""${BUILD64}\"" >> ${LFS}/root/.bash_profile
-echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ${LFS}/root/.bash_profile
+echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${LFS}/root/.bash_profile
Index: boot/x86_64/grub-build.xml
===================================================================
--- boot/x86_64/grub-build.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ boot/x86_64/grub-build.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -32,5 +32,5 @@
CC="${CC} ${BUILD32}" ./configure --prefix=/usr \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
-make ARCH=x86_64 CROSS_COMPILE=${LFS_TARGET}- menuconfig
+make ARCH=x86_64 CROSS_COMPILE=${CLFS_TARGET}- menuconfig
-make ARCH=x86_64 CROSS_COMPILE=${LFS_TARGET}-
+make ARCH=x86_64 CROSS_COMPILE=${CLFS_TARGET}-
-make ARCH=x86_64 CROSS_COMPILE=${LFS_TARGET}- \
+make ARCH=x86_64 CROSS_COMPILE=${CLFS_TARGET}- \
INSTALL_MOD_PATH=${LFS} modules_install
Index: chroot/common/chroot.xml
===================================================================
--- chroot/common/chroot.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ chroot/common/chroot.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -17,5 +17,5 @@
temporary tools:
-chroot "$LFS" /tools/bin/env -i \
+chroot "$CLFS" /tools/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
@@ -38,5 +38,5 @@
LFS variable anymore, because all work will be
restricted to the CLFS file system. This is because the Bash shell is
- told that $LFS is now the root
+ told that $CLFS is now the root
(/) directory.
Index: chroot/common/kernfs.xml
===================================================================
--- chroot/common/kernfs.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ chroot/common/kernfs.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -23,10 +23,10 @@
be mounted:
-mkdir -pv $LFS/{dev,proc,sys}
+mkdir -pv $CLFS/{dev,proc,sys}
Now mount the file systems:
-mount -vt proc proc $LFS/proc
-mount -vt sysfs sysfs $LFS/sys
+mount -vt proc proc $CLFS/proc
+mount -vt sysfs sysfs $CLFS/sys
Remember that if for any reason you stop working on the CLFS system
@@ -38,6 +38,6 @@
starting Udev early in the boot process, so we create them here:
-mknod -m 600 $LFS/dev/console c 5 1
-mknod -m 666 $LFS/dev/null c 1 3
+mknod -m 600 $CLFS/dev/console c 5 1
+mknod -m 666 $CLFS/dev/null c 1 3
Once the system is complete and booting, the rest of our device
@@ -48,5 +48,5 @@
appear in the new CLFS filesystem:
-/tools/bin/mount -o bind /dev $LFS/dev
+/tools/bin/mount -o bind /dev $CLFS/dev
Additional file systems will soon be mounted from within the chroot
@@ -54,6 +54,6 @@
for each of these now:
-mount -f -vt tmpfs tmpfs $LFS/dev/shm
-mount -f -vt devpts -o gid=10,mode=620 devpts $LFS/dev/pts
+mount -f -vt tmpfs tmpfs $CLFS/dev/shm
+mount -f -vt devpts -o gid=10,mode=620 devpts $CLFS/dev/pts
Index: chroot/mips64/flags.xml
===================================================================
--- chroot/mips64/flags.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ chroot/mips64/flags.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -20,5 +20,5 @@
You will need to set your host target triplet for o32 bit:
-export LFS_TARGET32="`echo ${MACH_TYPE}| sed -e 's/64//g'`"
+export CLFS_TARGET32="`echo ${MACH_TYPE}| sed -e 's/64//g'`"
To prevent errors when you come back to your build, we will export these
@@ -28,5 +28,5 @@
echo export BUILDN32=\""${BUILDN32}\"" >> ~/.bash_profile
echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile
-echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bash_profile
+echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile
Index: chroot/ppc64/flags.xml
===================================================================
--- chroot/ppc64/flags.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ chroot/ppc64/flags.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -19,5 +19,5 @@
You will need to set your host target triplet for 32 bit:
-export LFS_TARGET32="powerpc-unknown-linux-gnu"
+export CLFS_TARGET32="powerpc-unknown-linux-gnu"
To prevent errors when you come back to your build, we will export these
@@ -26,5 +26,5 @@
echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile
echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile
-echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bash_profile
+echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile
Index: chroot/sparc64/flags.xml
===================================================================
--- chroot/sparc64/flags.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ chroot/sparc64/flags.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -19,5 +19,5 @@
You will need to set your host target triplet for 32 bit:
-export LFS_TARGET32="sparcv9-unknown-linux-gnu"
+export CLFS_TARGET32="sparcv9-unknown-linux-gnu"
To prevent errors when you come back to your build, we will export these
@@ -26,5 +26,5 @@
echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile
echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile
-echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bash_profile
+echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile
Index: chroot/x86_64/flags.xml
===================================================================
--- chroot/x86_64/flags.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ chroot/x86_64/flags.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -19,5 +19,5 @@
You will need to set your host target triplet for 32 bit:
-export LFS_TARGET32="i686-pc-linux-gnu"
+export CLFS_TARGET32="i686-pc-linux-gnu"
To prevent errors when you come back to your build, we will export these
@@ -26,5 +26,5 @@
echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile
echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile
-echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bash_profile
+echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile
Index: cross-tools/64/binutils.xml
===================================================================
--- cross-tools/64/binutils.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/64/binutils.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -48,5 +48,5 @@
../binutils-&binutils-version;/configure --prefix=/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \
--disable-nls --enable-shared --enable-64-bit-bfd --disable-multilib
Index: cross-tools/64/glibc.xml
===================================================================
--- cross-tools/64/glibc.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/64/glibc.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -71,8 +71,8 @@
xpointer="xpointer(//*[@os='g'])"/>
-BUILD_CC="gcc" CC="${LFS_TARGET}-gcc ${BUILD64}" \
- AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
+BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD64}" \
+ AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
../glibc-&glibc-version;/configure --prefix=/tools \
- --host=${LFS_TARGET} --build=${LFS_HOST} \
+ --host=${CLFS_TARGET} --build=${CLFS_HOST} \
--disable-profile --enable-add-ons \
--with-tls --enable-kernel=2.6.0 --with-__thread \
Index: cross-tools/alpha/gcc-static.xml
===================================================================
--- cross-tools/alpha/gcc-static.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/alpha/gcc-static.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -81,5 +81,5 @@
../gcc-&gcc-version;/configure --prefix=/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} \
--with-local-prefix=/tools --disable-nls --disable-shared \
--disable-threads --enable-languages=c
Index: cross-tools/alpha/glibc-headers.xml
===================================================================
--- cross-tools/alpha/glibc-headers.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/alpha/glibc-headers.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -53,8 +53,8 @@
CC=gcc ../glibc-&glibc-version;/configure --prefix=/tools \
- --host=${LFS_TARGET} --build=${LFS_HOST} \
+ --host=${CLFS_TARGET} --build=${CLFS_HOST} \
--disable-sanity-checks --enable-kernel=2.6.0 \
--with-headers=/tools/include --cache-file=config.cache \
- --with-binutils=/cross-tools/${LFS_TARGET}/bin
+ --with-binutils=/cross-tools/${CLFS_TARGET}/bin
@@ -83,16 +83,16 @@
- --build=${LFS_HOST}
+ --build=${CLFS_HOST}
When used with --host, this creates a cross-architecture
- executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).
+ executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).
- --host=${LFS_TARGET}
+ --host=${CLFS_TARGET}
When used with --build, this creates a cross-architecture
- executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).
+ executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).
@@ -124,5 +124,5 @@
- --with-binutils=/cross-tools/${LFS_TARGET}/bin
+ --with-binutils=/cross-tools/${CLFS_TARGET}/bin
This tells GLIBC to use the binutils for our specific target architecture.
Index: cross-tools/alpha/variables.xml
===================================================================
--- cross-tools/alpha/variables.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/alpha/variables.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -25,5 +25,5 @@
xpointer="xpointer(//*[@os='c'])"/>
-export LFS_TARGET="alpha-unknown-linux-gnu"
+export CLFS_TARGET="alpha-unknown-linux-gnu"
../binutils-&binutils-version;/configure --prefix=/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \
--disable-nls --enable-shared --disable-multilib
@@ -62,16 +62,16 @@
- --host=${LFS_HOST}
+ --host=${CLFS_HOST}
When used with --target, this creates a cross-architecture
- executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).
+ executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).
- --target=${LFS_TARGET}
+ --target=${CLFS_TARGET}
When used with --host, this creates a cross-architecture
- executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).
+ executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).
Index: cross-tools/common/glibc.xml
===================================================================
--- cross-tools/common/glibc.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/common/glibc.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -65,8 +65,8 @@
xpointer="xpointer(//*[@os='g'])"/>
-BUILD_CC="gcc" CC="${LFS_TARGET}-gcc" \
- AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
+BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
+ AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
../glibc-&glibc-version;/configure --prefix=/tools \
- --host=${LFS_TARGET} --build=${LFS_HOST} \
+ --host=${CLFS_TARGET} --build=${CLFS_HOST} \
--disable-profile --enable-add-ons \
--with-tls --enable-kernel=2.6.0 --with-__thread \
@@ -86,5 +86,5 @@
- CC="${LFS_TARGET}-gcc"
+ CC="${CLFS_TARGET}-gcc"
This forces Glibc to use the GCC compiler that we made for our target
@@ -94,5 +94,5 @@
- AR="${LFS_TARGET}-ar"
+ AR="${CLFS_TARGET}-ar"
This forces Glibc to use the ar utility
@@ -102,5 +102,5 @@
- RANLIB="${LFS_TARGET}-ranlib"
+ RANLIB="${CLFS_TARGET}-ranlib"
This forces Glibc to use the ranlib utility
Index: cross-tools/mips/variables.xml
===================================================================
--- cross-tools/mips/variables.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/mips/variables.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -27,9 +27,9 @@
For a MIPS Little Endian Machine:
-export LFS_TARGET="mipsel-unknown-linux-gnu"
+export CLFS_TARGET="mipsel-unknown-linux-gnu"
For a MIPS Big Endian Machine:
-export LFS_TARGET="mips-unknown-linux-gnu"
+export CLFS_TARGET="mips-unknown-linux-gnu"
../gcc-&gcc-version;/configure --prefix=/cross-tools \
- --target=${LFS_TARGET} --host=${LFS_HOST} --with-abi=64 \
+ --target=${CLFS_TARGET} --host=${CLFS_HOST} --with-abi=64 \
--with-local-prefix=/tools --disable-nls --enable-shared \
--enable-languages=c,c++ --enable-__cxa_atexit --disable-multilib \
Index: cross-tools/mips64-64/gcc-static.xml
===================================================================
--- cross-tools/mips64-64/gcc-static.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/mips64-64/gcc-static.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -81,5 +81,5 @@
../gcc-&gcc-version;/configure --prefix=/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} --disable-mutlilib \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-mutlilib \
--with-local-prefix=/tools --disable-nls --disable-shared \
--disable-threads --enable-languages=c --with-abi=64
Index: cross-tools/mips64/glibc-n32.xml
===================================================================
--- cross-tools/mips64/glibc-n32.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/mips64/glibc-n32.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -92,8 +92,8 @@
xpointer="xpointer(//*[@os='g'])"/>
-BUILD_CC="gcc" CC="${LFS_TARGET}-gcc ${BUILDN32}" \
- AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
+BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILDN32}" \
+ AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
../glibc-&glibc-version;/configure --prefix=/tools \
- --host=${LFS_TARGET} --build=${LFS_HOST} --libdir=/tools/lib32 \
+ --host=${CLFS_TARGET} --build=${CLFS_HOST} --libdir=/tools/lib32 \
--disable-profile --enable-add-ons \
--with-tls --enable-kernel=2.6.0 --with-__thread \
@@ -105,5 +105,5 @@
- CC="${LFS_TARGET}-gcc ${BUILDN32}"
+ CC="${CLFS_TARGET}-gcc ${BUILDN32}"
Forces Glibc to utilize our target architecture GCC utilizing
Index: cross-tools/mips64/variables.xml
===================================================================
--- cross-tools/mips64/variables.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/mips64/variables.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -29,5 +29,5 @@
xpointer="xpointer(//*[@os='aa'])"/>
-export LFS_TARGET="mips64el-unknown-linux-gnu"
+export CLFS_TARGET="mips64el-unknown-linux-gnu"
-export LFS_TARGET="mips64-unknown-linux-gnu"
+export CLFS_TARGET="mips64-unknown-linux-gnu"
-export LFS_TARGET32="`echo ${LFS_TARGET}| sed -e 's/64//g'`"
+export CLFS_TARGET32="`echo ${CLFS_TARGET}| sed -e 's/64//g'`"
Copy settings to Environment
Index: cross-tools/multilib/binutils.xml
===================================================================
--- cross-tools/multilib/binutils.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/multilib/binutils.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -56,5 +56,5 @@
../binutils-&binutils-version;/configure --prefix=/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \
--disable-nls --enable-shared --enable-64-bit-bfd
Index: cross-tools/multilib/glibc-64bit.xml
===================================================================
--- cross-tools/multilib/glibc-64bit.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/multilib/glibc-64bit.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -76,8 +76,8 @@
xpointer="xpointer(//*[@os='g'])"/>
-BUILD_CC="gcc" CC="${LFS_TARGET}-gcc ${BUILD64}" \
- AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
+BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD64}" \
+ AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
../glibc-&glibc-version;/configure --prefix=/tools \
- --host=${LFS_TARGET} --build=${LFS_HOST} --libdir=/tools/lib64 \
+ --host=${CLFS_TARGET} --build=${CLFS_HOST} --libdir=/tools/lib64 \
--disable-profile --enable-add-ons \
--with-tls --enable-kernel=2.6.0 --with-__thread \
@@ -89,5 +89,5 @@
- CC="${LFS_TARGET}-gcc ${BUILD64}"
+ CC="${CLFS_TARGET}-gcc ${BUILD64}"
Forces Glibc to utilize our target architecture GCC utilizing
Index: cross-tools/multilib/glibc.xml
===================================================================
--- cross-tools/multilib/glibc.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/multilib/glibc.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -71,8 +71,8 @@
xpointer="xpointer(//*[@os='g'])"/>
-BUILD_CC="gcc" CC="${LFS_TARGET}-gcc ${BUILD32}" \
- AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
+BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" \
+ AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
../glibc-&glibc-version;/configure --prefix=/tools \
- --host=${LFS_TARGET32} --build=${LFS_HOST} \
+ --host=${CLFS_TARGET32} --build=${CLFS_HOST} \
--disable-profile --enable-add-ons \
--with-tls --enable-kernel=2.6.0 --with-__thread \
@@ -88,5 +88,5 @@
- CC="${LFS_TARGET}-gcc ${BUILD32}"
+ CC="${CLFS_TARGET}-gcc ${BUILD32}"
Forces Glibc to utilize our target architecture GCC utilizing
Index: cross-tools/ppc/variables.xml
===================================================================
--- cross-tools/ppc/variables.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/ppc/variables.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -25,5 +25,5 @@
xpointer="xpointer(//*[@os='c'])"/>
-export LFS_TARGET="powerpc-unknown-linux-gnu"
+export CLFS_TARGET="powerpc-unknown-linux-gnu"
-BUILD_CC="gcc" CC="${LFS_TARGET}-gcc ${BUILD64}" \
- AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
+BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD64}" \
+ AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
../glibc-&glibc-version;/configure --prefix=/tools \
- --host=${LFS_TARGET} --build=${LFS_HOST} --libdir=/tools/lib64 \
+ --host=${CLFS_TARGET} --build=${CLFS_HOST} --libdir=/tools/lib64 \
--disable-profile --enable-add-ons \
--with-tls --enable-kernel=2.6.0 --with-__thread \
@@ -98,5 +98,5 @@
- CC="${LFS_TARGET}-gcc ${BUILD64}"
+ CC="${CLFS_TARGET}-gcc ${BUILD64}"
Forces Glibc to utilize our target architecture GCC utilizing
Index: cross-tools/ppc64/glibc.xml
===================================================================
--- cross-tools/ppc64/glibc.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/ppc64/glibc.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -88,8 +88,8 @@
xpointer="xpointer(//*[@os='g'])"/>
-BUILD_CC="gcc" CC="${LFS_TARGET}-gcc ${BUILD32}" \
- AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
+BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" \
+ AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
../glibc-&glibc-version;/configure --prefix=/tools \
- --host=${LFS_TARGET32} --build=${LFS_HOST} \
+ --host=${CLFS_TARGET32} --build=${CLFS_HOST} \
--disable-profile --enable-add-ons \
--with-tls --enable-kernel=2.6.0 --with-__thread \
@@ -105,5 +105,5 @@
- CC="${LFS_TARGET}-gcc ${BUILD32}"
+ CC="${CLFS_TARGET}-gcc ${BUILD32}"
Forces Glibc to utilize our target architecture GCC utilizing
Index: cross-tools/ppc64/variables.xml
===================================================================
--- cross-tools/ppc64/variables.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/ppc64/variables.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -25,5 +25,5 @@
xpointer="xpointer(//*[@os='c'])"/>
-export LFS_TARGET="powerpc64-unknown-linux-gnu"
+export CLFS_TARGET="powerpc64-unknown-linux-gnu"
-export LFS_TARGET32="powerpc-unknown-linux-gnu"
+export CLFS_TARGET32="powerpc-unknown-linux-gnu"
-export LFS_TARGET="sparc-unknown-linux-gnu"
+export CLFS_TARGET="sparc-unknown-linux-gnu"
-export LFS_TARGET="sparc64-unknown-linux-gnu"
+export CLFS_TARGET="sparc64-unknown-linux-gnu"
-export LFS_TARGET32="sparc-unknown-linux-gnu"
+export CLFS_TARGET32="sparc-unknown-linux-gnu"
Copy settings to Environment
Index: cross-tools/x86/gcc-final.xml
===================================================================
--- cross-tools/x86/gcc-final.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/x86/gcc-final.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -94,5 +94,5 @@
../gcc-&gcc-version;/configure --prefix=/cross-tools \
- --target=${LFS_TARGET} --host=${LFS_HOST} --disable-multilib \
+ --target=${CLFS_TARGET} --host=${CLFS_HOST} --disable-multilib \
--with-local-prefix=/tools --disable-nls --enable-shared \
--enable-languages=c,c++ --enable-__cxa_atexit \
@@ -145,6 +145,6 @@
Continue with compiling the package:
-make AS_FOR_TARGET="${LFS_TARGET}-as" \
- LD_FOR_TARGET="${LFS_TARGET}-ld"
+make AS_FOR_TARGET="${CLFS_TARGET}-as" \
+ LD_FOR_TARGET="${CLFS_TARGET}-ld"
Install the package:
Index: cross-tools/x86/gcc-static.xml
===================================================================
--- cross-tools/x86/gcc-static.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/x86/gcc-static.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -73,5 +73,5 @@
../gcc-&gcc-version;/configure --prefix=/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \
--with-local-prefix=/tools --disable-nls --disable-shared \
--disable-threads --enable-languages=c
Index: cross-tools/x86/variables.xml
===================================================================
--- cross-tools/x86/variables.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/x86/variables.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -20,5 +20,5 @@
command:
-export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"
+export CLFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"
Now you will need to set the target triplet for the target
@@ -28,5 +28,5 @@
the command using the method listed below:
-export LFS_TARGET="{target triplet}"
+export CLFS_TARGET="{target triplet}"
Copy settings to Environment
@@ -35,6 +35,6 @@
case you have to exit and restart building later:
-echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc
-echo export LFS_TARGET=\""${LFS_TARGET}\"" >> ~/.bashrc
+echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc
+echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc
Index: cross-tools/x86_64-64/gcc-static.xml
===================================================================
--- cross-tools/x86_64-64/gcc-static.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/x86_64-64/gcc-static.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -79,5 +79,5 @@
../gcc-&gcc-version;/configure --prefix=/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \
--with-local-prefix=/tools --disable-nls --disable-shared \
--disable-threads --enable-languages=c
Index: cross-tools/x86_64/gcc-final.xml
===================================================================
--- cross-tools/x86_64/gcc-final.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/x86_64/gcc-final.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -95,5 +95,5 @@
../gcc-&gcc-version;/configure --prefix=/cross-tools \
- --target=${LFS_TARGET} --host=${LFS_HOST} \
+ --target=${CLFS_TARGET} --host=${CLFS_HOST} \
--with-local-prefix=/tools --disable-nls --enable-shared \
--enable-languages=c,c++ --enable-__cxa_atexit \
Index: cross-tools/x86_64/gcc-static.xml
===================================================================
--- cross-tools/x86_64/gcc-static.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/x86_64/gcc-static.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -81,5 +81,5 @@
../gcc-&gcc-version;/configure --prefix=/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} \
--with-local-prefix=/tools --disable-nls --disable-shared \
--disable-threads --enable-languages=c
Index: cross-tools/x86_64/variables.xml
===================================================================
--- cross-tools/x86_64/variables.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ cross-tools/x86_64/variables.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -23,9 +23,9 @@
Now we will set our Target Triplet:
-export LFS_TARGET="x86_64-unknown-linux-gnu"
+export CLFS_TARGET="x86_64-unknown-linux-gnu"
Now we will set our Target Triplet for 32 Bits:
-export LFS_TARGET32="i686-pc-linux-gnu"
+export CLFS_TARGET32="i686-pc-linux-gnu"
Copy settings to Environment
@@ -35,7 +35,7 @@
xpointer="xpointer(//*[@os='e'])"/>
-echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc
-echo export LFS_TARGET=\""${LFS_TARGET}\"" >> ~/.bashrc
-echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bashrc
+echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc
+echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc
+echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bashrc
Index: final-preps/aboutlfs.xml
===================================================================
--- final-preps/aboutlfs.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ final-preps/aboutlfs.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -9,5 +9,5 @@
- About $LFS
+ About $CLFS
Throughout this book, the environment variable LFS will
@@ -16,5 +16,5 @@
Check that the LFS variable is set up properly with:
-echo $LFS
+echo $CLFS
Make sure the output shows the path to the CLFS partition's mount
@@ -26,15 +26,15 @@
Having this variable set is beneficial in that commands such as
- install -dv $LFS/tools can be typed literally. The shell
- will automatically replace $LFS
with
+ install -dv $CLFS/tools can be typed literally. The shell
+ will automatically replace $CLFS
with
/mnt/lfs
(or whatever the variable was set to) when it
processes the command line.
- If you haven't created the $LFS
+ If you haven't created the $CLFS
directory, do so at this time by issuing the following commands:
-install -dv $LFS
+install -dv $CLFS
- Do not forget to check that $LFS is set whenever
+ Do not forget to check that $CLFS is set whenever
you leave and reenter the current working environment (as when doing a
su
to root or
Index: final-preps/addinguser.xml
===================================================================
--- final-preps/addinguser.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ final-preps/addinguser.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -79,15 +79,15 @@
Grant lfs full access to
- $LFS/cross-tools and
- $LFS/tools by making $CLFS/cross-tools and
+ $CLFS/tools by making lfs the directorys' owner:
-chown -v lfs $LFS/tools
-chown -v lfs $LFS/cross-tools
+chown -v lfs $CLFS/tools
+chown -v lfs $CLFS/cross-tools
If a separate working directory was created as suggested,
give user lfs ownership of this directory:
-chown -v lfs $LFS/sources
+chown -v lfs $CLFS/sources
Next, login as user lfs.
Index: final-preps/creatingcrossdir.xml
===================================================================
--- final-preps/creatingcrossdir.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ final-preps/creatingcrossdir.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -9,9 +9,9 @@
- Creating the $LFS/cross-tools Directory
+ Creating the $CLFS/cross-tools Directory
The cross-binutils and cross-compiler built in
will be installed under
- $LFS/cross-tools to keep them
+ $CLFS/cross-tools to keep them
separate from the host programs. The programs compiled here are
cross-tools and will not be a part of the final CLFS system or the
@@ -22,5 +22,5 @@
root:
-install -dv $LFS/cross-tools
+install -dv $CLFS/cross-tools
The next step is to create a root as well:
-ln -sv $LFS/cross-tools /
+ln -sv $CLFS/cross-tools /
The symlink isn't technically necessary (though the book's
instructions do assume its existence), but is there mainly for
- consistency (because /tools is also symlinked to $LFS/tools) and to
+ consistency (because /tools is also symlinked to $CLFS/tools) and to
simplify the installation of the cross-compile tools.
Index: final-preps/creatingtoolsdir.xml
===================================================================
--- final-preps/creatingtoolsdir.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ final-preps/creatingtoolsdir.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -9,8 +9,8 @@
- Creating the $LFS/tools Directory
+ Creating the $CLFS/tools Directory
All programs compiled in
- will be installed under $LFS/tools
+ will be installed under $CLFS/tools
to keep them separate from the programs compiled in . The programs compiled here are
@@ -24,5 +24,5 @@
root:
-install -dv $LFS/tools
+install -dv $CLFS/tools
The next step is to create a /tools
@@ -31,5 +31,5 @@
class="username">root as well:
-ln -sv $LFS/tools /
+ln -sv $CLFS/tools /
Index: final-preps/settingenviron.xml
===================================================================
--- final-preps/settingenviron.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ final-preps/settingenviron.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -56,5 +56,5 @@
the shell will always search the PATH when a program is to
be run. As such, the shell will find the newly compiled tools in
- $LFS/cross-tools as soon as they are
+ $CLFS/cross-tools as soon as they are
available without remembering a previous version of the same program in a
different location.
Index: final-system/common/stripping.xml
===================================================================
--- final-system/common/stripping.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ final-system/common/stripping.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -33,5 +33,5 @@
Then reenter it with:
-chroot $LFS /tools/bin/env -i \
+chroot $CLFS /tools/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
Index: final-system/multilib/glibc.xml
===================================================================
--- final-system/multilib/glibc.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ final-system/multilib/glibc.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -70,5 +70,5 @@
../glibc-&glibc-version;/configure --prefix=/usr \
--disable-profile --enable-add-ons --enable-kernel=2.6.0 \
- --libexecdir=/usr/lib/glibc --host=${LFS_TARGET32}
+ --libexecdir=/usr/lib/glibc --host=${CLFS_TARGET32}
+ --libexecdir=/usr/lib/glibc --host=${CLFS_TARGET32}
+ July 1, 2006
+
+
+ [jim] - Updated the build to use CLFS in variables
+ instead of LFS. Also change /mnt/lfs to /mnt/clfs.
+
+
+
+
+
June 29, 2006
@@ -1346,5 +1356,5 @@
- [jim] - Change the LFS_HOST and LFS_TARGET pages to prevent
+ [jim] - Change the CLFS_HOST and CLFS_TARGET pages to prevent
further build issues.
@@ -1473,5 +1483,5 @@
- [Matt Darcy] - Updated creation of $LFSHOME parameter to a less
+ [Matt Darcy] - Updated creation of $CLFSHOME parameter to a less
user error system. This change will will need to be validated by
by other devs
Index: introduction/sparc64/changelog.xml
===================================================================
--- introduction/sparc64/changelog.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ introduction/sparc64/changelog.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -80,5 +80,5 @@
be correct at this point and point to /cross-tools first.
Also, we've already set up a variable for AS and LD - no need to
- use \${LFS_TARGET}-{as,ld}.
+ use \${CLFS_TARGET}-{as,ld}.
Index: introduction/x86_64/changelog.xml
===================================================================
--- introduction/x86_64/changelog.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ introduction/x86_64/changelog.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -90,5 +90,5 @@
- [jim] - Fixed type on kernel page. Had TARGET should of been LFS_TARGET.
+ [jim] - Fixed type on kernel page. Had TARGET should of been CLFS_TARGET.
Index: materials/common/introduction.xml
===================================================================
--- materials/common/introduction.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ materials/common/introduction.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -30,5 +30,5 @@
that is conveniently available throughout the entire build. A working
directory is also required to unpack the sources and build them.
- $LFS/sources can be used both
+ $CLFS/sources can be used both
as the place to store the tarballs and patches and as a working
directory. By using this directory, the required elements will be
@@ -40,5 +40,5 @@
starting the download session:
-mkdir -v $LFS/sources
+mkdir -v $CLFS/sources
Make this directory writable and sticky. Sticky
@@ -48,5 +48,5 @@
sticky modes:
-chmod -v a+wt $LFS/sources
+chmod -v a+wt $CLFS/sources
Index: partitioning/common/mounting.xml
===================================================================
--- partitioning/common/mounting.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ partitioning/common/mounting.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -26,6 +26,6 @@
running:
-mkdir -pv $LFS
-mount -v /dev/[xxx] $LFS
+mkdir -pv $CLFS
+mount -v /dev/[xxx] $CLFS
Replace [xxx] with the designation of
@@ -36,8 +36,8 @@
class="directory">/usr), mount them using:
-mkdir -pv $LFS
-mount -v /dev/[xxx] $LFS
-mkdir -v $LFS/usr
-mount -v /dev/[yyy] $LFS/usr
+mkdir -pv $CLFS
+mount -v /dev/[xxx] $CLFS
+mkdir -v $CLFS/usr
+mount -v /dev/[yyy] $CLFS/usr
Replace [xxx] and
Index: prologue/common/typography.xml
===================================================================
--- prologue/common/typography.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ prologue/common/typography.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -40,5 +40,5 @@
and websites.
-cat > $LFS/etc/group << "EOF"
+cat > $CLFS/etc/group << "EOF"
root:x:0:
bin:x:1:
@@ -48,5 +48,5 @@
This format is used when creating configuration files. The first
command tells the system to create the file
- $LFS/etc/group from whatever is typed on the
+ $CLFS/etc/group from whatever is typed on the
following lines until the sequence end of file (EOF) is encountered.
Therefore, this entire section is generally typed as seen.
Index: temp-system/64/binutils.xml
===================================================================
--- temp-system/64/binutils.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/64/binutils.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -45,5 +45,5 @@
CC="${CC} ${BUILD64}" \
../binutils-&binutils-version;/configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
--disable-nls --enable-shared --enable-64-bit-bfd \
--disable-multilib
Index: temp-system/64/ncurses.xml
===================================================================
--- temp-system/64/ncurses.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/64/ncurses.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -28,6 +28,6 @@
CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
- ./configure --prefix=/tools --with-shared --build=${LFS_HOST} \
- --host=${LFS_TARGET} --without-debug --without-ada \
+ ./configure --prefix=/tools --with-shared --build=${CLFS_HOST} \
+ --host=${CLFS_TARGET} --without-debug --without-ada \
--enable-overwrite --with-build-cc=gcc
Index: temp-system/common/bash.xml
===================================================================
--- temp-system/common/bash.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/bash.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -32,5 +32,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--without-bash-malloc --cache-file=config.cache
Index: temp-system/common/binutils.xml
===================================================================
--- temp-system/common/binutils.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/binutils.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -44,5 +44,5 @@
../binutils-&binutils-version;/configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
--disable-nls --enable-shared --disable-multilib
Index: temp-system/common/coreutils.xml
===================================================================
--- temp-system/common/coreutils.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/coreutils.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -33,5 +33,5 @@
./configure --prefix=/tools --cache-file=config.cache \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
Compile the package:
Index: temp-system/common/diffutils.xml
===================================================================
--- temp-system/common/diffutils.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/diffutils.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -26,5 +26,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
Compile the package:
Index: temp-system/common/findutils.xml
===================================================================
--- temp-system/common/findutils.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/findutils.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -33,5 +33,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--cache-file=config.cache
Index: temp-system/common/gawk.xml
===================================================================
--- temp-system/common/gawk.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/gawk.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -26,5 +26,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
Compile the package:
Index: temp-system/common/gettext.xml
===================================================================
--- temp-system/common/gettext.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/gettext.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -32,5 +32,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--disable-shared --cache-file=config.cache
Index: temp-system/common/grep.xml
===================================================================
--- temp-system/common/grep.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/grep.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -28,5 +28,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--disable-perl-regexp
Index: temp-system/common/gzip.xml
===================================================================
--- temp-system/common/gzip.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/gzip.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -27,5 +27,5 @@
cp -v configure{,.orig}
-sed -e "s@nm conftest@${LFS_TARGET}-&@" configure.orig > configure
+sed -e "s@nm conftest@${CLFS_TARGET}-&@" configure.orig > configure
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
The tools in this chapter are cross-compiled using the toolchain in
/cross-tools and will be installed under the
- $LFS/tools directory to keep
+ $CLFS/tools directory to keep
them separate from the files installed in and the host production directories.
@@ -28,5 +28,5 @@
variable is set up properly:
-echo $LFS
+echo $CLFS
Make sure the output shows the path to the CLFS partition's mount
Index: temp-system/common/make.xml
===================================================================
--- temp-system/common/make.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/make.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -28,5 +28,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
./configure --prefix=/tools --with-shared \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--without-debug --without-ada \
--enable-overwrite --with-build-cc=gcc
Index: temp-system/common/patch.xml
===================================================================
--- temp-system/common/patch.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/patch.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -26,5 +26,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
Compile the package:
Index: temp-system/common/sed.xml
===================================================================
--- temp-system/common/sed.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/sed.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -26,5 +26,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
Compile the package:
Index: temp-system/common/tar.xml
===================================================================
--- temp-system/common/tar.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/tar.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -33,5 +33,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--cache-file=config.cache
Index: temp-system/common/texinfo.xml
===================================================================
--- temp-system/common/texinfo.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/common/texinfo.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -28,5 +28,5 @@
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
-export CC="${LFS_TARGET}-gcc"
-export CXX="${LFS_TARGET}-g++"
-export AR="${LFS_TARGET}-ar"
-export AS="${LFS_TARGET}-as"
-export RANLIB="${LFS_TARGET}-ranlib"
-export LD="${LFS_TARGET}-ld"
-export STRIP="${LFS_TARGET}-strip"
+export CC="${CLFS_TARGET}-gcc"
+export CXX="${CLFS_TARGET}-g++"
+export AR="${CLFS_TARGET}-ar"
+export AS="${CLFS_TARGET}-as"
+export RANLIB="${CLFS_TARGET}-ranlib"
+export LD="${CLFS_TARGET}-ld"
+export STRIP="${CLFS_TARGET}-strip"
Then add the build variables to ~/.bashrc to
Index: temp-system/mips64-64/gcc.xml
===================================================================
--- temp-system/mips64-64/gcc.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/mips64-64/gcc.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -101,5 +101,5 @@
CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
../gcc-&gcc-version;/configure --prefix=/tools --disable-multilib \
- --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
--with-local-prefix=/tools --enable-long-long --with-abi=64 \
--enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit \
Index: temp-system/mips64/gcc.xml
===================================================================
--- temp-system/mips64/gcc.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/mips64/gcc.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -101,5 +101,5 @@
CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
../gcc-&gcc-version;/configure --prefix=/tools --libdir=/tools/lib64 \
- --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} --with-abi=64 \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} --with-abi=64 \
--with-local-prefix=/tools --enable-long-long --enable-c99 \
--enable-shared --enable-threads=posix --enable-__cxa_atexit \
Index: temp-system/multilib/bash.xml
===================================================================
--- temp-system/multilib/bash.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/multilib/bash.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -37,5 +37,5 @@
CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--without-bash-malloc --cache-file=config.cache
Index: temp-system/multilib/binutils.xml
===================================================================
--- temp-system/multilib/binutils.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/multilib/binutils.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -54,5 +54,5 @@
../binutils-&binutils-version;/configure --prefix=/tools \
--libdir=/tools/lib64 --with-lib-path=/tools/lib \
- --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
--disable-nls --enable-shared --enable-64-bit-bfd
Index: temp-system/multilib/coreutils.xml
===================================================================
--- temp-system/multilib/coreutils.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/multilib/coreutils.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -37,5 +37,5 @@
CC="${CC} ${BUILD64}" \
./configure --prefix=/tools --cache-file=config.cache \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} --cache-file=config.cache
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache
CC="${CC} ${BUILD64}" \
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} --disable-shared \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --disable-shared \
--cache-file=config.cache
Index: temp-system/multilib/grep.xml
===================================================================
--- temp-system/multilib/grep.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/multilib/grep.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -28,5 +28,5 @@
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--disable-perl-regexp
Index: temp-system/multilib/gzip.xml
===================================================================
--- temp-system/multilib/gzip.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/multilib/gzip.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -36,5 +36,5 @@
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
./configure --prefix=/tools --with-shared \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--without-debug --without-ada \
--enable-overwrite --with-build-cc=gcc \
Index: temp-system/multilib/patch.xml
===================================================================
--- temp-system/multilib/patch.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/multilib/patch.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -28,5 +28,5 @@
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--cache-file=config.cache
Index: temp-system/multilib/texinfo.xml
===================================================================
--- temp-system/multilib/texinfo.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/multilib/texinfo.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -28,5 +28,5 @@
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
../gcc-&gcc-version;/configure --prefix=/tools \
- --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
--with-local-prefix=/tools --enable-long-long --enable-c99 \
--enable-shared --enable-threads=posix --enable-__cxa_atexit \
Index: temp-system/x86_64-64/gcc.xml
===================================================================
--- temp-system/x86_64-64/gcc.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/x86_64-64/gcc.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -101,5 +101,5 @@
CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
../gcc-&gcc-version;/configure --prefix=/tools --disable-multilib \
- --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
--libexecdir=/tools/lib --with-local-prefix=/tools --enable-long-long \
--enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit \
Index: temp-system/x86_64/gcc.xml
===================================================================
--- temp-system/x86_64/gcc.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ temp-system/x86_64/gcc.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -101,5 +101,5 @@
CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
../gcc-&gcc-version;/configure --prefix=/tools --libdir=/tools/lib64 \
- --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
--with-local-prefix=/tools --enable-long-long --enable-c99 \
--enable-shared --enable-threads=posix --enable-__cxa_atexit \
Index: the-end/reboot.xml
===================================================================
--- the-end/reboot.xml (revision 2ce8e8a16dd4e9835f44aca184a9276d486d6f30)
+++ the-end/reboot.xml (revision 9cb6b640191e6faab21f5c1ef6797fdfff1f5b07)
@@ -37,20 +37,20 @@
Then unmount the virtual file systems:
-umount $LFS/dev/pts
-umount $LFS/dev/shm
-umount $LFS/dev
-umount $LFS/proc
-umount $LFS/sys
+umount $CLFS/dev/pts
+umount $CLFS/dev/shm
+umount $CLFS/dev
+umount $CLFS/proc
+umount $CLFS/sys
Unmount the CLFS file system itself:
-umount $LFS
+umount $CLFS
If multiple partitions were created, unmount the other
partitions before unmounting the main one, like this:
-umount $LFS/usr
-umount $LFS/home
-umount $LFS
+umount $CLFS/usr
+umount $CLFS/home
+umount $CLFS
Now, reboot the system with: