技术开发 频道

史上最经典的Linux内核学习方法论

  很显然这个选项是有关SanDisk产品的,并且针对的是SM卡,同样不是U盘,所以我们也不需要去关注。

  事实上,很容易确定,只有选项CONFIG_USB_STORAGE才是我们真正需要关注的。

9 config USB_STORAGE

10 tristate "USB Mass Storage support"

11 depends on USB && SCSI

12 ---help---

13 Say Y here if you want to connect USB mass storage devices to your

14 computer's USB port. This is the driver you need for USB

15 floppy drives, USB hard disks, USB tape drives, USB CD-ROMs,

16 USB flash devices, and memory sticks, along with

17 similar devices. This driver may also be used for some cameras

18 and card readers.

19

20 This option depends on 'SCSI' support being enabled, but you

21 probably also need 'SCSI device support: SCSI disk support'

22 (BLK_DEV_SD) for most USB storage devices.

23

24 To compile this driver as a module, choose M here: the

25 module will be called usb-storage.

  接下来阅读Makefile文件。

0 #

1 # Makefile for the USB Mass Storage device drivers.

2 #

3 # 15 Aug 2000, Christoph Hellwig

4 # Rewritten to use lists instead of if-statements.

5 #

6

7 EXTRA_CFLAGS := -Idrivers/scsi

8

9 obj-$(CONFIG_USB_STORAGE) += usb-storage.o

10

11 usb-storage-obj-$(CONFIG_USB_STORAGE_DEBUG) += debug.o

12 usb-storage-obj-$(CONFIG_USB_STORAGE_USBAT) += shuttle_usbat.o

13 usb-storage-obj-$(CONFIG_USB_STORAGE_SDDR09) += sddr09.o

14 usb-storage-obj-$(CONFIG_USB_STORAGE_SDDR55) += sddr55.o

15 usb-storage-obj-$(CONFIG_USB_STORAGE_FREECOM) += freecom.o

16 usb-storage-obj-$(CONFIG_USB_STORAGE_DPCM) += dpcm.o

17 usb-storage-obj-$(CONFIG_USB_STORAGE_ISD200) += isd200.o

18 usb-storage-obj-$(CONFIG_USB_STORAGE_DATAFAB) += datafab.o

19 usb-storage-obj-$(CONFIG_USB_STORAGE_JUMPSHOT) += jumpshot.o

20 usb-storage-obj-$(CONFIG_USB_STORAGE_ALAUDA) += alauda.o

21 usb-storage-obj-$(CONFIG_USB_STORAGE_ONETOUCH) += onetouch.o

22 usb-storage-obj-$(CONFIG_USB_STORAGE_KARMA) += karma.o

23

24 usb-storage-objs := scsiglue.o protocol.o transport.o usb.o \

25 initializers.o $(usb-storage-obj-y)

26

27 ifneq ($(CONFIG_USB_LIBUSUAL),)

28 obj-$(CONFIG_USB) += libusual.o

29 endif
6
相关文章