openwrt/.buildbot/openwrt/build.sh

31 lines
977 B
Bash
Raw Normal View History

2022-12-16 15:47:27 +00:00
#!/bin/bash
2022-12-21 01:17:43 +00:00
# use imagebuilder
2022-12-16 15:47:27 +00:00
2022-12-21 01:17:43 +00:00
OPENWRT_VERSION=22.03.2
2022-12-17 06:15:23 +00:00
2022-12-21 01:17:43 +00:00
# for i in openwrt-imagebuilder-${OPENWRT_VERSION}-bcm27xx-bcm2711.Linux-x86_64.tar.xz \
# openwrt-sdk-${OPENWRT_VERSION}-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64.tar.xz \
# openwrt-toolchain-${OPENWRT_VERSION}-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64.tar.xz
for i in openwrt-imagebuilder-${OPENWRT_VERSION}-bcm27xx-bcm2711.Linux-x86_64.tar.xz
do
2022-12-21 01:22:28 +00:00
wget -q \
2022-12-21 01:17:43 +00:00
https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/$i || exit 1
done
2022-12-16 15:47:27 +00:00
2022-12-21 01:17:43 +00:00
tar -xJf openwrt-imagebuilder-${OPENWRT_VERSION}-*.tar.xz
cd openwrt-imagebuilder-*/
2022-12-16 15:57:02 +00:00
2022-12-21 01:17:43 +00:00
make info
2022-12-16 15:47:27 +00:00
2022-12-21 01:24:29 +00:00
make image \
PROFILE=rpi-4 \
2022-12-21 01:26:34 +00:00
PACKAGES="kmod-rtc-ds1307 \
asterisk \
2022-12-21 01:26:34 +00:00
asterisk-pjsip asterisk-bridge-simple \
asterisk-codec-alaw asterisk-codec-ulaw \
asterisk-res-rtp-asterisk"
2022-12-21 01:24:29 +00:00
2022-12-21 06:17:29 +00:00
mkdir -p ../out
mv build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/tmp/*.gz ../out