Merge pull request #278 from micmac1/dahdi-linux-flags
Dahdi flags and defines
This commit is contained in:
commit
b47c5d58b9
2 changed files with 16 additions and 34 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 OpenWrt.org
|
# Copyright (C) 2014 - 2018 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=dahdi-linux
|
PKG_NAME:=dahdi-linux
|
||||||
PKG_VERSION:=2.11.1-20180111
|
PKG_VERSION:=2.11.1-20180111
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
#PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/dahdi-linux/releases
|
#PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/dahdi-linux/releases
|
||||||
|
@ -88,8 +88,6 @@ endef
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Prepare
|
||||||
$(Build/Prepare/Default)
|
$(Build/Prepare/Default)
|
||||||
mkdir -p $(PKG_BUILD_DIR)/drivers/staging/echo/
|
mkdir -p $(PKG_BUILD_DIR)/drivers/staging/echo/
|
||||||
|
@ -101,15 +99,8 @@ define Build/Compile
|
||||||
ARCH="$(LINUX_KARCH)" \
|
ARCH="$(LINUX_KARCH)" \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||||
KERNELVERSION="$(KERNEL)" \
|
KSRC="$(LINUX_DIR)" \
|
||||||
KERNEL_VERSION="$(LINUX_VERSION)" \
|
MODULES_EXTRA="$(DAHDI_MODULES_EXTRA)"
|
||||||
KERNELDIR="$(LINUX_DIR)" \
|
|
||||||
KSRC:="$(LINUX_DIR)" \
|
|
||||||
KVERS:="$(LINUX_VERSION)" \
|
|
||||||
TOPDIR:="$(TOPDIR)" \
|
|
||||||
INCLUDE_DIR:="$(INCLUDE_DIR)" \
|
|
||||||
PWD:="$(PKG_BUILD_DIR)" \
|
|
||||||
MODULES_EXTRA:="$(DAHDI_MODULES_EXTRA)"
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 OpenWrt.org
|
# Copyright (C) 2014 - 2018 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=dahdi-tools
|
PKG_NAME:=dahdi-tools
|
||||||
PKG_VERSION:=2.11.1
|
PKG_VERSION:=2.11.1
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
|
PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
|
||||||
|
@ -46,20 +46,12 @@ define Package/dahdi-tools-libtonezone
|
||||||
TITLE:=DAHDI tonezone library
|
TITLE:=DAHDI tonezone library
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
|
||||||
EXTRA_CFLAGS:= $(TARGET_CPPFLAGS)
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
|
||||||
HOSTCC="$(HOSTCC)" \
|
HOSTCC="$(HOSTCC)" \
|
||||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||||
CFLAGS="$(TARGET_CFLAGS) -I. -DBUILDING_TONEZONE -I$(STAGING_DIR)/usr/include" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
KSRC="$(LINUX_DIR)" \
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
||||||
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
|
|
||||||
DAHDI_INCLUDE="$(STAGING_DIR)/usr/include" \
|
|
||||||
CONFIGURE_SILENT="--silent" \
|
|
||||||
dahdi_cfg dahdi_monitor dahdi_scan dahdi_speed dahdi_test fxotune
|
dahdi_cfg dahdi_monitor dahdi_scan dahdi_speed dahdi_test fxotune
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -69,27 +61,26 @@ define Build/InstallDev
|
||||||
$(CP) $(PKG_BUILD_DIR)/.libs/*.a $(1)/usr/lib/
|
$(CP) $(PKG_BUILD_DIR)/.libs/*.a $(1)/usr/lib/
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/include/dahdi
|
$(INSTALL_DIR) $(1)/usr/include/dahdi
|
||||||
$(CP) $(PKG_BUILD_DIR)/tonezone.h $(1)/usr/include/dahdi/
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/tonezone.h $(1)/usr/include/dahdi/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dahdi-cfg/install
|
define Package/dahdi-cfg/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_BUILD_DIR)/.libs/dahdi_cfg $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/dahdi_cfg $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_BUILD_DIR)/dahdi_scan $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_scan $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_BUILD_DIR)/fxotune $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fxotune $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dahdi-monitor/install
|
define Package/dahdi-monitor/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_BUILD_DIR)/dahdi_monitor $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_monitor $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_BUILD_DIR)/dahdi_speed $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_speed $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_BUILD_DIR)/dahdi_test $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_test $(1)/usr/sbin/
|
||||||
endef
|
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)/.libs/libtonezone.so.2.0.0 $(1)/usr/lib/
|
$(CP) $(PKG_BUILD_DIR)/.libs/libtonezone.so* $(1)/usr/lib/
|
||||||
cd $(1)/usr/lib/; ln -s libtonezone.so.2.0.0 libtonezone.so; ln -s libtonezone.so.2.0.0 libtonezone.so.2
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,dahdi-cfg))
|
$(eval $(call BuildPackage,dahdi-cfg))
|
||||||
|
|
Loading…
Reference in a new issue