Since kernel 2.6.39, XEN_KBDDEV_FRONTEND was renamed to 
INPUT_XEN_KBDDEV_FRONTEND. See:

  http://cateee.net/lkddb/web-lkddb/INPUT_XEN_KBDDEV_FRONTEND.html
  http://cateee.net/lkddb/web-lkddb/XEN_KBDDEV_FRONTEND.html

Currently, this results in an empty file in BB:

  WARNING: kmod-xen-kbddev is not available in the kernel config - generating 
empty package

Besides renaming the CONFIG_xxx flag, the patch also fixes the module path and 
adds necessary dependencies
in CONFIG_xxx and opkg

Signed-off-by: Luiz Angelo Daros de Luca <[email protected]>
---
 package/kernel/linux/modules/virtual.mk | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/package/kernel/linux/modules/virtual.mk 
b/package/kernel/linux/modules/virtual.mk
index e1bbe3f..add2b21 100644
--- a/package/kernel/linux/modules/virtual.mk
+++ b/package/kernel/linux/modules/virtual.mk
@@ -142,9 +142,13 @@ $(eval $(call KernelPackage,xen-fbdev))
 define KernelPackage/xen-kbddev
   SUBMENU:=$(VIRTUAL_MENU)
   TITLE:=Xen virtual keyboard and mouse
-  DEPENDS:=@TARGET_x86_xen_domu
-  KCONFIG:=CONFIG_XEN_KBDDEV_FRONTEND
-  FILES:=$(LINUX_DIR)/drivers/input/xen-kbdfront.ko
+  DEPENDS:=@TARGET_x86_xen_domu +kmod-input-core
+  KCONFIG:= \
+       CONFIG_INPUT \
+       CONFIG_INPUT_MISC \
+       CONFIG_XEN \
+       CONFIG_INPUT_XEN_KBDDEV_FRONTEND
+  FILES:=$(LINUX_DIR)/drivers/input/misc/xen-kbdfront.ko
   AUTOLOAD:=$(call AutoLoad,08,xen-kbdfront)
 endef
 
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to