From 2efa0dd6aeec3a797a8624c13847824ce678b605 Mon Sep 17 00:00:00 2001 From: Aditya Date: Mon, 9 Jan 2023 14:29:38 +0530 Subject: [PATCH] Add 6.12 - Build make --- scripts/chapter6/6.12-make.sh | 29 +++++++++++++++++++++++++++++ scripts/main.sh | 13 +++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 scripts/chapter6/6.12-make.sh diff --git a/scripts/chapter6/6.12-make.sh b/scripts/chapter6/6.12-make.sh new file mode 100644 index 0000000..f9ec61a --- /dev/null +++ b/scripts/chapter6/6.12-make.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +cd $LFS/sources +tar xf make-4.3.tar.gz +cd make-4.3 + +./configure --prefix=/usr \ + --without-guile \ + --host=$LFS_TGT \ + --build=$(build-aux/config.guess) + + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make DESTDIR=$LFS install + +cd $LFS/sources +rm -rf make-4.3 + diff --git a/scripts/main.sh b/scripts/main.sh index 6573a07..854ac03 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -311,3 +311,16 @@ then stop_script "chapter6/6.11-gzip.sh" fi +# Chapter 6.12 +# ============ +echo "Building make" +su - lfs -c "bash $PWD/chapter6/6.12-make.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter6/6.12-make.sh" +fi + +