other.mk 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  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. OTHER_MENU:=Other modules
  8. WATCHDOG_DIR:=watchdog
  9. define KernelPackage/bluetooth
  10. SUBMENU:=$(OTHER_MENU)
  11. TITLE:=Bluetooth support
  12. DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-crypto-hash
  13. KCONFIG:= \
  14. CONFIG_BLUEZ \
  15. CONFIG_BLUEZ_L2CAP \
  16. CONFIG_BLUEZ_SCO \
  17. CONFIG_BLUEZ_RFCOMM \
  18. CONFIG_BLUEZ_BNEP \
  19. CONFIG_BLUEZ_HCIUART \
  20. CONFIG_BLUEZ_HCIUSB \
  21. CONFIG_BLUEZ_HIDP \
  22. CONFIG_BT \
  23. CONFIG_BT_L2CAP=y \
  24. CONFIG_BT_SCO=y \
  25. CONFIG_BT_RFCOMM \
  26. CONFIG_BT_BNEP \
  27. CONFIG_BT_HCIBTUSB \
  28. CONFIG_BT_HCIUSB \
  29. CONFIG_BT_HCIUART \
  30. CONFIG_BT_HCIUART_H4 \
  31. CONFIG_BT_HIDP \
  32. CONFIG_HID_SUPPORT=y
  33. $(call AddDepends/crc16)
  34. $(call AddDepends/hid)
  35. $(call AddDepends/rfkill)
  36. FILES:= \
  37. $(LINUX_DIR)/net/bluetooth/bluetooth.ko \
  38. $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.ko \
  39. $(LINUX_DIR)/net/bluetooth/bnep/bnep.ko \
  40. $(LINUX_DIR)/net/bluetooth/hidp/hidp.ko \
  41. $(LINUX_DIR)/drivers/bluetooth/hci_uart.ko \
  42. $(LINUX_DIR)/drivers/bluetooth/btusb.ko
  43. AUTOLOAD:=$(call AutoLoad,90,bluetooth rfcomm bnep hidp hci_uart btusb)
  44. endef
  45. define KernelPackage/bluetooth/description
  46. Kernel support for Bluetooth devices
  47. endef
  48. $(eval $(call KernelPackage,bluetooth))
  49. define KernelPackage/bluetooth-hci-h4p
  50. SUBMENU:=$(OTHER_MENU)
  51. TITLE:=HCI driver with H4 Nokia extensions
  52. DEPENDS:=@TARGET_omap24xx +kmod-bluetooth
  53. KCONFIG:=CONFIG_BT_HCIH4P
  54. FILES:=$(LINUX_DIR)/drivers/bluetooth/hci_h4p/hci_h4p.ko
  55. AUTOLOAD:=$(call AutoLoad,91,hci_h4p)
  56. endef
  57. define KernelPackage/bluetooth-hci-h4p/description
  58. HCI driver with H4 Nokia extensions
  59. endef
  60. $(eval $(call KernelPackage,bluetooth-hci-h4p))
  61. define KernelPackage/eeprom-93cx6
  62. SUBMENU:=$(OTHER_MENU)
  63. TITLE:=EEPROM 93CX6 support
  64. KCONFIG:=CONFIG_EEPROM_93CX6
  65. FILES:=$(LINUX_DIR)/drivers/misc/eeprom/eeprom_93cx6.ko
  66. AUTOLOAD:=$(call AutoLoad,20,eeprom_93cx6)
  67. endef
  68. define KernelPackage/eeprom-93cx6/description
  69. Kernel module for EEPROM 93CX6 support
  70. endef
  71. $(eval $(call KernelPackage,eeprom-93cx6))
  72. define KernelPackage/eeprom-at24
  73. SUBMENU:=$(OTHER_MENU)
  74. TITLE:=EEPROM AT24 support
  75. KCONFIG:=CONFIG_EEPROM_AT24
  76. DEPENDS:=+kmod-i2c-core
  77. FILES:=$(LINUX_DIR)/drivers/misc/eeprom/at24.ko
  78. AUTOLOAD:=$(call AutoLoad,60,at24)
  79. endef
  80. define KernelPackage/eeprom-at24/description
  81. Kernel module for most I2C EEPROMs
  82. endef
  83. $(eval $(call KernelPackage,eeprom-at24))
  84. define KernelPackage/eeprom-at25
  85. SUBMENU:=$(OTHER_MENU)
  86. TITLE:=EEPROM AT25 support
  87. KCONFIG:=CONFIG_EEPROM_AT25
  88. FILES:=$(LINUX_DIR)/drivers/misc/eeprom/at25.ko
  89. AUTOLOAD:=$(call AutoLoad,61,at25)
  90. endef
  91. define KernelPackage/eeprom-at25/description
  92. Kernel module for most SPI EEPROMs
  93. endef
  94. $(eval $(call KernelPackage,eeprom-at25))
  95. define KernelPackage/gpio-dev
  96. SUBMENU:=$(OTHER_MENU)
  97. TITLE:=Generic GPIO char device support
  98. DEPENDS:=@GPIO_SUPPORT
  99. KCONFIG:=CONFIG_GPIO_DEVICE
  100. FILES:=$(LINUX_DIR)/drivers/char/gpio_dev.ko
  101. AUTOLOAD:=$(call AutoLoad,40,gpio_dev)
  102. endef
  103. define KernelPackage/gpio-dev/description
  104. Kernel module to allows control of GPIO pins using a character device.
  105. endef
  106. $(eval $(call KernelPackage,gpio-dev))
  107. define KernelPackage/gpio-mcp23s08
  108. SUBMENU:=$(OTHER_MENU)
  109. TITLE:=Microchip MCP23xxx I/O expander
  110. DEPENDS:=@GPIO_SUPPORT +PACKAGE_kmod-i2c-core:kmod-i2c-core
  111. KCONFIG:=CONFIG_GPIO_MCP23S08
  112. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-mcp23s08.ko
  113. AUTOLOAD:=$(call AutoLoad,40,gpio-mcp23s08)
  114. endef
  115. define KernelPackage/gpio-mcp23s08/description
  116. Kernel module for Microchip MCP23xxx SPI/I2C I/O expander
  117. endef
  118. $(eval $(call KernelPackage,gpio-mcp23s08))
  119. define KernelPackage/gpio-nxp-74hc164
  120. SUBMENU:=$(OTHER_MENU)
  121. TITLE:=NXP 74HC164 GPIO expander support
  122. KCONFIG:=CONFIG_GPIO_NXP_74HC164
  123. FILES:=$(LINUX_DIR)/drivers/gpio/nxp_74hc164.ko
  124. AUTOLOAD:=$(call AutoLoad,99,nxp_74hc164)
  125. endef
  126. define KernelPackage/gpio-nxp-74hc164/description
  127. Kernel module for NXP 74HC164 GPIO expander
  128. endef
  129. $(eval $(call KernelPackage,gpio-nxp-74hc164))
  130. define KernelPackage/gpio-pcf857x
  131. SUBMENU:=$(OTHER_MENU)
  132. DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core
  133. TITLE:=PCX857x, PCA967x and MAX732X I2C GPIO expanders
  134. KCONFIG:=CONFIG_GPIO_PCF857X
  135. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-pcf857x.ko
  136. AUTOLOAD:=$(call AutoLoad,55,gpio-pcf857x)
  137. endef
  138. define KernelPackage/gpio-pcf857x/description
  139. Kernel module for PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders
  140. endef
  141. $(eval $(call KernelPackage,gpio-pcf857x))
  142. define KernelPackage/lp
  143. SUBMENU:=$(OTHER_MENU)
  144. TITLE:=Parallel port and line printer support
  145. DEPENDS:=@BROKEN
  146. KCONFIG:= \
  147. CONFIG_PARPORT \
  148. CONFIG_PRINTER \
  149. CONFIG_PPDEV
  150. FILES:= \
  151. $(LINUX_DIR)/drivers/parport/parport.ko \
  152. $(LINUX_DIR)/drivers/char/lp.ko \
  153. $(LINUX_DIR)/drivers/char/ppdev.ko
  154. AUTOLOAD:=$(call AutoLoad,50,parport lp)
  155. endef
  156. $(eval $(call KernelPackage,lp))
  157. define KernelPackage/mmc
  158. SUBMENU:=$(OTHER_MENU)
  159. TITLE:=MMC/SD Card Support
  160. KCONFIG:= \
  161. CONFIG_MMC \
  162. CONFIG_MMC_BLOCK \
  163. CONFIG_MMC_DEBUG=n \
  164. CONFIG_MMC_UNSAFE_RESUME=n \
  165. CONFIG_MMC_BLOCK_BOUNCE=y \
  166. CONFIG_MMC_SDHCI=n \
  167. CONFIG_MMC_TIFM_SD=n \
  168. CONFIG_MMC_WBSD=n \
  169. CONFIG_SDIO_UART=n
  170. FILES:= \
  171. $(LINUX_DIR)/drivers/mmc/core/mmc_core.ko \
  172. $(LINUX_DIR)/drivers/mmc/card/mmc_block.ko
  173. AUTOLOAD:=$(call AutoLoad,90,mmc_core mmc_block,1)
  174. endef
  175. define KernelPackage/mmc/description
  176. Kernel support for MMC/SD cards
  177. endef
  178. $(eval $(call KernelPackage,mmc))
  179. define KernelPackage/oprofile
  180. SUBMENU:=$(OTHER_MENU)
  181. TITLE:=OProfile profiling support
  182. KCONFIG:=CONFIG_OPROFILE
  183. FILES:=$(LINUX_DIR)/arch/$(LINUX_KARCH)/oprofile/oprofile.ko
  184. DEPENDS:=@KERNEL_PROFILING
  185. endef
  186. define KernelPackage/oprofile/description
  187. Kernel module for support for oprofile system profiling
  188. endef
  189. $(eval $(call KernelPackage,oprofile))
  190. define KernelPackage/rfkill
  191. SUBMENU:=$(OTHER_MENU)
  192. TITLE:=RF switch subsystem support
  193. DEPENDS:=@USE_RFKILL +kmod-input-core
  194. KCONFIG:= \
  195. CONFIG_RFKILL \
  196. CONFIG_RFKILL_INPUT=y \
  197. CONFIG_RFKILL_LEDS=y \
  198. CONFIG_RFKILL_GPIO=y
  199. FILES:= \
  200. $(LINUX_DIR)/net/rfkill/rfkill.ko
  201. AUTOLOAD:=$(call AutoLoad,20,rfkill)
  202. endef
  203. define KernelPackage/rfkill/description
  204. Say Y here if you want to have control over RF switches
  205. found on many WiFi and Bluetooth cards
  206. endef
  207. $(eval $(call KernelPackage,rfkill))
  208. define KernelPackage/softdog
  209. SUBMENU:=$(OTHER_MENU)
  210. TITLE:=Software watchdog driver
  211. KCONFIG:=CONFIG_SOFT_WATCHDOG
  212. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/softdog.ko
  213. AUTOLOAD:=$(call AutoLoad,50,softdog)
  214. endef
  215. define KernelPackage/softdog/description
  216. Software watchdog driver
  217. endef
  218. $(eval $(call KernelPackage,softdog))
  219. define KernelPackage/ssb
  220. SUBMENU:=$(OTHER_MENU)
  221. TITLE:=Silicon Sonics Backplane glue code
  222. DEPENDS:=@PCI_SUPPORT @!TARGET_brcm47xx @!TARGET_brcm63xx
  223. KCONFIG:=\
  224. CONFIG_SSB \
  225. CONFIG_SSB_B43_PCI_BRIDGE=y \
  226. CONFIG_SSB_DRIVER_MIPS=n \
  227. CONFIG_SSB_DRIVER_PCICORE=y \
  228. CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y \
  229. CONFIG_SSB_PCIHOST=y \
  230. CONFIG_SSB_PCIHOST_POSSIBLE=y \
  231. CONFIG_SSB_POSSIBLE=y \
  232. CONFIG_SSB_SPROM=y \
  233. CONFIG_SSB_SILENT=y
  234. FILES:=$(LINUX_DIR)/drivers/ssb/ssb.ko
  235. AUTOLOAD:=$(call AutoLoad,18,ssb,1)
  236. endef
  237. define KernelPackage/ssb/description
  238. Silicon Sonics Backplane glue code.
  239. endef
  240. $(eval $(call KernelPackage,ssb))
  241. define KernelPackage/bcma
  242. SUBMENU:=$(OTHER_MENU)
  243. TITLE:=BCMA support
  244. DEPENDS:=@PCI_SUPPORT @!TARGET_brcm47xx
  245. KCONFIG:=\
  246. CONFIG_BCMA \
  247. CONFIG_BCMA_POSSIBLE=y \
  248. CONFIG_BCMA_BLOCKIO=y \
  249. CONFIG_BCMA_HOST_PCI_POSSIBLE=y \
  250. CONFIG_BCMA_HOST_PCI=y \
  251. CONFIG_BCMA_HOST_SOC=n \
  252. CONFIG_BCMA_DRIVER_MIPS=n \
  253. CONFIG_BCMA_DRIVER_PCI_HOSTMODE=n \
  254. CONFIG_BCMA_DRIVER_GMAC_CMN=n \
  255. CONFIG_BCMA_DEBUG=n
  256. FILES:=$(LINUX_DIR)/drivers/bcma/bcma.ko
  257. AUTOLOAD:=$(call AutoLoad,29,bcma)
  258. endef
  259. define KernelPackage/bcma/description
  260. Bus driver for Broadcom specific Advanced Microcontroller Bus Architecture
  261. endef
  262. $(eval $(call KernelPackage,bcma))
  263. define KernelPackage/wdt-omap
  264. SUBMENU:=$(OTHER_MENU)
  265. TITLE:=OMAP Watchdog timer
  266. DEPENDS:=@(TARGET_omap24xx||TARGET_omap35xx)
  267. KCONFIG:=CONFIG_OMAP_WATCHDOG
  268. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/omap_wdt.ko
  269. AUTOLOAD:=$(call AutoLoad,50,omap_wdt.ko)
  270. endef
  271. define KernelPackage/wdt-omap/description
  272. Kernel module for TI omap watchdog timer
  273. endef
  274. $(eval $(call KernelPackage,wdt-omap))
  275. define KernelPackage/wdt-orion
  276. SUBMENU:=$(OTHER_MENU)
  277. TITLE:=Marvell Orion Watchdog timer
  278. DEPENDS:=@TARGET_orion||TARGET_kirkwood||TARGET_mvebu
  279. KCONFIG:=CONFIG_ORION_WATCHDOG
  280. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/orion_wdt.ko
  281. AUTOLOAD:=$(call AutoLoad,50,orion_wdt)
  282. endef
  283. define KernelPackage/wdt-orion/description
  284. Kernel module for Marvell Orion, Kirkwood and Armada XP/370 watchdog timer
  285. endef
  286. $(eval $(call KernelPackage,wdt-orion))
  287. define KernelPackage/booke-wdt
  288. SUBMENU:=$(OTHER_MENU)
  289. TITLE:=PowerPC Book-E Watchdog Timer
  290. DEPENDS:=@(TARGET_mpc85xx||TARGET_ppc40x||TARGET_ppc44x)
  291. KCONFIG:=CONFIG_BOOKE_WDT
  292. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/booke_wdt.ko
  293. AUTOLOAD:=$(call AutoLoad,50,booke_wdt)
  294. endef
  295. define KernelPackage/booke-wdt/description
  296. Kernel module for PowerPC Book-E Watchdog Timer
  297. endef
  298. $(eval $(call KernelPackage,booke-wdt))
  299. define KernelPackage/pwm
  300. SUBMENU:=$(OTHER_MENU)
  301. TITLE:=PWM generic API
  302. KCONFIG:=CONFIG_GENERIC_PWM
  303. FILES:=$(LINUX_DIR)/drivers/pwm/pwm.ko
  304. AUTOLOAD:=$(call AutoLoad,50,pwm)
  305. endef
  306. define KernelPackage/pwm/description
  307. Kernel module that implement a generic PWM API
  308. endef
  309. $(eval $(call KernelPackage,pwm))
  310. define KernelPackage/pwm-gpio
  311. SUBMENU:=$(OTHER_MENU)
  312. TITLE:=PWM over GPIO
  313. DEPENDS:=+kmod-pwm
  314. KCONFIG:=CONFIG_GPIO_PWM
  315. FILES:=$(LINUX_DIR)/drivers/pwm/gpio-pwm.ko
  316. AUTOLOAD:=$(call AutoLoad,51,gpio-pwm)
  317. endef
  318. define KernelPackage/pwm-gpio/description
  319. Kernel module to models a single-channel PWM device using a timer and a GPIO pin
  320. endef
  321. $(eval $(call KernelPackage,pwm-gpio))
  322. define KernelPackage/rtc-isl1208
  323. SUBMENU:=$(OTHER_MENU)
  324. TITLE:=Intersil ISL1208 RTC support
  325. $(call AddDepends/rtc)
  326. DEPENDS+=+kmod-i2c-core
  327. KCONFIG:=CONFIG_RTC_DRV_ISL1208
  328. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-isl1208.ko
  329. AUTOLOAD:=$(call AutoLoad,60,rtc-isl1208)
  330. endef
  331. define KernelPackage/rtc-isl1208/description
  332. Kernel module for Intersil ISL1208 RTC.
  333. endef
  334. $(eval $(call KernelPackage,rtc-isl1208))
  335. define KernelPackage/rtc-marvell
  336. SUBMENU:=$(OTHER_MENU)
  337. TITLE:=Marvell SoC built-in RTC support
  338. $(call AddDepends/rtc)
  339. DEPENDS+=@TARGET_kirkwood||TARGET_orion||TARGET_mvebu
  340. KCONFIG:=CONFIG_RTC_DRV_MV
  341. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-mv.ko
  342. AUTOLOAD:=$(call AutoLoad,60,rtc-mv)
  343. endef
  344. define KernelPackage/rtc-marvell/description
  345. Kernel module for Marvell SoC built-in RTC.
  346. endef
  347. $(eval $(call KernelPackage,rtc-marvell))
  348. define KernelPackage/rtc-pcf8563
  349. SUBMENU:=$(OTHER_MENU)
  350. TITLE:=Philips PCF8563/Epson RTC8564 RTC support
  351. $(call AddDepends/rtc,+kmod-i2c-core)
  352. KCONFIG:=CONFIG_RTC_DRV_PCF8563
  353. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf8563.ko
  354. AUTOLOAD:=$(call AutoLoad,60,rtc-pcf8563)
  355. endef
  356. define KernelPackage/rtc-pcf8563/description
  357. Kernel module for Philips PCF8563 RTC chip.
  358. The Epson RTC8564 should work as well.
  359. endef
  360. $(eval $(call KernelPackage,rtc-pcf8563))
  361. define KernelPackage/rtc-pcf2123
  362. SUBMENU:=$(OTHER_MENU)
  363. TITLE:=Philips PCF2123 RTC support
  364. $(call AddDepends/rtc)
  365. KCONFIG:=CONFIG_RTC_DRV_PCF2123
  366. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf2123.ko
  367. AUTOLOAD:=$(call AutoLoad,60,rtc-pcf2123)
  368. endef
  369. define KernelPackage/rtc-pcf2123/description
  370. Kernel module for Philips PCF2123 RTC chip
  371. endef
  372. $(eval $(call KernelPackage,rtc-pcf2123))
  373. define KernelPackage/rtc-pt7c4338
  374. SUBMENU:=$(OTHER_MENU)
  375. TITLE:=Pericom PT7C4338 RTC support
  376. $(call AddDepends/rtc,+kmod-i2c-core)
  377. KCONFIG:=CONFIG_RTC_DRV_PT7C4338
  378. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pt7c4338.ko
  379. AUTOLOAD:=$(call AutoLoad,60,rtc-pt7c4338)
  380. endef
  381. define KernelPackage/rtc-pt7c4338/description
  382. Kernel module for Pericom PT7C4338 i2c RTC chip
  383. endef
  384. $(eval $(call KernelPackage,rtc-pt7c4338))
  385. define KernelPackage/mtdtests
  386. SUBMENU:=$(OTHER_MENU)
  387. TITLE:=MTD subsystem tests
  388. KCONFIG:=CONFIG_MTD_TESTS
  389. DEPENDS:=+kmod-nand
  390. FILES:=\
  391. $(LINUX_DIR)/drivers/mtd/tests/mtd_nandecctest.ko \
  392. $(LINUX_DIR)/drivers/mtd/tests/mtd_oobtest.ko \
  393. $(LINUX_DIR)/drivers/mtd/tests/mtd_pagetest.ko \
  394. $(LINUX_DIR)/drivers/mtd/tests/mtd_readtest.ko \
  395. $(LINUX_DIR)/drivers/mtd/tests/mtd_speedtest.ko \
  396. $(LINUX_DIR)/drivers/mtd/tests/mtd_stresstest.ko \
  397. $(LINUX_DIR)/drivers/mtd/tests/mtd_subpagetest.ko \
  398. $(LINUX_DIR)/drivers/mtd/tests/mtd_torturetest.ko
  399. endef
  400. define KernelPackage/mtdtests/description
  401. Kernel modules for MTD subsystem/driver testing
  402. endef
  403. $(eval $(call KernelPackage,mtdtests))
  404. define KernelPackage/nand
  405. SUBMENU:=$(OTHER_MENU)
  406. TITLE:=NAND flash support
  407. KCONFIG:=CONFIG_MTD_NAND \
  408. CONFIG_MTD_NAND_IDS \
  409. CONFIG_MTD_NAND_ECC
  410. FILES:= \
  411. $(LINUX_DIR)/drivers/mtd/nand/nand_ids.ko \
  412. $(LINUX_DIR)/drivers/mtd/nand/nand_ecc.ko \
  413. $(LINUX_DIR)/drivers/mtd/nand/nand.ko
  414. AUTOLOAD:=$(call AutoLoad,20,nand_ids nand_ecc nand)
  415. endef
  416. define KernelPackage/nand/description
  417. Kernel module for NAND support
  418. endef
  419. $(eval $(call KernelPackage,nand))
  420. define KernelPackage/nandsim
  421. SUBMENU:=$(OTHER_MENU)
  422. TITLE:=NAND simulator
  423. DEPENDS:=+kmod-nand
  424. KCONFIG:=CONFIG_MTD_NAND_NANDSIM
  425. FILES:=$(LINUX_DIR)/drivers/mtd/nand/nandsim.ko
  426. endef
  427. define KernelPackage/nandsim/description
  428. Kernel module for NAND flash simulation.
  429. endef
  430. $(eval $(call KernelPackage,nandsim))
  431. define KernelPackage/serial-8250
  432. SUBMENU:=$(OTHER_MENU)
  433. TITLE:=8250 UARTs
  434. KCONFIG:= CONFIG_SERIAL_8250 \
  435. CONFIG_SERIAL_8250_NR_UARTS=16 \
  436. CONFIG_SERIAL_8250_RUNTIME_UARTS=16 \
  437. CONFIG_SERIAL_8250_EXTENDED=y \
  438. CONFIG_SERIAL_8250_MANY_PORTS=y \
  439. CONFIG_SERIAL_8250_SHARE_IRQ=y \
  440. CONFIG_SERIAL_8250_DETECT_IRQ=n \
  441. CONFIG_SERIAL_8250_RSA=n
  442. FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/8250$(if $(call kernel_patchver_ge,3.7),$(if $(call kernel_patchver_le,3.8),_core)).ko
  443. endef
  444. define KernelPackage/serial-8250/description
  445. Kernel module for 8250 UART based serial ports
  446. endef
  447. $(eval $(call KernelPackage,serial-8250))
  448. define KernelPackage/regmap
  449. SUBMENU:=$(OTHER_MENU)
  450. TITLE:=Generic register map support
  451. DEPENDS:=+kmod-lib-lzo +kmod-i2c-core
  452. KCONFIG:=CONFIG_REGMAP \
  453. CONFIG_REGMAP_SPI \
  454. CONFIG_REGMAP_I2C \
  455. CONFIG_SPI=y
  456. FILES:= \
  457. $(LINUX_DIR)/drivers/base/regmap/regmap-core.ko \
  458. $(LINUX_DIR)/drivers/base/regmap/regmap-i2c.ko \
  459. $(LINUX_DIR)/drivers/base/regmap/regmap-spi.ko
  460. AUTOLOAD:=$(call AutoLoad,21,regmap-core regmap-i2c regmap-spi)
  461. endef
  462. define KernelPackage/regmap/description
  463. Generic register map support
  464. endef
  465. $(eval $(call KernelPackage,regmap))
  466. define KernelPackage/ikconfig
  467. SUBMENU:=$(OTHER_MENU)
  468. TITLE:=Kernel configuration via /proc/config.gz
  469. KCONFIG:=CONFIG_IKCONFIG \
  470. CONFIG_IKCONFIG_PROC=y
  471. FILES:=$(LINUX_DIR)/kernel/configs.ko
  472. AUTOLOAD:=$(call AutoLoad,70,configs)
  473. endef
  474. define KernelPackage/ikconfig/description
  475. Kernel configuration via /proc/config.gz
  476. endef
  477. $(eval $(call KernelPackage,ikconfig))
  478. define KernelPackage/zram
  479. SUBMENU:=$(OTHER_MENU)
  480. TITLE:=ZRAM
  481. DEPENDS:=@!LINUX_3_3 +kmod-lib-lzo
  482. KCONFIG:= \
  483. CONFIG_ZSMALLOC \
  484. CONFIG_ZRAM \
  485. CONFIG_ZRAM_DEBUG=n
  486. FILES:= \
  487. $(LINUX_DIR)/drivers/staging/zsmalloc/zsmalloc.ko \
  488. $(LINUX_DIR)/drivers/staging/zram/zram.ko
  489. AUTOLOAD:=$(call AutoLoad,20,zsmalloc zram)
  490. endef
  491. define KernelPackage/zram/description
  492. Compressed RAM block device support
  493. endef
  494. $(eval $(call KernelPackage,zram))
  495. define KernelPackage/mvsdio
  496. SUBMENU:=$(OTHER_MENU)
  497. TITLE:=Marvell SDIO support
  498. DEPENDS:=@TARGET_orion||TARGET_kirkwood||TARGET_mvebu +kmod-mmc
  499. KCONFIG:=CONFIG_MMC_MVSDIO
  500. FILES:=$(LINUX_DIR)/drivers/mmc/host/mvsdio.ko
  501. AUTOLOAD:=$(call AutoLoad,91,mvsdio)
  502. endef
  503. define KernelPacakge/mvsdio/description
  504. Kernel support for the Marvell SDIO controller
  505. endef
  506. $(eval $(call KernelPackage,mvsdio))
  507. define KernelPackage/pps
  508. SUBMENU:=$(OTHER_MENU)
  509. TITLE:=PPS support
  510. KCONFIG:=CONFIG_PPS
  511. FILES:=$(LINUX_DIR)/drivers/pps/pps_core.ko
  512. AUTOLOAD:=$(call AutoLoad,17,pps_core,1)
  513. endef
  514. define KernelPacakge/pps/description
  515. PPS (Pulse Per Second) is a special pulse provided by some GPS
  516. antennae. Userland can use it to get a high-precision time
  517. reference.
  518. endef
  519. $(eval $(call KernelPackage,pps))
  520. define KernelPackage/ptp
  521. SUBMENU:=$(OTHER_MENU)
  522. TITLE:=PTP clock support
  523. DEPENDS:=+kmod-pps
  524. KCONFIG:=CONFIG_PTP_1588_CLOCK
  525. FILES:=$(LINUX_DIR)/drivers/ptp/ptp.ko
  526. AUTOLOAD:=$(call AutoLoad,18,ptp,1)
  527. endef
  528. define KernelPacakge/ptp/description
  529. The IEEE 1588 standard defines a method to precisely
  530. synchronize distributed clocks over Ethernet networks.
  531. endef
  532. $(eval $(call KernelPackage,ptp))
  533. define KernelPackage/ptp-gianfar
  534. SUBMENU:=$(OTHER_MENU)
  535. TITLE:=Freescale Gianfar PTP support
  536. DEPENDS:=@TARGET_mpc85xx +kmod-gianfar +kmod-ptp
  537. KCONFIG:=CONFIG_PTP_1588_CLOCK_GIANFAR
  538. FILES:=$(LINUX_DIR)/drivers/net/ethernet/freescale/gianfar_ptp.ko
  539. AUTOLOAD:=$(call AutoLoad,51,gianfar_ptp)
  540. endef
  541. define KernelPacakge/ptp-gianfar/description
  542. Kernel module for IEEE 1588 support for Freescale
  543. Gianfar Ethernet drivers
  544. endef
  545. $(eval $(call KernelPackage,ptp-gianfar))
  546. define KernelPackage/random-core
  547. SUBMENU:=$(OTHER_MENU)
  548. TITLE:=Hardware Random Number Generator Core support
  549. KCONFIG:=CONFIG_HW_RANDOM
  550. FILES:=$(LINUX_DIR)/drivers/char/hw_random/rng-core.ko
  551. AUTOLOAD:=$(call AutoLoad,10,rng-core)
  552. endef
  553. define KernelPackage/random-core/description
  554. Kernel module for the HW random number generator core infrastructure
  555. endef
  556. $(eval $(call KernelPackage,random-core))