openwrt/.buildbot/openwrt/build.sh

58 lines
1.6 KiB
Bash
Raw Normal View History

2022-12-16 15:47:27 +00:00
#!/bin/bash
2023-01-02 06:15:57 +00:00
ls -lah /Downloads
# use the SDK to build the module:
# https://github.com/IchthysMaranatha/asterisk-chan-quectel
# The module is for two vendors, the Quectel-EC* and Simcom SIM7600. In
# preparation I bought one of each (EC25EUX and SIM7600G specifically), I don't
# really care if only one will work, then I'll just buy more of that specific
# vendor's model.
# now I noticed there is actually a Makefile for openwrt in the repo already:
# https://github.com/IchthysMaranatha/asterisk-chan-quectel/tree/master/openwrt
2023-01-02 06:09:42 +00:00
tar -xJf /Downloads/openwrt-imagebuilder-${OPENWRT_VERSION}-*.tar.xz
cp -r feed /openwrt/
cp feeds.conf /openwrt/
cd openwrt
git checkout v${OPENWRT_VERSION}
cp ../feeds.conf .
cp ../config.buildinfo .config
./scripts/feeds update -a
./scripts/feeds install -a
export FORCE_UNSAFE_CONFIGURE=1
make defconfig
make tools/install
make toolchain/install
opkg info asterisk-chan-quectel
make package/asterisk-chan-quectel/compile
make package/index
mv bin/*.ipk ../openwrt-imagebuilder-*/packages/
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 \
kmod-usb-net-rtl8152 \
pciutils usbutils \
kmod-usb-net-qmi-wwan libqmi qmi-utils uqmi luci-proto-qmi \
asterisk \
2022-12-21 01:26:34 +00:00
asterisk-pjsip asterisk-bridge-simple \
asterisk-codec-alaw asterisk-codec-ulaw \
asterisk-res-rtp-asterisk kmod-nf-nathelper-extra \
asterisk-chan-quectel"
2022-12-21 01:24:29 +00:00
2022-12-21 06:22:27 +00:00
mkdir -p ../../out
mv build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/tmp/*.gz ../../out