?????linux2.6.21??????????μ????
????1.???????????????????????????USB?????????????????usb(?????????????usb???????usb_drive.c)
????2.???????linux-2.6.35.14/drive/usb/?????裺KERNELDIR = linux-2.6.35.14/drive/usb/??????usb??????KERNEL???
????3.cd  $(KERNELDIR )/usb?? ????Makefile
????vim Makefile
????????????????
????obj-$(CONFIG_RALINK_USB) +=usb_drive.o
????4.????Kconfig
????vim Kconfig
????????????????
config RALINK_USB
tristate "usb drive module"
help
????Enable example usb drive module.
????5.??????????KERNELDIR ????Makefile
????vim ../Makefile
???????β????????????
????obj-$(CONFIG_RALINK_USB)+= usb/
????6.??????????KERNELDIR ????Kconfig
????vim ../Kconfig
???????β????????????
????source "drivers/usb/usb/Kconfig"
????7.???????
#make menuconfig
#make dep
Kernel setting -> Device Drivers->USB support->usb drive module
???????????????y “*”
????8. ???±??????
# make
Type 'y' if it is a built-in module or 'm' if it is a loadable module
The new config flag should be added in /root/linux-2.6.35.14/.config