While the average user might be better off running a comfortable distribution such as Raspbian, there are a few scenarios where LFS might benefit you:
Any comments or ideas on how to improve the site or build instructions are greatly appreciated. Also note that building LFS on the Pi is not officially supported by the Linux From Scratch project, so don't demand any help from them.
In "4.4. Setting Up the Environment" the
LFS_TGT variable needs to be set to:
GCC also needs the file
gcc/config/arm/linux-eabi.h to have the dynamic linker locations changed in both passes of chapter 5:
for file in gcc/config/arm/linux-eabi.h do ...
GLIBC names the dynamic linker
ld-linux-armhf so we make a compatibility symlink for software that expect
ln -sv ld-2.27.so /lib/ld-linux.so.3
During Chapter 6, whenever the LFS guide says
$(uname -m)-pc-linux-gnu we need to substitute with
$(gcc -dumpmachine) to get the correct path.
We use the bootloader from the Foundation's firmware repo instead of GRUB.