summaryrefslogtreecommitdiff
path: root/scripts/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-xscripts/build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 23d0ea1..f7c7a2d 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -1,6 +1,7 @@
#!/bin/bash -e
taskdir=${TOOLCHAIN_BUILD}/etc/tasks
+export _maxjobs=$(getconf _NPROCESSORS_ONLN)
if [[ ! -d ${taskdir} ]]; then
echo "No tasks. ${taskdir} does not exist."
@@ -16,4 +17,9 @@ do
fi
echo "Executing: ${task}"
${task}
+ retval=$?
+ if [[ ${retval} != 0 ]]; then
+ echo "TASK FAILED: ${task}"
+ exit ${retval}
+ fi
done