Add 5.2 - build binutils

This commit is contained in:
Aditya 2023-01-06 14:43:50 +05:30
parent 378f236bcc
commit d5d0e81da1
2 changed files with 40 additions and 1 deletions

View file

@ -0,0 +1,26 @@
#!/bin/bash
mkdir -v build
cd build
../configure --prefix=$LFS/tools \
--with-sysroot=$LFS \
--target=$LFS_TGT \
--disable-nls \
--enable-gprofng=no \
--disable-werror
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make install

View file

@ -121,10 +121,23 @@ PWD=$(pwd)
echo "Setting Up the Environment"
su - lfs -c "$PWD/chapter4/4.4-set-up-env.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter4/4.4-set-up-env.sh"
fi
# Chapter 5.2
# ===========
echo "Building binutils"
su - lfs -c "$PWD/chapter5/5.2-binutils.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter5/5.2-binutils.sh"
fi