DEPENDS:=@TARGET_x86
KCONFIG:=CONFIG_CS5535_GPIO \
CONFIG_GPIO_CS5535
-ifeq ($(CONFIG_LINUX_2_6_32),y)
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.32)),1)
FILES:=$(LINUX_DIR)/drivers/char/cs5535_gpio.ko
AUTOLOAD:=$(call AutoLoad,50,cs5535_gpio)
else
SUBMENU:=$(OTHER_MENU)
TITLE:=GPIO key support
DEPENDS:= @GPIO_SUPPORT
- KCONFIG:=CONFIG_KEYBOARD_GPIO
+ KCONFIG:= \
+ CONFIG_KEYBOARD_GPIO \
+ CONFIG_INPUT_KEYBOARD=y
FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.ko
AUTOLOAD:=$(call AutoLoad,60,gpio_keys)
$(call AddDepends/input)
$(eval $(call KernelPackage,ledtrig-netfilter))
+define KernelPackage/ledtrig-usbdev
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=LED USB device Trigger
+ DEPENDS:=@USB_SUPPORT +kmod-usb-core
+ KCONFIG:=CONFIG_LEDS_TRIGGER_USBDEV
+ FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-usbdev.ko
+ AUTOLOAD:=$(call AutoLoad,50,ledtrig-usbdev)
+endef
+
+define KernelPackage/ledtrig-usbdev/description
+ Kernel module to drive LEDs based on USB device presence/activity.
+endef
+
+$(eval $(call KernelPackage,ledtrig-usbdev))
+
define KernelPackage/lp
SUBMENU:=$(OTHER_MENU)