/tools vs $LFS/tools

weasel weasel at beyondnormal.org
Tue Jan 6 13:08:59 PST 2004


weasel wrote:
> Brian Willkie wrote:
> 
>> 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
> 
> Yes.  $LFS/tools is only used during ch5 and maybe later in the
<correction>
once or twice....its usually safe to reference /tool since a symlink is 
made on your host system in the beginning that points to $LFS/tools
</correction>
> It is 
> common short hand for the /mnt/lfs/tools dir.  It is also the proper 
> name for the dir once you enter the chroot environment, and after you 
> have completed the build and boot into you LFS system.
> 
> Nick
> 





More information about the lfs-support mailing list