From a0e659e0cf15812cb0813738cad5a7e60c6e6703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0urda?= Date: Thu, 16 Mar 2023 12:54:00 +0800 Subject: [PATCH] Build performance optimisations --- .buildbot/openwrt/build.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.buildbot/openwrt/build.sh b/.buildbot/openwrt/build.sh index 47b8b93..aadeb27 100755 --- a/.buildbot/openwrt/build.sh +++ b/.buildbot/openwrt/build.sh @@ -11,6 +11,9 @@ set -x +renice -n 19 $$ +export MAKEOPTS="-j $(nproc)" + tar -xJf /Downloads/openwrt-sdk-${OPENWRT_VERSION}-*.tar.xz cp -r feed openwrt-sdk-*/ @@ -24,14 +27,14 @@ cat ${pwd}/feeds.conf >> feeds.conf ./scripts/feeds update -a ./scripts/feeds install -a -make defconfig +make $MAKEOPTS defconfig # Enable collectd network encryption echo "CONFIG_PACKAGE_COLLECTD_ENCRYPTED_NETWORK=y" >> .config -make package/asterisk-chan-quectel/compile -make package/collectd/compile +make $MAKEOPTS package/asterisk-chan-quectel/compile +make $MAKEOPTS package/collectd/compile # no signing key -make package/index +make $MAKEOPTS package/index sdkdir=$(pwd) cd ${pwd} @@ -44,7 +47,7 @@ cp ${sdkdir}/bin/packages/aarch64_cortex-a72/packages/*.ipk packages/ cp ${sdkdir}/bin/packages/aarch64_cortex-a72/telephony/*.ipk packages/ cp ${sdkdir}/bin/packages/aarch64_cortex-a72/quectel/*.ipk packages/ -make info +make $MAKEOPTS info # Increase the size of the root partition echo "CONFIG_TARGET_ROOTFS_PARTSIZE=308" >> .config @@ -97,10 +100,10 @@ PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \ wireguard-tools wget-ssl \ " -make image PROFILE=rpi-4 \ +make $MAKEOPTS image PROFILE=rpi-4 \ PACKAGES="${PACKAGES}" DISABLED_SERVICES="dropbear" FILES="files" -make manifest PROFILE=rpi-4 PACKAGES="${PACKAGES}" +make $MAKEOPTS manifest PROFILE=rpi-4 PACKAGES="${PACKAGES}" out=../../out