chan-dongle: add variant for asterisk 15

chan-dongle already supports asterisk 15. This commit adds a variant for
it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper 2017-11-23 11:15:58 +01:00
parent 3e7612ec31
commit d4bfeae356

View file

@ -42,11 +42,18 @@ $(call Package/asterisk-chan-dongle/Default)
VARIANT:=asterisk13 VARIANT:=asterisk13
endef endef
define Package/asterisk15-chan-dongle
$(call Package/asterisk-chan-dongle/Default)
DEPENDS+=asterisk15
VARIANT:=asterisk15
endef
define Package/description/Default define Package/description/Default
Asterisk channel driver for Huawei UMTS 3G dongle. Asterisk channel driver for Huawei UMTS 3G dongle.
endef endef
Package/asterisk13-chan-dongle/description = $(Package/description/Default) Package/asterisk13-chan-dongle/description = $(Package/description/Default)
Package/asterisk15-chan-dongle/description = $(Package/description/Default)
ifeq ($(BUILD_VARIANT),asterisk13) ifeq ($(BUILD_VARIANT),asterisk13)
CHAN_DONGLE_AST_HEADERS:=$(STAGING_DIR)/usr/include/asterisk-13/include CHAN_DONGLE_AST_HEADERS:=$(STAGING_DIR)/usr/include/asterisk-13/include
@ -54,6 +61,12 @@ ifeq ($(BUILD_VARIANT),asterisk13)
--with-astversion=13 --with-astversion=13
endif endif
ifeq ($(BUILD_VARIANT),asterisk15)
CHAN_DONGLE_AST_HEADERS:=$(STAGING_DIR)/usr/include/asterisk-15/include
CONFIGURE_ARGS+= \
--with-astversion=15
endif
CONFIGURE_ARGS+= \ CONFIGURE_ARGS+= \
--with-asterisk=$(CHAN_DONGLE_AST_HEADERS) --with-asterisk=$(CHAN_DONGLE_AST_HEADERS)
@ -98,6 +111,7 @@ define Package/conffiles/Default
endef endef
Package/asterisk13-chan-dongle/conffiles = $(Package/conffiles/Default) Package/asterisk13-chan-dongle/conffiles = $(Package/conffiles/Default)
Package/asterisk15-chan-dongle/conffiles = $(Package/conffiles/Default)
define Package/Install/Default define Package/Install/Default
$(INSTALL_DIR) $(1)/etc/asterisk $(INSTALL_DIR) $(1)/etc/asterisk
@ -107,5 +121,7 @@ define Package/Install/Default
endef endef
Package/asterisk13-chan-dongle/install = $(Package/Install/Default) Package/asterisk13-chan-dongle/install = $(Package/Install/Default)
Package/asterisk15-chan-dongle/install = $(Package/Install/Default)
$(eval $(call BuildPackage,asterisk13-chan-dongle)) $(eval $(call BuildPackage,asterisk13-chan-dongle))
$(eval $(call BuildPackage,asterisk15-chan-dongle))