dahdi-linux: package dummy driver
authorDaniel Golle <daniel@makrotopia.org>
Tue, 31 Mar 2015 22:26:15 +0000 (00:26 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 31 Mar 2015 22:26:47 +0000 (00:26 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/dahdi-linux/Makefile
libs/dahdi-linux/patches/050-re-enable-ztdummy.patch [new file with mode: 0644]

index 9823c1bec05ede70ecba9c5f671cf558495227cd..92b5f826ab286504a0a79e6d92259a67f71bb9b6 100644 (file)
@@ -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 (file)
index 0000000..581bea7
--- /dev/null
@@ -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