From 370b9e5741de7ba0c470fb4e9a3d2608c1ca0d42 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 1 Apr 2015 00:26:15 +0200 Subject: [PATCH] dahdi-linux: package dummy driver Signed-off-by: Daniel Golle --- libs/dahdi-linux/Makefile | 15 +++++++++++++++ .../patches/050-re-enable-ztdummy.patch | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 libs/dahdi-linux/patches/050-re-enable-ztdummy.patch diff --git a/libs/dahdi-linux/Makefile b/libs/dahdi-linux/Makefile index 9823c1b..92b5f82 100644 --- a/libs/dahdi-linux/Makefile +++ b/libs/dahdi-linux/Makefile @@ -63,6 +63,20 @@ define KernelPackage/dahdi-hfcs/description This package contains DAHDI driver for HFC-S based PCI BRI adapters. endef +define KernelPackage/dahdi-dummy + SUBMENU:=Voice over IP + TITLE:=dummy DAHDI driver + DEPENDS:=kmod-dahdi + URL:=http://www.asterisk.org/ + FILES:= $(PKG_BUILD_DIR)/drivers/dahdi/dahdi_dummy.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoProbe,dahdi_dummy) +endef + +define KernelPackage/dahdi-dummy/description + This package contains the dummy DAHDI driver providing only DAHDI timing + without any real telephony hardware. +endef + define Build/Configure endef @@ -102,4 +116,5 @@ endef $(eval $(call KernelPackage,dahdi)) $(eval $(call KernelPackage,dahdi-echocan-oslec)) +$(eval $(call KernelPackage,dahdi-dummy)) $(eval $(call KernelPackage,dahdi-hfcs)) diff --git a/libs/dahdi-linux/patches/050-re-enable-ztdummy.patch b/libs/dahdi-linux/patches/050-re-enable-ztdummy.patch new file mode 100644 index 0000000..581bea7 --- /dev/null +++ b/libs/dahdi-linux/patches/050-re-enable-ztdummy.patch @@ -0,0 +1,11 @@ +Index: dahdi-linux-2.10.0.1/drivers/dahdi/Kbuild +=================================================================== +--- dahdi-linux-2.10.0.1.orig/drivers/dahdi/Kbuild ++++ dahdi-linux-2.10.0.1/drivers/dahdi/Kbuild +@@ -1,5 +1,5 @@ + obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI) += dahdi.o +-#obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DUMMY) += dahdi_dummy.o ++obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DUMMY) += dahdi_dummy.o + obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC) += dahdi_dynamic.o + obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_LOC) += dahdi_dynamic_loc.o + obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_ETH) += dahdi_dynamic_eth.o -- 2.30.2