2024-10-06 06:03:51 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
LFS="/mnt/newlfs"
|
|
|
|
|
|
|
|
/bin/bash CH05.01-binutils-pass1.sh
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "failed CH05.01-binutils-pass1.sh"
|
|
|
|
exit 1
|
|
|
|
else
|
2024-10-08 15:48:40 +08:00
|
|
|
echo "LFS Chapter 5 binutils Pass 1 complete [1/5]"
|
2024-10-06 06:03:51 +08:00
|
|
|
sleep 3
|
|
|
|
fi
|
|
|
|
|
|
|
|
/bin/bash CH05.02-gcc-pass1.sh
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "failed CH05.02-gcc-pass1.sh"
|
|
|
|
exit 1
|
|
|
|
else
|
2024-10-08 15:48:40 +08:00
|
|
|
echo "LFS Chapter 5 GCC Pass 1 complete [2/5]"
|
|
|
|
sleep 3
|
2024-10-06 06:03:51 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
/bin/bash CH05.03-linux-api-headers.sh
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "failed CH05.03-linux-api-headers.sh"
|
|
|
|
exit 1
|
|
|
|
else
|
2024-10-08 15:48:40 +08:00
|
|
|
echo "LFS Chapter 5 Linux API Headers complete [3/5]"
|
2024-10-06 06:03:51 +08:00
|
|
|
sleep 3
|
|
|
|
fi
|
|
|
|
|
2024-10-06 10:03:27 +08:00
|
|
|
ln -sfv ../lib/ld-linux-x86-64.so.2 ${LFS}/lib64
|
|
|
|
ln -sfv ../lib/ld-linux-x86-64.so.2 ${LFS}/lib64/ld-lsb-x86-64.so.3
|
|
|
|
|
|
|
|
/bin/bash CH05.04-glibc.sh
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "failed CH05.03-linux-api-headers.sh"
|
|
|
|
exit 1
|
|
|
|
else
|
2024-10-08 15:48:40 +08:00
|
|
|
echo "LFS Chapter 5 Glibc 2.40 complete [4/5]"
|
2024-10-06 10:03:27 +08:00
|
|
|
sleep 3
|
|
|
|
fi
|
|
|
|
|
|
|
|
/bin/bash CH05.05-libstdc++.sh
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "failed CH05.05-libstdc++.sh"
|
|
|
|
exit 1
|
|
|
|
else
|
2024-10-08 15:48:40 +08:00
|
|
|
echo "LFS Chapter 5 Libstdc++ from GCC 14.2.0 complete [5/5]"
|
2024-10-06 10:03:27 +08:00
|
|
|
sleep 3
|
|
|
|
fi
|
|
|
|
|
2024-10-06 06:03:51 +08:00
|
|
|
|