dahdi-linux: package dummy driver

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2015-04-01 00:26:15 +02:00
parent 6a5771b9e3
commit 370b9e5741
2 changed files with 26 additions and 0 deletions

View 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))

View file

@ -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