Build performance optimisations
All checks were successful
buildbot/multibuild_parent Build done.
buildbot/travis_bionic Build done.
buildbot/job/openwrt Build done.

This commit is contained in:
Peter Šurda 2023-03-16 12:54:00 +08:00
parent 90e53ad77b
commit a0e659e0cf
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -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