From a2710a9eff4e127bdcd920426a9a575c96e3bcf9 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 27 May 2007 18:51:50 +0000 Subject: [PATCH] Add yealink usb phone kernel packages SVN-Revision: 7359 --- package/kernel/modules/other.mk | 21 +++++++++++++++++++++ package/kernel/modules/usb.mk | 14 ++++++++++++++ target/linux/generic-2.6/config-template | 2 +- 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk index d7bdf0f428ad..c8ee64228aa4 100644 --- a/package/kernel/modules/other.mk +++ b/package/kernel/modules/other.mk @@ -358,3 +358,24 @@ define KernelPackage/hwmon-pc87360 AUTOLOAD:=$(call AutoLoad,50,pc87360) endef $(eval $(call KernelPackage,hwmon-pc87360)) + +define KernelPackage/input-core + TITLE:=Input device core + DESCRIPTION:=Kernel modules for support of input device + SUBMENU:=$(EMENU) + KCONFIG:=$(CONFIG_INPUT) + FILES:=$(LINUX_DIR)/drivers/input/input-core.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,50,input-core) +endef +$(eval $(call KernelPackage,input-core)) + +define KernelPackage/input-evdev + TITLE:=Input even device + DESCRIPTION:=Kernel modules for support of input device events + SUBMENU:=$(EMENU) + KCONFIG:=$(CONFIG_INPUT_EVDEV) + FILES:=$(LINUX_DIR)/drivers/input/evdev.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,60,evdev) +endef +$(eval $(call KernelPackage,input-evdev)) + diff --git a/package/kernel/modules/usb.mk b/package/kernel/modules/usb.mk index b7d5cc4dadc5..4f41294330be 100644 --- a/package/kernel/modules/usb.mk +++ b/package/kernel/modules/usb.mk @@ -331,3 +331,17 @@ define KernelPackage/usb-net-asix/2.6 endef $(eval $(call KernelPackage,usb-net-asix)) + + +define KernelPackage/usb-yealink + $(call usbdep,@LINUX_2_6) + TITLE:=USB Yealink VOIP phone + DESCRIPTION:=Kernel support for Yealink VOIP phone + KCONFIG:=$(CONFIG_USB_YEALINK) + FILES:=$(LINUX_DIR)/drivers/usb/input/yealink.ko + AUTOLOAD:=$(call AutoLoad,70,yealink) + DEPENDS:=kmod-input-core kmod-input-evdev +endef +$(eval $(call KernelPackage,usb-yealink)) + + diff --git a/target/linux/generic-2.6/config-template b/target/linux/generic-2.6/config-template index 949d750a9183..751f96d149b0 100644 --- a/target/linux/generic-2.6/config-template +++ b/target/linux/generic-2.6/config-template @@ -1469,7 +1469,7 @@ CONFIG_USB_USBNET_MII=m # CONFIG_USB_WACOM is not set # CONFIG_USB_XPAD is not set # CONFIG_USB_XUSBATM is not set -# CONFIG_USB_YEALINK is not set +CONFIG_USB_YEALINK=m CONFIG_USB_ZD1201=m # CONFIG_UTS_NS is not set CONFIG_VFAT_FS=m -- 2.30.2