diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-06-22 04:43:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-06-22 04:43:13 +0000 |
commit | 024f89c53f365a421d1f49f8c39212d572f014b4 (patch) | |
tree | 22018f5dd8ac5c506916138a9ed0695b53e7026d /package/kernel | |
parent | 10a781acf2aa69f2c68808887e6de8e85a3e1acb (diff) | |
download | mtk-20170518-024f89c53f365a421d1f49f8c39212d572f014b4.zip mtk-20170518-024f89c53f365a421d1f49f8c39212d572f014b4.tar.gz mtk-20170518-024f89c53f365a421d1f49f8c39212d572f014b4.tar.bz2 |
kernel version specific fixups for kmod packages
SVN-Revision: 7700
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/modules/usb.mk | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/package/kernel/modules/usb.mk b/package/kernel/modules/usb.mk index 99ff481..18e711e 100644 --- a/package/kernel/modules/usb.mk +++ b/package/kernel/modules/usb.mk @@ -8,12 +8,18 @@ USBMENU:=USB Support -# This is 2.6.22 specific -#ifeq ($(KERNEL),2.4) - USBNET_DIR=usb/net -#else -# USBNET_DIR=net/usb -#endif +ifeq ($(KERNEL),2.4) + USBNET_DIR:=usb/net +endif +ifeq ($(KERNEL_PATCHVER),2.6.21) + USBNET_DIR:=usb/net +endif +USBNET_DIR?=net/usb + +ifeq ($(KERNEL_PATCHVER),2.6.21) + USBHID_DIR:=drivers/usb/input +endif +USBHID_DIR?=drivers/hid/usbhid define usbdep SUBMENU:=$(USBMENU) @@ -400,7 +406,7 @@ define KernelPackage/usb-hid endef define KernelPackage/usb-hid/2.6 - FILES:=$(LINUX_DIR)/drivers/usb/input/usbhid.ko + FILES:=$(LINUX_DIR)/$(USBHID_DIR)/usbhid.ko endef $(eval $(call KernelPackage,usb-hid)) |