master.sh: use the new wrt_makeflags function

It now take three arguments:
- name of the package
- MAKEFLAGS
- NINJAJOBS
This commit is contained in:
Pierre Labastie 2022-05-07 19:26:58 +02:00
parent 86debb00ea
commit d3dbebe625

View file

@ -128,9 +128,12 @@ chapter_targets() { #
# If using optimizations, write the instructions # If using optimizations, write the instructions
case "${OPTIMIZE}$1${nb_chaps}${this_script}${REALSBU}" in case "${OPTIMIZE}$1${nb_chaps}${this_script}${REALSBU}" in
0* | *binutils-pass1y | 15* | 167* | 177*) ;; 0* | *binutils-pass1y | 15* | 167* | 177*)
*kernel*) wrt_makeflags "$name" ;; # No CFLAGS for kernel wrt_makeflags "$name" "-j1" "1" ;;
*) wrt_optimize "$name" && wrt_makeflags "$name" ;; *kernel*) # No CFLAGS for kernel
wrt_makeflags "$name" "$JH_MAKEFLAGS" "$N_PARALLEL" ;;
*) wrt_optimize "$name" &&
wrt_makeflags "$name" "$JH_MAKEFLAGS" "$N_PARALLEL" ;;
esac esac
fi fi