[jhalfs] 02/03: master.sh: use the new wrt_makeflags function

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

commit d3dbebe6256d8fc925c8e1fd96cbd75fa76e7bd7
Author: Pierre Labastie <[email protected]>
AuthorDate: Sat May 7 19:26:58 2022 +0200

    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
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.