block.mk 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. #
  2. # Copyright (C) 2006-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. BLOCK_MENU:=Block Devices
  8. define KernelPackage/aoe
  9. SUBMENU:=$(BLOCK_MENU)
  10. TITLE:=ATA over Ethernet support
  11. KCONFIG:=CONFIG_ATA_OVER_ETH
  12. FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.ko
  13. AUTOLOAD:=$(call AutoLoad,30,aoe)
  14. endef
  15. define KernelPackage/aoe/description
  16. Kernel support for ATA over Ethernet
  17. endef
  18. $(eval $(call KernelPackage,aoe))
  19. define KernelPackage/ata-core
  20. SUBMENU:=$(BLOCK_MENU)
  21. TITLE:=Serial and Parallel ATA support
  22. DEPENDS:=@PCI_SUPPORT +kmod-scsi-core
  23. KCONFIG:=CONFIG_ATA
  24. FILES:=$(LINUX_DIR)/drivers/ata/libata.ko
  25. endef
  26. $(eval $(call KernelPackage,ata-core))
  27. define AddDepends/ata
  28. SUBMENU:=$(BLOCK_MENU)
  29. DEPENDS+=kmod-ata-core $(1)
  30. endef
  31. define KernelPackage/ata-ahci
  32. TITLE:=AHCI Serial ATA support
  33. KCONFIG:=CONFIG_SATA_AHCI
  34. FILES:= \
  35. $(LINUX_DIR)/drivers/ata/ahci.ko \
  36. $(LINUX_DIR)/drivers/ata/libahci.ko
  37. AUTOLOAD:=$(call AutoLoad,41,libahci ahci,1)
  38. $(call AddDepends/ata)
  39. endef
  40. define KernelPackage/ata-ahci/description
  41. Support for AHCI Serial ATA controllers
  42. endef
  43. $(eval $(call KernelPackage,ata-ahci))
  44. define KernelPackage/ata-artop
  45. TITLE:=ARTOP 6210/6260 PATA support
  46. KCONFIG:=CONFIG_PATA_ARTOP
  47. FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.ko
  48. AUTOLOAD:=$(call AutoLoad,41,pata_artop,1)
  49. $(call AddDepends/ata)
  50. endef
  51. define KernelPackage/ata-artop/description
  52. PATA support for ARTOP 6210/6260 host controllers
  53. endef
  54. $(eval $(call KernelPackage,ata-artop))
  55. define KernelPackage/ata-imx
  56. TITLE:=Freescale i.MX AHCI SATA support
  57. DEPENDS:=@TARGET_imx6
  58. KCONFIG:=\
  59. CONFIG_AHCI_IMX \
  60. CONFIG_SATA_AHCI_PLATFORM \
  61. CONFIG_PATA_IMX=n
  62. FILES:=$(LINUX_DIR)/drivers/ata/ahci_imx.ko
  63. AUTOLOAD:=$(call AutoLoad,41,ahci_imx,1)
  64. $(call AddDepends/ata)
  65. endef
  66. define KernelPackage/ata-imx/description
  67. SATA support for the Freescale i.MX6 SoC's onboard AHCI SATA
  68. endef
  69. $(eval $(call KernelPackage,ata-imx))
  70. define KernelPackage/ata-marvell-sata
  71. TITLE:=Marvell Serial ATA support
  72. KCONFIG:=CONFIG_SATA_MV
  73. FILES:=$(LINUX_DIR)/drivers/ata/sata_mv.ko
  74. AUTOLOAD:=$(call AutoLoad,41,sata_mv,1)
  75. $(call AddDepends/ata)
  76. endef
  77. define KernelPackage/ata-marvell-sata/description
  78. SATA support for marvell chipsets
  79. endef
  80. $(eval $(call KernelPackage,ata-marvell-sata))
  81. define KernelPackage/ata-nvidia-sata
  82. TITLE:=Nvidia Serial ATA support
  83. KCONFIG:=CONFIG_SATA_NV
  84. FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.ko
  85. AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
  86. $(call AddDepends/ata)
  87. endef
  88. $(eval $(call KernelPackage,ata-nvidia-sata))
  89. define KernelPackage/ata-oxnas-sata
  90. TITLE:=oxnas Serial ATA support
  91. KCONFIG:=CONFIG_SATA_OXNAS
  92. DEPENDS:=@TARGET_oxnas
  93. FILES:=$(LINUX_DIR)/drivers/ata/sata_oxnas.ko
  94. AUTOLOAD:=$(call AutoLoad,41,sata_oxnas,1)
  95. $(call AddDepends/ata)
  96. endef
  97. define KernelPackage/ata-oxnas-sata/description
  98. SATA support for OX934 core found in the OX82x/PLX782x SoCs
  99. endef
  100. $(eval $(call KernelPackage,ata-oxnas-sata))
  101. define KernelPackage/ata-pdc202xx-old
  102. SUBMENU:=$(BLOCK_MENU)
  103. TITLE:=Older Promise PATA controller support
  104. DEPENDS:=kmod-ata-core
  105. KCONFIG:= \
  106. CONFIG_ATA_SFF=y \
  107. CONFIG_PATA_PDC_OLD
  108. FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
  109. AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
  110. endef
  111. define KernelPackage/ata-pdc202xx-old/description
  112. This option enables support for the Promise 20246, 20262, 20263,
  113. 20265 and 20267 adapters
  114. endef
  115. $(eval $(call KernelPackage,ata-pdc202xx-old))
  116. define KernelPackage/ata-piix
  117. TITLE:=Intel PIIX PATA/SATA support
  118. KCONFIG:=CONFIG_ATA_PIIX
  119. FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.ko
  120. AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
  121. $(call AddDepends/ata)
  122. endef
  123. define KernelPackage/ata-piix/description
  124. SATA support for Intel ICH5/6/7/8 series host controllers and
  125. PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers
  126. endef
  127. $(eval $(call KernelPackage,ata-piix))
  128. define KernelPackage/ata-sil
  129. TITLE:=Silicon Image SATA support
  130. KCONFIG:=CONFIG_SATA_SIL
  131. FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.ko
  132. AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
  133. $(call AddDepends/ata)
  134. endef
  135. define KernelPackage/ata-sil/description
  136. Support for Silicon Image Serial ATA controllers
  137. endef
  138. $(eval $(call KernelPackage,ata-sil))
  139. define KernelPackage/ata-sil24
  140. TITLE:=Silicon Image 3124/3132 SATA support
  141. KCONFIG:=CONFIG_SATA_SIL24
  142. FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.ko
  143. AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
  144. $(call AddDepends/ata)
  145. endef
  146. define KernelPackage/ata-sil24/description
  147. Support for Silicon Image 3124/3132 Serial ATA controllers
  148. endef
  149. $(eval $(call KernelPackage,ata-sil24))
  150. define KernelPackage/ata-via-sata
  151. TITLE:=VIA SATA support
  152. KCONFIG:=CONFIG_SATA_VIA
  153. FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
  154. AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
  155. $(call AddDepends/ata)
  156. endef
  157. define KernelPackage/ata-via-sata/description
  158. This option enables support for VIA Serial ATA
  159. endef
  160. $(eval $(call KernelPackage,ata-via-sata))
  161. define KernelPackage/block2mtd
  162. SUBMENU:=$(BLOCK_MENU)
  163. TITLE:=Block device MTD emulation
  164. KCONFIG:=CONFIG_MTD_BLOCK2MTD
  165. FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
  166. endef
  167. $(eval $(call KernelPackage,block2mtd))
  168. define KernelPackage/dm
  169. SUBMENU:=$(BLOCK_MENU)
  170. TITLE:=Device Mapper
  171. DEPENDS:=+kmod-crypto-manager
  172. # All the "=n" are unnecessary, they're only there
  173. # to stop the config from asking the question.
  174. # MIRROR is M because I've needed it for pvmove.
  175. KCONFIG:= \
  176. CONFIG_BLK_DEV_MD=n \
  177. CONFIG_DM_DEBUG=n \
  178. CONFIG_DM_UEVENT=n \
  179. CONFIG_DM_DELAY=n \
  180. CONFIG_DM_MULTIPATH=n \
  181. CONFIG_DM_ZERO=n \
  182. CONFIG_DM_SNAPSHOT=n \
  183. CONFIG_DM_LOG_USERSPACE=n \
  184. CONFIG_MD=y \
  185. CONFIG_BLK_DEV_DM \
  186. CONFIG_DM_CRYPT \
  187. CONFIG_DM_MIRROR
  188. FILES:=$(LINUX_DIR)/drivers/md/dm-*.ko
  189. AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
  190. endef
  191. define KernelPackage/dm/description
  192. Kernel module necessary for LVM2 support
  193. endef
  194. $(eval $(call KernelPackage,dm))
  195. define KernelPackage/md-mod
  196. SUBMENU:=$(BLOCK_MENU)
  197. TITLE:=MD RAID
  198. KCONFIG:= \
  199. CONFIG_MD=y \
  200. CONFIG_BLK_DEV_MD=m \
  201. CONFIG_MD_AUTODETECT=y \
  202. CONFIG_MD_FAULTY=n
  203. FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
  204. AUTOLOAD:=$(call AutoLoad,27,md-mod)
  205. endef
  206. define KernelPackage/md-mod/description
  207. Kernel RAID md module (md-mod.ko).
  208. You will need to select at least one RAID level module below.
  209. endef
  210. $(eval $(call KernelPackage,md-mod))
  211. define KernelPackage/md/Depends
  212. SUBMENU:=$(BLOCK_MENU)
  213. DEPENDS:=kmod-md-mod $(1)
  214. endef
  215. define KernelPackage/md-linear
  216. $(call KernelPackage/md/Depends,)
  217. TITLE:=RAID Linear Module
  218. KCONFIG:=CONFIG_MD_LINEAR
  219. FILES:=$(LINUX_DIR)/drivers/md/linear.ko
  220. AUTOLOAD:=$(call AutoLoad,28,linear)
  221. endef
  222. define KernelPackage/md-linear/description
  223. RAID "Linear" or "Append" driver module (linear.ko)
  224. endef
  225. $(eval $(call KernelPackage,md-linear))
  226. define KernelPackage/md-raid0
  227. $(call KernelPackage/md/Depends,)
  228. TITLE:=RAID0 Module
  229. KCONFIG:=CONFIG_MD_RAID0
  230. FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
  231. AUTOLOAD:=$(call AutoLoad,28,raid0)
  232. endef
  233. define KernelPackage/md-raid0/description
  234. RAID Level 0 (Striping) driver module (raid0.ko)
  235. endef
  236. $(eval $(call KernelPackage,md-raid0))
  237. define KernelPackage/md-raid1
  238. $(call KernelPackage/md/Depends,)
  239. TITLE:=RAID1 Module
  240. KCONFIG:=CONFIG_MD_RAID1
  241. FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
  242. AUTOLOAD:=$(call AutoLoad,28,raid1)
  243. endef
  244. define KernelPackage/md-raid1/description
  245. RAID Level 1 (Mirroring) driver (raid1.ko)
  246. endef
  247. $(eval $(call KernelPackage,md-raid1))
  248. define KernelPackage/md-raid10
  249. $(call KernelPackage/md/Depends,)
  250. TITLE:=RAID10 Module
  251. KCONFIG:=CONFIG_MD_RAID10
  252. FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
  253. AUTOLOAD:=$(call AutoLoad,28,raid10)
  254. endef
  255. define KernelPackage/md-raid10/description
  256. RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
  257. endef
  258. $(eval $(call KernelPackage,md-raid10))
  259. define KernelPackage/md-raid456
  260. $(call KernelPackage/md/Depends,+kmod-lib-raid6 +kmod-lib-xor)
  261. TITLE:=RAID Level 456 Driver
  262. KCONFIG:= \
  263. CONFIG_ASYNC_CORE \
  264. CONFIG_ASYNC_MEMCPY \
  265. CONFIG_ASYNC_XOR \
  266. CONFIG_ASYNC_PQ \
  267. CONFIG_ASYNC_RAID6_RECOV \
  268. CONFIG_ASYNC_RAID6_TEST=n \
  269. CONFIG_MD_RAID456 \
  270. CONFIG_MULTICORE_RAID456=n
  271. FILES:= \
  272. $(LINUX_DIR)/crypto/async_tx/async_tx.ko \
  273. $(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
  274. $(LINUX_DIR)/crypto/async_tx/async_xor.ko \
  275. $(LINUX_DIR)/crypto/async_tx/async_pq.ko \
  276. $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
  277. $(LINUX_DIR)/drivers/md/raid456.ko
  278. AUTOLOAD:=$(call AutoLoad,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456)
  279. endef
  280. define KernelPackage/md-raid456/description
  281. RAID Level 4,5,6 kernel module (raid456.ko)
  282. Includes the following modules required by
  283. raid456.ko:
  284. xor.ko
  285. async_tx.ko
  286. async_xor.ko
  287. async_memcpy.ko
  288. async_pq.ko
  289. async_raid5_recov.ko
  290. raid6_pq.ko
  291. endef
  292. $(eval $(call KernelPackage,md-raid456))
  293. define KernelPackage/md-multipath
  294. $(call KernelPackage/md/Depends,)
  295. TITLE:=MD Multipath Module
  296. KCONFIG:=CONFIG_MD_MULTIPATH
  297. FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
  298. AUTOLOAD:=$(call AutoLoad,29,multipath)
  299. endef
  300. define KernelPackage/md-multipath/description
  301. Multipath driver module (multipath.ko)
  302. endef
  303. $(eval $(call KernelPackage,md-multipath))
  304. define KernelPackage/ide-core
  305. SUBMENU:=$(BLOCK_MENU)
  306. TITLE:=IDE (ATA/ATAPI) device support
  307. DEPENDS:=@PCI_SUPPORT
  308. KCONFIG:= \
  309. CONFIG_IDE \
  310. CONFIG_BLK_DEV_IDE \
  311. CONFIG_BLK_DEV_IDEDISK \
  312. CONFIG_IDE_GD \
  313. CONFIG_IDE_GD_ATA=y \
  314. CONFIG_IDE_GD_ATAPI=n \
  315. CONFIG_IDEPCI_PCIBUS_ORDER=y \
  316. CONFIG_BLK_DEV_IDEDMA_PCI=y \
  317. CONFIG_BLK_DEV_IDEPCI=y
  318. FILES:= \
  319. $(LINUX_DIR)/drivers/ide/ide-core.ko \
  320. $(LINUX_DIR)/drivers/ide/ide-gd_mod.ko
  321. endef
  322. define KernelPackage/ide-core/description
  323. Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
  324. Includes:
  325. - ide-core
  326. - ide-gd_mod
  327. endef
  328. $(eval $(call KernelPackage,ide-core))
  329. define AddDepends/ide
  330. SUBMENU:=$(BLOCK_MENU)
  331. DEPENDS+=kmod-ide-core $(1)
  332. endef
  333. define KernelPackage/ide-generic
  334. SUBMENU:=$(BLOCK_MENU)
  335. DEPENDS:=@PCI_SUPPORT
  336. TITLE:=Kernel support for generic PCI IDE chipsets
  337. KCONFIG:=CONFIG_BLK_DEV_GENERIC
  338. FILES:=$(LINUX_DIR)/drivers/ide/ide-pci-generic.ko
  339. AUTOLOAD:=$(call AutoLoad,30,ide-pci-generic,1)
  340. $(call AddDepends/ide)
  341. endef
  342. $(eval $(call KernelPackage,ide-generic))
  343. define KernelPackage/ide-generic-old
  344. SUBMENU:=$(BLOCK_MENU)
  345. TITLE:=Kernel support for generic (legacy) IDE chipsets
  346. KCONFIG:=CONFIG_IDE_GENERIC
  347. FILES:=$(LINUX_DIR)/drivers/ide/ide-generic.ko
  348. AUTOLOAD:=$(call AutoLoad,30,ide-generic,1)
  349. $(call AddDepends/ide)
  350. endef
  351. $(eval $(call KernelPackage,ide-generic-old))
  352. define KernelPackage/ide-aec62xx
  353. TITLE:=Acard AEC62xx IDE driver
  354. DEPENDS:=@PCI_SUPPORT
  355. KCONFIG:=CONFIG_BLK_DEV_AEC62XX
  356. FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.ko
  357. AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
  358. $(call AddDepends/ide)
  359. endef
  360. define KernelPackage/ide-aec62xx/description
  361. Support for Acard AEC62xx (Artop ATP8xx) IDE controllers
  362. endef
  363. $(eval $(call KernelPackage,ide-aec62xx,1))
  364. define KernelPackage/ide-pdc202xx
  365. TITLE:=Promise PDC202xx IDE driver
  366. DEPENDS:=@PCI_SUPPORT
  367. KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
  368. FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.ko
  369. AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
  370. $(call AddDepends/ide)
  371. endef
  372. define KernelPackage/ide-pdc202xx/description
  373. Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
  374. controllers.
  375. endef
  376. $(eval $(call KernelPackage,ide-pdc202xx))
  377. define KernelPackage/ide-it821x
  378. TITLE:=ITE IT821x IDE driver
  379. DEPENDS:=@PCI_SUPPORT
  380. KCONFIG:=CONFIG_BLK_DEV_IT821X
  381. FILES=$(LINUX_DIR)/drivers/ide/it821x.ko
  382. AUTOLOAD:=$(call AutoLoad,30,it821x,1)
  383. $(call AddDepends/ide)
  384. endef
  385. define KernelPackage/ide-it821x/description
  386. Kernel module for the ITE IDE821x IDE controllers
  387. endef
  388. $(eval $(call KernelPackage,ide-it821x))
  389. define KernelPackage/libsas
  390. SUBMENU:=$(BLOCK_MENU)
  391. DEPENDS:=@TARGET_x86
  392. TITLE:=SAS Domain Transport Attributes
  393. KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
  394. CONFIG_SCSI_SAS_ATTRS \
  395. CONFIG_SCSI_SAS_ATA=y \
  396. CONFIG_SCSI_SAS_HOST_SMP=y \
  397. CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
  398. FILES:= \
  399. $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
  400. $(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
  401. AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
  402. endef
  403. define KernelPackage/libsas/description
  404. SAS Domain Transport Attributes support
  405. endef
  406. $(eval $(call KernelPackage,libsas,1))
  407. define KernelPackage/loop
  408. SUBMENU:=$(BLOCK_MENU)
  409. TITLE:=Loopback device support
  410. KCONFIG:= \
  411. CONFIG_BLK_DEV_LOOP \
  412. CONFIG_BLK_DEV_CRYPTOLOOP=n
  413. FILES:=$(LINUX_DIR)/drivers/block/loop.ko
  414. AUTOLOAD:=$(call AutoLoad,30,loop)
  415. endef
  416. define KernelPackage/loop/description
  417. Kernel module for loopback device support
  418. endef
  419. $(eval $(call KernelPackage,loop))
  420. define KernelPackage/mvsas
  421. SUBMENU:=$(BLOCK_MENU)
  422. TITLE:=Marvell 88SE6440 SAS/SATA driver
  423. DEPENDS:=@TARGET_x86 +kmod-libsas
  424. KCONFIG:= \
  425. CONFIG_SCSI_MVSAS \
  426. CONFIG_SCSI_MVSAS_TASKLET=n
  427. FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
  428. AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
  429. endef
  430. define KernelPackage/mvsas/description
  431. Kernel support for the Marvell SAS SCSI adapters
  432. endef
  433. $(eval $(call KernelPackage,mvsas))
  434. define KernelPackage/nbd
  435. SUBMENU:=$(BLOCK_MENU)
  436. TITLE:=Network block device support
  437. KCONFIG:=CONFIG_BLK_DEV_NBD
  438. FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
  439. AUTOLOAD:=$(call AutoLoad,30,nbd)
  440. endef
  441. define KernelPackage/nbd/description
  442. Kernel module for network block device support
  443. endef
  444. $(eval $(call KernelPackage,nbd))
  445. define KernelPackage/scsi-core
  446. SUBMENU:=$(BLOCK_MENU)
  447. TITLE:=SCSI device support
  448. KCONFIG:= \
  449. CONFIG_SCSI \
  450. CONFIG_BLK_DEV_SD
  451. FILES:= \
  452. $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.ko) \
  453. $(LINUX_DIR)/drivers/scsi/sd_mod.ko
  454. AUTOLOAD:=$(call AutoLoad,40,sd_mod,1)
  455. endef
  456. $(eval $(call KernelPackage,scsi-core))
  457. define KernelPackage/scsi-generic
  458. SUBMENU:=$(BLOCK_MENU)
  459. TITLE:=Kernel support for SCSI generic
  460. DEPENDS:=+kmod-scsi-core
  461. KCONFIG:= \
  462. CONFIG_CHR_DEV_SG
  463. FILES:= \
  464. $(LINUX_DIR)/drivers/scsi/sg.ko
  465. AUTOLOAD:=$(call AutoLoad,65,sg)
  466. endef
  467. $(eval $(call KernelPackage,scsi-generic))
  468. define KernelPackage/scsi-cdrom
  469. SUBMENU:=$(BLOCK_MENU)
  470. TITLE:=Kernel support for CD / DVD drives
  471. DEPENDS:=+kmod-scsi-core
  472. KCONFIG:= \
  473. CONFIG_BLK_DEV_SR \
  474. CONFIG_BLK_DEV_SR_VENDOR=n
  475. FILES:= \
  476. $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
  477. $(LINUX_DIR)/drivers/scsi/sr_mod.ko
  478. AUTOLOAD:=$(call AutoLoad,45,sr_mod)
  479. endef
  480. $(eval $(call KernelPackage,scsi-cdrom))