Added dahdi_tool.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
This commit is contained in:
parent
da9967bd04
commit
031022d3e3
1 changed files with 19 additions and 2 deletions
|
@ -39,6 +39,11 @@ define Package/dahdi-monitor
|
||||||
TITLE:=DAHDI tools dahdi_monitor, dahdi_speed and dahdi_test
|
TITLE:=DAHDI tools dahdi_monitor, dahdi_speed and dahdi_test
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/dahdi-tool
|
||||||
|
$(call Package/dahdi-cfg/Default)
|
||||||
|
TITLE:=DAHDI tools dahdi_tool
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/dahdi-tools-libtonezone
|
define Package/dahdi-tools-libtonezone
|
||||||
$(call Package/dahdi-cfg/Default)
|
$(call Package/dahdi-cfg/Default)
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
|
@ -49,7 +54,13 @@ endef
|
||||||
TARGET_CFLAGS += $(FPIC)
|
TARGET_CFLAGS += $(FPIC)
|
||||||
EXTRA_CFLAGS:= $(TARGET_CPPFLAGS)
|
EXTRA_CFLAGS:= $(TARGET_CPPFLAGS)
|
||||||
|
|
||||||
# dahdi_tool build not included => need libnewt
|
CONFIGURE_ARGS+= \
|
||||||
|
--with-dahdi="$(STAGING_DIR)/usr" \
|
||||||
|
--without-newt \
|
||||||
|
--without-usb \
|
||||||
|
--without-selinux \
|
||||||
|
--without-ppp
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
|
@ -61,7 +72,7 @@ define Build/Compile
|
||||||
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
|
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
|
||||||
DAHDI_INCLUDE="$(STAGING_DIR)/usr/include" \
|
DAHDI_INCLUDE="$(STAGING_DIR)/usr/include" \
|
||||||
CONFIGURE_SILENT="--silent" \
|
CONFIGURE_SILENT="--silent" \
|
||||||
dahdi_cfg dahdi_monitor dahdi_scan dahdi_speed dahdi_test fxotune libs
|
dahdi_cfg dahdi_monitor dahdi_tool dahdi_scan dahdi_speed dahdi_test fxotune libs
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
@ -86,6 +97,11 @@ define Package/dahdi-monitor/install
|
||||||
$(CP) $(PKG_BUILD_DIR)/dahdi_test $(1)/usr/sbin/
|
$(CP) $(PKG_BUILD_DIR)/dahdi_test $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/dahdi-tool/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/dahdi_tool $(1)/usr/sbin/
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/dahdi-tools-libtonezone/install
|
define Package/dahdi-tools-libtonezone/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_BUILD_DIR)/libtonezone.so $(1)/usr/lib/
|
$(CP) $(PKG_BUILD_DIR)/libtonezone.so $(1)/usr/lib/
|
||||||
|
@ -94,4 +110,5 @@ endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,dahdi-cfg))
|
$(eval $(call BuildPackage,dahdi-cfg))
|
||||||
$(eval $(call BuildPackage,dahdi-monitor))
|
$(eval $(call BuildPackage,dahdi-monitor))
|
||||||
|
$(eval $(call BuildPackage,dahdi-tool))
|
||||||
$(eval $(call BuildPackage,dahdi-tools-libtonezone))
|
$(eval $(call BuildPackage,dahdi-tools-libtonezone))
|
||||||
|
|
Loading…
Reference in a new issue