package/kernel: use macros for hid & input

SVN-Revision: 21120
owl
Nicolas Thill 2010-04-24 11:01:06 +00:00
parent d0883b82a4
commit e9dcaa6a13
4 changed files with 41 additions and 11 deletions

View File

@ -16,6 +16,25 @@ define AddDepends/crc16
endef endef
define SetDepends/hid
DEPENDS:= @!TARGET_x86
endef
define AddDepends/hid
DEPENDS+= +!TARGET_x86:kmod-hid
endef
define SetDepends/input
DEPENDS:= @!TARGET_x86
endef
define AddDepends/input
DEPENDS+= +!TARGET_x86:kmod-input-core
endef
define SetDepends/rfkill define SetDepends/rfkill
DEPENDS:= @(TARGET_ar71xx||TARGET_brcm47xx||TARGET_s3c24xx||TARGET_x86) DEPENDS:= @(TARGET_ar71xx||TARGET_brcm47xx||TARGET_s3c24xx||TARGET_x86)
endef endef

View File

@ -262,7 +262,7 @@ $(eval $(call KernelPackage,ssb))
define KernelPackage/bluetooth define KernelPackage/bluetooth
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=Bluetooth support TITLE:=Bluetooth support
DEPENDS:=@USB_SUPPORT +kmod-usb-core +!TARGET_x86:kmod-hid DEPENDS:=@USB_SUPPORT +kmod-usb-core
KCONFIG:= \ KCONFIG:= \
CONFIG_BLUEZ \ CONFIG_BLUEZ \
CONFIG_BLUEZ_L2CAP \ CONFIG_BLUEZ_L2CAP \
@ -282,6 +282,7 @@ define KernelPackage/bluetooth
CONFIG_BT_HCIUART \ CONFIG_BT_HCIUART \
CONFIG_BT_HIDP CONFIG_BT_HIDP
$(call AddDepends/crc16) $(call AddDepends/crc16)
$(call AddDepends/hid)
$(call AddDepends/rfkill) $(call AddDepends/rfkill)
endef endef
@ -654,10 +655,11 @@ $(eval $(call KernelPackage,sc520-wdt))
define KernelPackage/input-core define KernelPackage/input-core
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=Input device core TITLE:=Input device core
DEPENDS:=@LINUX_2_6 @!TARGET_x86 DEPENDS:=@LINUX_2_6
KCONFIG:=CONFIG_INPUT KCONFIG:=CONFIG_INPUT
FILES:=$(LINUX_DIR)/drivers/input/input-core.$(LINUX_KMOD_SUFFIX) FILES:=$(LINUX_DIR)/drivers/input/input-core.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,19,input-core) AUTOLOAD:=$(call AutoLoad,19,input-core)
$(call SetDepends/input)
endef endef
define KernelPackage/input-core/description define KernelPackage/input-core/description
@ -670,10 +672,10 @@ $(eval $(call KernelPackage,input-core))
define KernelPackage/input-evdev define KernelPackage/input-evdev
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=Input event device TITLE:=Input event device
DEPENDS:=+!TARGET_x86:kmod-input-core
KCONFIG:=CONFIG_INPUT_EVDEV KCONFIG:=CONFIG_INPUT_EVDEV
FILES:=$(LINUX_DIR)/drivers/input/evdev.$(LINUX_KMOD_SUFFIX) FILES:=$(LINUX_DIR)/drivers/input/evdev.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,60,evdev) AUTOLOAD:=$(call AutoLoad,60,evdev)
$(call AddDepends/input)
endef endef
define KernelPackage/input-evdev/description define KernelPackage/input-evdev/description
@ -686,10 +688,12 @@ $(eval $(call KernelPackage,input-evdev))
define KernelPackage/hid define KernelPackage/hid
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=HID Devices TITLE:=HID Devices
DEPENDS:=+kmod-input-core +kmod-input-evdev @!TARGET_x86 DEPENDS:=+kmod-input-evdev
KCONFIG:=CONFIG_HID KCONFIG:=CONFIG_HID
FILES:=$(LINUX_DIR)/drivers/hid/hid.$(LINUX_KMOD_SUFFIX) FILES:=$(LINUX_DIR)/drivers/hid/hid.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,61,hid) AUTOLOAD:=$(call AutoLoad,61,hid)
$(call SetDepends/hid)
$(call AddDepends/input)
endef endef
define KernelPackage/hid/description define KernelPackage/hid/description
@ -702,10 +706,11 @@ $(eval $(call KernelPackage,hid))
define KernelPackage/input-polldev define KernelPackage/input-polldev
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=Polled Input device support TITLE:=Polled Input device support
DEPENDS:=+!TARGET_x86:kmod-input-core @LINUX_2_6 DEPENDS:=@LINUX_2_6
KCONFIG:=CONFIG_INPUT_POLLDEV KCONFIG:=CONFIG_INPUT_POLLDEV
FILES:=$(LINUX_DIR)/drivers/input/input-polldev.$(LINUX_KMOD_SUFFIX) FILES:=$(LINUX_DIR)/drivers/input/input-polldev.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,20,input-polldev) AUTOLOAD:=$(call AutoLoad,20,input-polldev)
$(call AddDepends/input)
endef endef
define KernelPackage/input-polldev/description define KernelPackage/input-polldev/description
@ -718,10 +723,11 @@ $(eval $(call KernelPackage,input-polldev))
define KernelPackage/input-gpio-keys define KernelPackage/input-gpio-keys
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=GPIO key support TITLE:=GPIO key support
DEPENDS:= @GPIO_SUPPORT +!TARGET_x86:kmod-input-core DEPENDS:= @GPIO_SUPPORT
KCONFIG:=CONFIG_KEYBOARD_GPIO KCONFIG:=CONFIG_KEYBOARD_GPIO
FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.$(LINUX_KMOD_SUFFIX) FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,60,gpio_keys) AUTOLOAD:=$(call AutoLoad,60,gpio_keys)
$(call AddDepends/input)
endef endef
define KernelPackage/input-gpio-keys/description define KernelPackage/input-gpio-keys/description
@ -752,10 +758,10 @@ $(eval $(call KernelPackage,input-gpio-buttons))
define KernelPackage/input-joydev define KernelPackage/input-joydev
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=Joystick device support TITLE:=Joystick device support
DEPENDS:=+!TARGET_x86:kmod-input-core
KCONFIG:=CONFIG_INPUT_JOYDEV KCONFIG:=CONFIG_INPUT_JOYDEV
FILES:=$(LINUX_DIR)/drivers/input/joydev.$(LINUX_KMOD_SUFFIX) FILES:=$(LINUX_DIR)/drivers/input/joydev.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,62,joydev) AUTOLOAD:=$(call AutoLoad,62,joydev)
$(call AddDepends/input)
endef endef
define KernelPackage/input-joydev/description define KernelPackage/input-joydev/description

View File

@ -10,7 +10,7 @@ SOUND_MENU:=Sound Support
define KernelPackage/sound-core define KernelPackage/sound-core
SUBMENU:=$(SOUND_MENU) SUBMENU:=$(SOUND_MENU)
TITLE:=Sound support TITLE:=Sound support
DEPENDS:=@AUDIO_SUPPORT +!TARGET_x86:kmod-input-core DEPENDS:=@AUDIO_SUPPORT
KCONFIG:= \ KCONFIG:= \
CONFIG_SOUND \ CONFIG_SOUND \
CONFIG_SND \ CONFIG_SND \
@ -26,6 +26,7 @@ define KernelPackage/sound-core
CONFIG_SND_PCM_OSS \ CONFIG_SND_PCM_OSS \
CONFIG_SND_MIXER_OSS \ CONFIG_SND_MIXER_OSS \
CONFIG_SOUND_OSS_CORE_PRECLAIM=y CONFIG_SOUND_OSS_CORE_PRECLAIM=y
$(call AddDepends/input)
endef endef
define KernelPackage/sound-core/2.4 define KernelPackage/sound-core/2.4

View File

@ -814,11 +814,13 @@ $(eval $(call KernelPackage,usb-net-rndis))
define KernelPackage/usb-hid define KernelPackage/usb-hid
$(call KernelPackage/usb/Depends,@LINUX_2_6 +!TARGET_x86:kmod-input-core +kmod-input-evdev +!TARGET_x86:kmod-hid) $(call KernelPackage/usb/Depends,@LINUX_2_6 +kmod-input-evdev)
TITLE:=Support for USB Human Input Devices TITLE:=Support for USB Human Input Devices
KCONFIG:=CONFIG_HID_SUPPORT=y CONFIG_USB_HID KCONFIG:=CONFIG_HID_SUPPORT=y CONFIG_USB_HID
FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko
AUTOLOAD:=$(call AutoLoad,70,usbhid) AUTOLOAD:=$(call AutoLoad,70,usbhid)
$(call AddDepends/hid)
$(call AddDepends/input)
endef endef
@ -830,11 +832,12 @@ $(eval $(call KernelPackage,usb-hid))
define KernelPackage/usb-yealink define KernelPackage/usb-yealink
$(call KernelPackage/usb/Depends,@LINUX_2_6 +!TARGET_x86:kmod-input-core +kmod-input-evdev) $(call KernelPackage/usb/Depends,@LINUX_2_6 +kmod-input-evdev)
TITLE:=USB Yealink VOIP phone TITLE:=USB Yealink VOIP phone
KCONFIG:=CONFIG_USB_YEALINK CONFIG_INPUT_YEALINK CONFIG_INPUT=m CONFIG_INPUT_MISC=y KCONFIG:=CONFIG_USB_YEALINK CONFIG_INPUT_YEALINK CONFIG_INPUT=m CONFIG_INPUT_MISC=y
FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/yealink.ko FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/yealink.ko
AUTOLOAD:=$(call AutoLoad,70,yealink) AUTOLOAD:=$(call AutoLoad,70,yealink)
$(call AddDepends/input)
endef endef
define KernelPackage/usb-yealink/description define KernelPackage/usb-yealink/description
@ -845,11 +848,12 @@ $(eval $(call KernelPackage,usb-yealink))
define KernelPackage/usb-cm109 define KernelPackage/usb-cm109
$(call KernelPackage/usb/Depends,@LINUX_2_6 +!TARGET_x86:kmod-input-core +kmod-input-evdev) $(call KernelPackage/usb/Depends,@LINUX_2_6 +kmod-input-evdev)
TITLE:=Support for CM109 device TITLE:=Support for CM109 device
KCONFIG:=CONFIG_USB_CM109 CONFIG_INPUT_CM109 CONFIG_INPUT=m CONFIG_INPUT_MISC=y KCONFIG:=CONFIG_USB_CM109 CONFIG_INPUT_CM109 CONFIG_INPUT=m CONFIG_INPUT_MISC=y
FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/cm109.ko FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/cm109.ko
AUTOLOAD:=$(call AutoLoad,70,cm109) AUTOLOAD:=$(call AutoLoad,70,cm109)
$(call AddDepends/input)
endef endef
define KernelPackage/usb-cm109/description define KernelPackage/usb-cm109/description