/tools vs $LFS/tools

Brian Willkie bwillkie at uga.edu
Tue Jan 6 12:18:46 PST 2004


In the Linux from Scratch Book version 5.0 chapter 5 "Creating the
$LFS/tools directory" the command mkdir $LFS/tools should expand to
/mnt/lfs/tools (assuming $LFS is set to /mnt/lfs as in chapter 3). The
book and the list archives commonly refer to a directory /tools. Is
this just a short hand for /mnt/lfs/tools?

If so, should this line from "Installing Binutils-2.14 - Pass 1":

../binutils-2.14/configure \
    --prefix=/tools --disable-nls

instead read

../binutils-2.14/configure \
    --prefix=/mnt/lfs/tools --disable-nls
             ^^^^^^^^
(or --prefix=$LFS/tools...)

and the code from "Locking in Glibc"

SPECFILE=/tools/lib/gcc-lib/*/*/specs &&
sed -e 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2 at g' \
    $SPECFILE > tempspecfile &&
mv -f tempspecfile $SPECFILE &&
unset SPECFILE

instead read

SPECFILE=/tools/lib/gcc-lib/*/*/specs &&
sed -e 's@ /lib/ld-linux.so.2@ /mnt/lfs/tools/lib/ld-linux.so.2 at g' \
                               ^^^^^^^^
    $SPECFILE > tempspecfile &&
mv -f tempspecfile $SPECFILE &&
unset SPECFILE

etc....?


If not, where does the book discuss /tools and the difference between
it and $LFS/tools?

In reading through the first few chapters, I've had a hard time following
what the working directory is in general. For example, chapter 5
"Installing Binutils 2.14- Pass 1"

mkdir ../binutils-build
cd ../binutils-build

This is relative to...  ?


Otherwise, it's a great work so far. Many thanks for everyone's hard work.


Thanks in advance,
Brian



More information about the lfs-support mailing list