From d3dbebe6256d8fc925c8e1fd96cbd75fa76e7bd7 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 7 May 2022 19:26:58 +0200 Subject: [PATCH] master.sh: use the new wrt_makeflags function It now take three arguments: - name of the package - MAKEFLAGS - NINJAJOBS --- LFS/master.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/LFS/master.sh b/LFS/master.sh index ba59c1e..562b55f 100644 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -128,9 +128,12 @@ chapter_targets() { # # If using optimizations, write the instructions case "${OPTIMIZE}$1${nb_chaps}${this_script}${REALSBU}" in - 0* | *binutils-pass1y | 15* | 167* | 177*) ;; - *kernel*) wrt_makeflags "$name" ;; # No CFLAGS for kernel - *) wrt_optimize "$name" && wrt_makeflags "$name" ;; + 0* | *binutils-pass1y | 15* | 167* | 177*) + wrt_makeflags "$name" "-j1" "1" ;; + *kernel*) # No CFLAGS for kernel + wrt_makeflags "$name" "$JH_MAKEFLAGS" "$N_PARALLEL" ;; + *) wrt_optimize "$name" && + wrt_makeflags "$name" "$JH_MAKEFLAGS" "$N_PARALLEL" ;; esac fi