Compare commits
No commits in common. "ed3791fe1c4bf0a8ecd430e8da6dd09de17fd66c" and "45739cee6ad802f1dcf05db17364bedfb52496db" have entirely different histories.
ed3791fe1c
...
45739cee6a
|
@ -1,9 +1,6 @@
|
|||
FROM ubuntu:focal
|
||||
|
||||
ENV OPENWRT_VERSION=22.03.2
|
||||
ENV OPENWRT_TARGET=bcm27xx
|
||||
ENV OPENWRT_DEVICE=bcm2711
|
||||
ENV OPENWRT_CC=gcc-11.2.0_musl
|
||||
|
||||
RUN apt -y update
|
||||
|
||||
|
@ -16,12 +13,8 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=UTC \
|
|||
RUN mkdir /Downloads
|
||||
|
||||
RUN wget -qP /Downloads \
|
||||
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/openwrt-imagebuilder-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}.Linux-x86_64.tar.xz"
|
||||
|
||||
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/openwrt-imagebuilder-${OPENWRT_VERSION}-bcm27xx-bcm2711.Linux-x86_64.tar.xz"
|
||||
RUN wget -qP /Downloads \
|
||||
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/openwrt-sdk-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}_${OPENWRT_CC}.Linux-x86_64.tar.xz"
|
||||
|
||||
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/openwrt-sdk-${OPENWRT_VERSION}-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64.tar.xz"
|
||||
RUN wget -qP /Downloads \
|
||||
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/openwrt-toolchain-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}_${OPENWRT_CC}.Linux-x86_64.tar.xz"
|
||||
|
||||
ADD . .
|
||||
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/openwrt-toolchain-${OPENWRT_VERSION}-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64.tar.xz"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
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
|
||||
|
@ -9,53 +11,22 @@
|
|||
# now I noticed there is actually a Makefile for openwrt in the repo already:
|
||||
# https://github.com/IchthysMaranatha/asterisk-chan-quectel/tree/master/openwrt
|
||||
|
||||
tar -xJf /Downloads/openwrt-sdk-${OPENWRT_VERSION}-*.tar.xz
|
||||
|
||||
cp -r feed openwrt-sdk-*/
|
||||
|
||||
pwd=$(pwd)
|
||||
cd openwrt-sdk-*/
|
||||
|
||||
cp feeds.conf.default feeds.conf
|
||||
cat ${pwd}/feeds.conf >> feeds.conf
|
||||
|
||||
./scripts/feeds update -a
|
||||
./scripts/feeds install -a
|
||||
|
||||
make defconfig
|
||||
|
||||
make package/asterisk-chan-quectel/compile
|
||||
# no signing key
|
||||
make package/index
|
||||
|
||||
sdkdir=$(pwd)
|
||||
cd ${pwd}
|
||||
|
||||
tar -xJf /Downloads/openwrt-imagebuilder-${OPENWRT_VERSION}-*.tar.xz
|
||||
|
||||
cd openwrt-imagebuilder-*/
|
||||
cp ${sdkdir}/bin/targets/bcm27xx/bcm2711/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 image \
|
||||
PROFILE=rpi-4 \
|
||||
PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \
|
||||
kmod-usb-audio kmod-usb-net-rtl8152 \
|
||||
alsa-lib pciutils usbutils \
|
||||
PACKAGES="kmod-rtc-ds1307 \
|
||||
kmod-usb-net-rtl8152 \
|
||||
pciutils usbutils \
|
||||
kmod-usb-net-qmi-wwan libqmi qmi-utils uqmi luci-proto-qmi \
|
||||
asterisk \
|
||||
asterisk-app-sms asterisk-pjsip asterisk-bridge-simple \
|
||||
asterisk-codec-alaw asterisk-codec-ulaw \
|
||||
asterisk-res-rtp-asterisk \
|
||||
asterisk-chan-quectel"
|
||||
asterisk-pjsip asterisk-bridge-simple \
|
||||
asterisk-codec-alaw asterisk-codec-ulaw \
|
||||
asterisk-res-rtp-asterisk kmod-nf-nathelper-extra"
|
||||
|
||||
ls -lah packages
|
||||
|
||||
out=../../out
|
||||
|
||||
mkdir -p ${out}
|
||||
mv bin/targets/bcm27xx/bcm2711/*.gz ${out}
|
||||
mv packages ${out}
|
||||
mkdir -p ../../out
|
||||
mv build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/tmp/*.gz ../../out
|
||||
|
|
|
@ -1,74 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2017 - 2023 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=asterisk-chan-quectel
|
||||
PKG_VERSION:=3.6
|
||||
PKG_RELEASE:=3.6
|
||||
|
||||
PKG_SOURCE:=master.zip
|
||||
PKG_SOURCE_URL:=https://github.com/IchthysMaranatha/asterisk-chan-quectel/archive/refs/heads/
|
||||
PKG_CAT:=unzip
|
||||
PKG_HASH:=skip
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-master
|
||||
PKG_MAINTAINER:=Lee Miller <lee.miller@tutanota.com>
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYRIGHT.txt LICENSE.txt
|
||||
|
||||
|
||||
MODULES_DIR:=/usr/lib/asterisk/modules
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
# asterisk-chan-quectel needs iconv
|
||||
include $(INCLUDE_DIR)/nls.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
URL:=https://github.com/IchthysMaranatha/asterisk-chan-quectel
|
||||
DEPENDS:=asterisk $(ICONV_DEPENDS) +kmod-usb-acm +kmod-usb-serial +kmod-usb-serial-option +libusb-1.0 +alsa-lib
|
||||
TITLE:=Asterisk Mobile Telephony Module
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
Asterisk channel driver for mobile telephony.
|
||||
endef
|
||||
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-asterisk=$(STAGING_DIR)/usr/include \
|
||||
--with-astversion=20 \
|
||||
--with-iconv=$(ICONV_PREFIX)/include
|
||||
|
||||
TARGET_CFLAGS+= \
|
||||
-I$(CHAN_quectel_AST_HEADERS)
|
||||
|
||||
MAKE_FLAGS+=LD="$(TARGET_CC)"
|
||||
|
||||
CONFIGURE_VARS += \
|
||||
DESTDIR="$(MODULES_DIR)" \
|
||||
ac_cv_type_size_t=yes \
|
||||
ac_cv_type_ssize_t=yes
|
||||
|
||||
|
||||
define Package/$(PKG_NAME)/conffiles
|
||||
/etc/asterisk/quectel.conf
|
||||
endef
|
||||
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/quectel.conf $(1)/etc/asterisk
|
||||
$(INSTALL_DIR) $(1)$(MODULES_DIR)
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_quectel.so $(1)$(MODULES_DIR)
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
|
@ -1,2 +0,0 @@
|
|||
|
||||
src-link quectel ../feed
|
Loading…
Reference in New Issue
Block a user