Build performance optimisation
- build on multiple cores
This commit is contained in:
parent
8c947490b5
commit
27012c9439
|
@ -10,6 +10,8 @@
|
|||
# https://github.com/IchthysMaranatha/asterisk-chan-quectel/tree/master/openwrt
|
||||
|
||||
set -x
|
||||
renice -n 19 $$
|
||||
export MAKEOPTS="-j $(nproc)"
|
||||
|
||||
tar -xJf /Downloads/openwrt-sdk-${OPENWRT_VERSION}-*.tar.xz
|
||||
|
||||
|
@ -24,16 +26,16 @@ 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/kmod-nvme/compile
|
||||
make package/kmod-i2c-mux-pinctrl/compile
|
||||
make package/kmod-rtc-pcf85063/compile
|
||||
make package/nvme-cli/compile
|
||||
make package/asterisk-chan-quectel/compile
|
||||
make package/collectd/compile
|
||||
make $MAKEOPTS package/kmod-nvme/compile
|
||||
make $MAKEOPTS package/kmod-i2c-mux-pinctrl/compile
|
||||
make $MAKEOPTS package/kmod-rtc-pcf85063/compile
|
||||
make $MAKEOPTS package/nvme-cli/compile
|
||||
make $MAKEOPTS package/asterisk-chan-quectel/compile
|
||||
make $MAKEOPTS package/collectd/compile
|
||||
|
||||
sdkdir=$(pwd)
|
||||
cd ${pwd}
|
||||
|
@ -50,7 +52,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/local/*.ipk packages/
|
||||
|
||||
make info
|
||||
make $MAKEOPTS info
|
||||
|
||||
# Increase the size of the root partition
|
||||
echo "CONFIG_TARGET_ROOTFS_PARTSIZE=308" >> .config
|
||||
|
@ -132,7 +134,7 @@ sed -i -E 's/^(src imagebuilder file:packages.*)/#\1/
|
|||
# debug
|
||||
cat repositories.conf
|
||||
|
||||
make image PROFILE=${PROFILE} \
|
||||
make $MAKEOPTS image PROFILE=${PROFILE} \
|
||||
PACKAGES="${PACKAGES}" DISABLED_SERVICES="dropbear" FILES="files" || exit 1
|
||||
|
||||
mv ${IMAGE_PATH}-squashfs-factory.img.gz ${IMAGE_PATH}-squashfs-factory-dualeth.img.gz
|
||||
|
@ -141,7 +143,7 @@ mv ${IMAGE_PATH}-squashfs-sysupgrade.img.gz ${IMAGE_PATH}-squashfs-sysupgrade-du
|
|||
sed -i "s|,i2c_csi_dsi||g" ${BOOTSOURCE}/current.txt
|
||||
sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=.*/CONFIG_TARGET_ROOTFS_PARTSIZE=768/g" .config
|
||||
|
||||
make image PROFILE=${PROFILE} \
|
||||
make $MAKEOPTS image PROFILE=${PROFILE} \
|
||||
PACKAGES=" \
|
||||
${PACKAGES} cryptsetup kmod-ata-ahci smartmontools hdparm fdisk parted \
|
||||
kmod-hwmon-drivetemp btrfs-progs kmod-fs-btrfs kmod-nvme nvme-cli \
|
||||
|
@ -163,7 +165,7 @@ popd
|
|||
sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=.*/CONFIG_TARGET_ROOTFS_PARTSIZE=308/g" .config
|
||||
|
||||
|
||||
make image PROFILE=${PROFILE} \
|
||||
make $MAKEOPTS image PROFILE=${PROFILE} \
|
||||
PACKAGES="${PACKAGES} asterisk \
|
||||
asterisk-app-sms asterisk-pjsip asterisk-bridge-simple \
|
||||
asterisk-codec-alaw asterisk-codec-ulaw \
|
||||
|
|
Loading…
Reference in New Issue
Block a user