Hi I did as you wrote, but when the "make menuconfig" I do not see the item you want in the section "Kernel Modules -> USB Support"
My new patch --- usb.mk.orig Tue Oct 12 12:12:26 2010 +++ usb.mk Tue Oct 12 14:00:53 2010 @@ -259,6 +259,21 @@ endef +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1) +define KernelPackage/usb-serial-wwan + TITLE:=USB Driver layer for GSM modems + KCONFIG:=CONFIG_USB_SERIAL_WWAN + FILES:=$(LINUX_DIR)/drivers/usb/serial/usb_wwan.ko + AUTOLOAD:=$(call AutoLoad,65,usb_wwan) + $(call AddDepends/usb-serial) +endef + +define KernelPackage/usb-serial-wwan/description + Kernel support for GSM modems +endef + +$(eval $(call KernelPackage,usb-serial-wwan)) +else define KernelPackage/usb-serial-airprime TITLE:=Support for Airprime (EVDO) KCONFIG:=CONFIG_USB_SERIAL_AIRPRIME @@ -272,6 +287,7 @@ endef $(eval $(call KernelPackage,usb-serial-airprime)) +endif define KernelPackage/usb-serial-belkin @@ -500,7 +516,12 @@ TITLE:=Support for Option HSDPA modems KCONFIG:=CONFIG_USB_SERIAL_OPTION FILES:=$(LINUX_DIR)/drivers/usb/serial/option.ko + ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1) + DEPENDS:=+kmod-usb-serial-wwan + AUTOLOAD:=$(call AutoLoad,70,option) + else AUTOLOAD:=$(call AutoLoad,65,option) + endif $(call AddDepends/usb-serial) endef @@ -509,6 +530,39 @@ endef $(eval $(call KernelPackage,usb-serial-option)) + + +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1) +define KernelPackage/usb-serial-qcserial + TITLE:=Support for USB Qualcomm Serial modem + KCONFIG:=CONFIG_USB_SERIAL_QUALCOMM + FILES:=$(LINUX_DIR)/drivers/usb/serial/qcserial.ko + DEPENDS:=+kmod-usb-serial-wwan + AUTOLOAD:=$(call AutoLoad,65,qcserial) + $(call AddDepends/usb-serial) +endef + +define KernelPackage/usb-serial-qcserial/description + Kernel support for USB Qualcomm Serial modem +endef + +$(eval $(call KernelPackage,usb-serial-qcserial)) + + +define KernelPackage/usb-serial-garmin_gps + TITLE:=Support for USB Garmin GPS driver + KCONFIG:=CONFIG_USB_SERIAL_GARMIN + FILES:=$(LINUX_DIR)/drivers/usb/serial/garmin_gps.ko + AUTOLOAD:=$(call AutoLoad,65,garmin_gps) + $(call AddDepends/usb-serial) +endef + +define KernelPackage/usb-serial-garmin_gps/description + Kernel support for USB Garmin GPS driver +endef + +$(eval $(call KernelPackage,usb-serial-garmin_gps)) +endif define KernelPackage/usb-storage 2010/10/12 Jo-Philipp Wich <[email protected]> > Hi. > > You should make those changes conditional, we still support older kernels > and this patch will break break some kmods. > > You can either make the new module depend on @LINUX_2_6_35 or wrap the > whole definition into ... > > ifeq ($(strip $(call \ > CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1) > > ... and leave the airprime module in the else branch. > > ~ Jow > _______________________________________________ > openwrt-devel mailing list > [email protected] > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > -------------------------------------------------------------------------- With the best regards, Michael Grigorev NVStat lead developer -------------------------------------------------------------------------- Russia Chelyabinsk WWW: http://novell.chel.ru E-Mail: [email protected] ICQ: 161867489 --------------------------------------------------------------------------
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
