[PATCH 5/5] MAKEALL: consolidate -j${JOBS} argument

Masahiro Yamada yamada.m at jp.panasonic.com
Tue Feb 3 02:14:48 PST 2015


This argument is common in configuration and compilation.
Move it to ${MAKE}.

Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---

 MAKEALL | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/MAKEALL b/MAKEALL
index a4428fa..909e170 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -108,8 +108,8 @@ do_build_target() {
 		fi
 	fi
 
-	MAKE="make CROSS_COMPILE=${cross_compile} ARCH=${arch} O=${BUILDDIR}"
-	${MAKE} -j${JOBS} ${target} 2>&1 > "${log_report}" | tee "${log_err}"
+	MAKE="make -j${JOBS} CROSS_COMPILE=${cross_compile} ARCH=${arch} O=${BUILDDIR}"
+	${MAKE} ${target} 2>&1 > "${log_report}" | tee "${log_err}"
 
 	check_pipe_status
 	result="$?"
@@ -119,7 +119,7 @@ do_build_target() {
 	if [ "$result" = "0" ]; then
 		printf "OK     \n" | tee -a "${log_report}"
 
-		${MAKE} -j${JOBS} -s 2>&1 >> "${log_report}" | tee -a "${log_err}"
+		${MAKE} -s 2>&1 >> "${log_report}" | tee -a "${log_err}"
 
 		check_pipe_status
 		result="$?"
-- 
1.9.1




More information about the barebox mailing list