summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_openwrt.sh
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2015-07-19 18:31:51 +0200
committerHolger Levsen <holger@layer-acht.org>2015-07-19 18:35:59 +0200
commit3d8040fd2fed98ece467a542728864ef68ae59ef (patch)
treea43f61ab24959a8f9797315a3791171ad68ff1eb /bin/reproducible_openwrt.sh
parent29825ec07f5077bf235f7d8e89b83cd3d8f9a205 (diff)
downloadjenkins.debian.net-3d8040fd2fed98ece467a542728864ef68ae59ef.tar.xz
reproducible openwrt: move options to common variable and add IGNORE_ERRORS=1 again
Diffstat (limited to 'bin/reproducible_openwrt.sh')
-rwxr-xr-xbin/reproducible_openwrt.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 4daa4c3d..621ee73e 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -68,21 +68,23 @@ openwrt_build() {
RUN=$1
TARGET=$2
+ OPTIONS="-j $NUM_CPU IGNORE_ERRORS=1"
+
echo "============================================================================="
echo "$(date -u) - Building OpenWrt ${OPENWRT_VERSION} ($TARGET) - $RUN build run."
echo "============================================================================="
ionice -c 3 nice \
- $MAKE -j $NUM_CPU target/compile
+ $MAKE $OPTIONS target/compile
ionice -c 3 nice \
- $MAKE -j $NUM_CPU package/cleanup
+ $MAKE $OPTIONS package/cleanup
ionice -c 3 nice \
- $MAKE -j $NUM_CPU package/compile || true # don't let some packages fail the whole build
+ $MAKE $OPTIONS package/compile || true # don't let some packages fail the whole build
ionice -c 3 nice \
- $MAKE -j $NUM_CPU package/install
+ $MAKE $OPTIONS package/install
ionice -c 3 nice \
- $MAKE -j $NUM_CPU target/install
+ $MAKE $OPTIONS target/install
ionice -c 3 nice \
- $MAKE -j $NUM_CPU package/index || true # don't let some packages fail the whole build
+ $MAKE $OPTIONS package/index || true # don't let some packages fail the whole build
}
openwrt_cleanup() {