Compare commits

...

1 Commits

Author SHA1 Message Date
a0e659e0cf
Build performance optimisations
All checks were successful
buildbot/multibuild_parent Build done.
buildbot/travis_bionic Build done.
buildbot/job/openwrt Build done.
2023-03-17 10:54:34 +08:00

View File

@ -11,6 +11,9 @@
set -x set -x
renice -n 19 $$
export MAKEOPTS="-j $(nproc)"
tar -xJf /Downloads/openwrt-sdk-${OPENWRT_VERSION}-*.tar.xz tar -xJf /Downloads/openwrt-sdk-${OPENWRT_VERSION}-*.tar.xz
cp -r feed openwrt-sdk-*/ cp -r feed openwrt-sdk-*/
@ -24,14 +27,14 @@ cat ${pwd}/feeds.conf >> feeds.conf
./scripts/feeds update -a ./scripts/feeds update -a
./scripts/feeds install -a ./scripts/feeds install -a
make defconfig make $MAKEOPTS defconfig
# Enable collectd network encryption # Enable collectd network encryption
echo "CONFIG_PACKAGE_COLLECTD_ENCRYPTED_NETWORK=y" >> .config echo "CONFIG_PACKAGE_COLLECTD_ENCRYPTED_NETWORK=y" >> .config
make package/asterisk-chan-quectel/compile make $MAKEOPTS package/asterisk-chan-quectel/compile
make package/collectd/compile make $MAKEOPTS package/collectd/compile
# no signing key # no signing key
make package/index make $MAKEOPTS package/index
sdkdir=$(pwd) sdkdir=$(pwd)
cd ${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/telephony/*.ipk packages/
cp ${sdkdir}/bin/packages/aarch64_cortex-a72/quectel/*.ipk packages/ cp ${sdkdir}/bin/packages/aarch64_cortex-a72/quectel/*.ipk packages/
make info make $MAKEOPTS info
# Increase the size of the root partition # Increase the size of the root partition
echo "CONFIG_TARGET_ROOTFS_PARTSIZE=308" >> .config echo "CONFIG_TARGET_ROOTFS_PARTSIZE=308" >> .config
@ -97,10 +100,10 @@ PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \
wireguard-tools wget-ssl \ wireguard-tools wget-ssl \
" "
make image PROFILE=rpi-4 \ make $MAKEOPTS image PROFILE=rpi-4 \
PACKAGES="${PACKAGES}" DISABLED_SERVICES="dropbear" FILES="files" PACKAGES="${PACKAGES}" DISABLED_SERVICES="dropbear" FILES="files"
make manifest PROFILE=rpi-4 PACKAGES="${PACKAGES}" make $MAKEOPTS manifest PROFILE=rpi-4 PACKAGES="${PACKAGES}"
out=../../out out=../../out