other.mk 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362
  1. #
  2. # Copyright (C) 2006-2015 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/6lowpan
  10. SUBMENU:=$(OTHER_MENU)
  11. TITLE:=6LoWPAN shared code
  12. KCONFIG:= \
  13. CONFIG_6LOWPAN \
  14. CONFIG_6LOWPAN_NHC=n
  15. FILES:=$(LINUX_DIR)/net/6lowpan/6lowpan.ko
  16. AUTOLOAD:=$(call AutoProbe,6lowpan)
  17. endef
  18. define KernelPackage/6lowpan/description
  19. Shared 6lowpan code for IEEE 802.15.4 and Bluetooth.
  20. endef
  21. $(eval $(call KernelPackage,6lowpan))
  22. define KernelPackage/bluetooth
  23. SUBMENU:=$(OTHER_MENU)
  24. TITLE:=Bluetooth support
  25. DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-crypto-hash +kmod-crypto-ecb +kmod-lib-crc16 +kmod-hid +kmod-crypto-cmac +kmod-regmap-core +kmod-crypto-ecdh
  26. KCONFIG:= \
  27. CONFIG_BT \
  28. CONFIG_BT_BREDR=y \
  29. CONFIG_BT_DEBUGFS=n \
  30. CONFIG_BT_LE=y \
  31. CONFIG_BT_RFCOMM \
  32. CONFIG_BT_BNEP \
  33. CONFIG_BT_HCIBTUSB \
  34. CONFIG_BT_HCIBTUSB_BCM=n \
  35. CONFIG_BT_HCIBTUSB_MTK=y \
  36. CONFIG_BT_HCIBTUSB_RTL=y \
  37. CONFIG_BT_HCIUART \
  38. CONFIG_BT_HCIUART_BCM=n \
  39. CONFIG_BT_HCIUART_INTEL=n \
  40. CONFIG_BT_HCIUART_H4 \
  41. CONFIG_BT_HCIUART_NOKIA=n \
  42. CONFIG_BT_HIDP
  43. $(call AddDepends/rfkill)
  44. FILES:= \
  45. $(LINUX_DIR)/net/bluetooth/bluetooth.ko \
  46. $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.ko \
  47. $(LINUX_DIR)/net/bluetooth/bnep/bnep.ko \
  48. $(LINUX_DIR)/net/bluetooth/hidp/hidp.ko \
  49. $(LINUX_DIR)/drivers/bluetooth/hci_uart.ko \
  50. $(LINUX_DIR)/drivers/bluetooth/btusb.ko \
  51. $(LINUX_DIR)/drivers/bluetooth/btintel.ko \
  52. $(LINUX_DIR)/drivers/bluetooth/btrtl.ko
  53. AUTOLOAD:=$(call AutoProbe,bluetooth rfcomm bnep hidp hci_uart btusb)
  54. endef
  55. define KernelPackage/bluetooth/description
  56. Kernel support for Bluetooth devices
  57. endef
  58. $(eval $(call KernelPackage,bluetooth))
  59. define KernelPackage/ath3k
  60. SUBMENU:=$(OTHER_MENU)
  61. TITLE:=ATH3K Kernel Module support
  62. DEPENDS:=+kmod-bluetooth +ar3k-firmware
  63. KCONFIG:= \
  64. CONFIG_BT_ATH3K \
  65. CONFIG_BT_HCIUART_ATH3K=y
  66. FILES:= \
  67. $(LINUX_DIR)/drivers/bluetooth/ath3k.ko
  68. AUTOLOAD:=$(call AutoProbe,ath3k)
  69. endef
  70. define KernelPackage/ath3k/description
  71. Kernel support for ATH3K Module
  72. endef
  73. $(eval $(call KernelPackage,ath3k))
  74. define KernelPackage/bluetooth-6lowpan
  75. SUBMENU:=$(OTHER_MENU)
  76. TITLE:=Bluetooth 6LoWPAN support
  77. DEPENDS:=+kmod-6lowpan +kmod-bluetooth
  78. KCONFIG:=CONFIG_BT_6LOWPAN
  79. FILES:=$(LINUX_DIR)/net/bluetooth/bluetooth_6lowpan.ko
  80. AUTOLOAD:=$(call AutoProbe,bluetooth_6lowpan)
  81. endef
  82. define KernelPackage/bluetooth-6lowpan/description
  83. Kernel support for 6LoWPAN over Bluetooth Low Energy devices
  84. endef
  85. $(eval $(call KernelPackage,bluetooth-6lowpan))
  86. define KernelPackage/btmrvl
  87. SUBMENU:=$(OTHER_MENU)
  88. TITLE:=Marvell Bluetooth Kernel Module support
  89. DEPENDS:=+kmod-mmc +kmod-bluetooth +mwifiex-sdio-firmware
  90. KCONFIG:= \
  91. CONFIG_BT_MRVL \
  92. CONFIG_BT_MRVL_SDIO
  93. FILES:= \
  94. $(LINUX_DIR)/drivers/bluetooth/btmrvl.ko \
  95. $(LINUX_DIR)/drivers/bluetooth/btmrvl_sdio.ko
  96. AUTOLOAD:=$(call AutoProbe,btmrvl btmrvl_sdio)
  97. endef
  98. define KernelPackage/btmrvl/description
  99. Kernel support for Marvell SDIO Bluetooth Module
  100. endef
  101. $(eval $(call KernelPackage,btmrvl))
  102. define KernelPackage/btsdio
  103. SUBMENU:=$(OTHER_MENU)
  104. TITLE:=Bluetooth HCI SDIO driver
  105. DEPENDS:=+kmod-bluetooth +kmod-mmc
  106. KCONFIG:= \
  107. CONFIG_BT_HCIBTSDIO
  108. FILES:= \
  109. $(LINUX_DIR)/drivers/bluetooth/btsdio.ko
  110. AUTOLOAD:=$(call AutoProbe,btsdio)
  111. endef
  112. define KernelPackage/btsdio/description
  113. Kernel support for Bluetooth device with SDIO interface
  114. endef
  115. $(eval $(call KernelPackage,btsdio))
  116. define KernelPackage/dma-buf
  117. SUBMENU:=$(OTHER_MENU)
  118. TITLE:=DMA shared buffer support
  119. HIDDEN:=1
  120. KCONFIG:=CONFIG_DMA_SHARED_BUFFER
  121. ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
  122. ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"")
  123. FILES:=$(LINUX_DIR)/drivers/dma-buf/dma-shared-buffer.ko
  124. endif
  125. endif
  126. AUTOLOAD:=$(call AutoLoad,20,dma-shared-buffer)
  127. endef
  128. $(eval $(call KernelPackage,dma-buf))
  129. define KernelPackage/eeprom-93cx6
  130. SUBMENU:=$(OTHER_MENU)
  131. TITLE:=EEPROM 93CX6 support
  132. KCONFIG:=CONFIG_EEPROM_93CX6
  133. FILES:=$(LINUX_DIR)/drivers/misc/eeprom/eeprom_93cx6.ko
  134. AUTOLOAD:=$(call AutoLoad,20,eeprom_93cx6)
  135. endef
  136. define KernelPackage/eeprom-93cx6/description
  137. Kernel module for EEPROM 93CX6 support
  138. endef
  139. $(eval $(call KernelPackage,eeprom-93cx6))
  140. define KernelPackage/eeprom-at24
  141. SUBMENU:=$(OTHER_MENU)
  142. TITLE:=EEPROM AT24 support
  143. KCONFIG:=CONFIG_EEPROM_AT24
  144. DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c
  145. FILES:=$(LINUX_DIR)/drivers/misc/eeprom/at24.ko
  146. AUTOLOAD:=$(call AutoProbe,at24)
  147. endef
  148. define KernelPackage/eeprom-at24/description
  149. Kernel module for most I2C EEPROMs
  150. endef
  151. $(eval $(call KernelPackage,eeprom-at24))
  152. define KernelPackage/eeprom-at25
  153. SUBMENU:=$(OTHER_MENU)
  154. TITLE:=EEPROM AT25 support
  155. KCONFIG:=CONFIG_EEPROM_AT25
  156. FILES:=$(LINUX_DIR)/drivers/misc/eeprom/at25.ko
  157. AUTOLOAD:=$(call AutoProbe,at25)
  158. endef
  159. define KernelPackage/eeprom-at25/description
  160. Kernel module for most SPI EEPROMs
  161. endef
  162. $(eval $(call KernelPackage,eeprom-at25))
  163. define KernelPackage/google-firmware
  164. SUBMENU:=$(OTHER_MENU)
  165. TITLE:=Google firmware drivers (Coreboot, VPD, Memconsole)
  166. KCONFIG:= \
  167. CONFIG_GOOGLE_FIRMWARE=y \
  168. CONFIG_GOOGLE_COREBOOT_TABLE \
  169. CONFIG_GOOGLE_MEMCONSOLE \
  170. CONFIG_GOOGLE_MEMCONSOLE_COREBOOT \
  171. CONFIG_GOOGLE_VPD
  172. FILES:= \
  173. $(LINUX_DIR)/drivers/firmware/google/coreboot_table.ko \
  174. $(LINUX_DIR)/drivers/firmware/google/memconsole.ko \
  175. $(LINUX_DIR)/drivers/firmware/google/memconsole-coreboot.ko \
  176. $(LINUX_DIR)/drivers/firmware/google/vpd-sysfs.ko
  177. AUTOLOAD:=$(call AutoProbe,coreboot_table memconsole-coreboot vpd-sysfs)
  178. endef
  179. define KernelPackage/google-firmware/description
  180. Kernel modules for Google firmware drivers. Useful for examining firmware and
  181. boot details on devices using a Google bootloader based on Coreboot. Provides
  182. files like /sys/firmware/log and /sys/firmware/vpd.
  183. endef
  184. $(eval $(call KernelPackage,google-firmware))
  185. define KernelPackage/gpio-f7188x
  186. SUBMENU:=$(OTHER_MENU)
  187. TITLE:=Fintek F718xx/F818xx GPIO Support
  188. DEPENDS:=@GPIO_SUPPORT @TARGET_x86
  189. KCONFIG:=CONFIG_GPIO_F7188X
  190. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-f7188x.ko
  191. AUTOLOAD:=$(call AutoProbe,gpio-f7188x)
  192. endef
  193. define KernelPackage/gpio-f7188x/description
  194. Kernel module for the GPIOs found on many Fintek Super-IO chips.
  195. endef
  196. $(eval $(call KernelPackage,gpio-f7188x))
  197. define KernelPackage/lkdtm
  198. SUBMENU:=$(OTHER_MENU)
  199. TITLE:=Linux Kernel Dump Test Tool Module
  200. KCONFIG:=CONFIG_LKDTM
  201. FILES:=$(LINUX_DIR)/drivers/misc/lkdtm/lkdtm.ko
  202. AUTOLOAD:=$(call AutoProbe,lkdtm)
  203. endef
  204. define KernelPackage/lkdtm/description
  205. This module enables testing of the different dumping mechanisms by inducing
  206. system failures at predefined crash points.
  207. endef
  208. $(eval $(call KernelPackage,lkdtm))
  209. define KernelPackage/pinctrl-mcp23s08
  210. SUBMENU:=$(OTHER_MENU)
  211. TITLE:=Microchip MCP23xxx I/O expander
  212. HIDDEN:=1
  213. DEPENDS:=@GPIO_SUPPORT +kmod-regmap-core
  214. KCONFIG:=CONFIG_PINCTRL_MCP23S08
  215. FILES:=$(LINUX_DIR)/drivers/pinctrl/pinctrl-mcp23s08.ko
  216. AUTOLOAD:=$(call AutoLoad,40,pinctrl-mcp23s08)
  217. endef
  218. define KernelPackage/pinctrl-mcp23s08/description
  219. Kernel module for Microchip MCP23xxx I/O expander
  220. endef
  221. $(eval $(call KernelPackage,pinctrl-mcp23s08))
  222. define KernelPackage/pinctrl-mcp23s08-i2c
  223. SUBMENU:=$(OTHER_MENU)
  224. TITLE:=Microchip MCP23xxx I/O expander (I2C)
  225. DEPENDS:=@GPIO_SUPPORT \
  226. +kmod-pinctrl-mcp23s08 \
  227. +kmod-i2c-core \
  228. +kmod-regmap-i2c
  229. KCONFIG:=CONFIG_PINCTRL_MCP23S08_I2C
  230. FILES:=$(LINUX_DIR)/drivers/pinctrl/pinctrl-mcp23s08_i2c.ko
  231. AUTOLOAD:=$(call AutoLoad,40,pinctrl-mcp23s08-i2c)
  232. endef
  233. define KernelPackage/pinctrl-mcp23s08-i2c/description
  234. Kernel module for Microchip MCP23xxx I/O expander via I2C
  235. endef
  236. $(eval $(call KernelPackage,pinctrl-mcp23s08-i2c))
  237. define KernelPackage/pinctrl-mcp23s08-spi
  238. SUBMENU:=$(OTHER_MENU)
  239. TITLE:=Microchip MCP23xxx I/O expander (SPI)
  240. DEPENDS:=@GPIO_SUPPORT +kmod-pinctrl-mcp23s08
  241. KCONFIG:=CONFIG_PINCTRL_MCP23S08_SPI
  242. FILES:=$(LINUX_DIR)/drivers/pinctrl/pinctrl-mcp23s08_spi.ko
  243. AUTOLOAD:=$(call AutoLoad,40,pinctrl-mcp23s08-spi)
  244. endef
  245. define KernelPackage/pinctrl-mcp23s08-spi/description
  246. Kernel module for Microchip MCP23xxx I/O expander via SPI
  247. endef
  248. $(eval $(call KernelPackage,pinctrl-mcp23s08-spi))
  249. define KernelPackage/gpio-nxp-74hc164
  250. SUBMENU:=$(OTHER_MENU)
  251. TITLE:=NXP 74HC164 GPIO expander support
  252. KCONFIG:=CONFIG_GPIO_74X164
  253. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-74x164.ko
  254. AUTOLOAD:=$(call AutoProbe,gpio-74x164)
  255. endef
  256. define KernelPackage/gpio-nxp-74hc164/description
  257. Kernel module for NXP 74HC164 GPIO expander
  258. endef
  259. $(eval $(call KernelPackage,gpio-nxp-74hc164))
  260. define KernelPackage/gpio-pca953x
  261. SUBMENU:=$(OTHER_MENU)
  262. DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core +kmod-regmap-i2c
  263. TITLE:=PCA95xx, TCA64xx, and MAX7310 I/O ports
  264. KCONFIG:=CONFIG_GPIO_PCA953X
  265. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-pca953x.ko
  266. AUTOLOAD:=$(call AutoLoad,55,gpio-pca953x)
  267. endef
  268. define KernelPackage/gpio-pca953x/description
  269. Kernel module for MAX731{0,2,3,5}, PCA6107, PCA953{4-9}, PCA955{4-7},
  270. PCA957{4,5} and TCA64{08,16} I2C GPIO expanders
  271. endef
  272. $(eval $(call KernelPackage,gpio-pca953x))
  273. define KernelPackage/gpio-pcf857x
  274. SUBMENU:=$(OTHER_MENU)
  275. DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core
  276. TITLE:=PCX857x, PCA967x and MAX732X I2C GPIO expanders
  277. KCONFIG:=CONFIG_GPIO_PCF857X
  278. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-pcf857x.ko
  279. AUTOLOAD:=$(call AutoLoad,55,gpio-pcf857x)
  280. endef
  281. define KernelPackage/gpio-pcf857x/description
  282. Kernel module for PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders
  283. endef
  284. $(eval $(call KernelPackage,gpio-pcf857x))
  285. define KernelPackage/gpio-it87
  286. SUBMENU:=$(OTHER_MENU)
  287. DEPENDS:=@GPIO_SUPPORT @TARGET_x86
  288. TITLE:=GPIO support for IT87xx Super I/O chips
  289. KCONFIG:=CONFIG_GPIO_IT87
  290. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-it87.ko
  291. AUTOLOAD:=$(call AutoLoad,25,gpio-it87,1)
  292. endef
  293. define KernelPackage/gpio-it87/description
  294. This driver is tested with ITE IT8728 and IT8732 Super I/O chips, and
  295. supports the IT8761E, IT8613, IT8620E, and IT8628E Super I/O chips as
  296. well.
  297. endef
  298. $(eval $(call KernelPackage,gpio-it87))
  299. define KernelPackage/gpio-amd-fch
  300. SUBMENU:=$(OTHER_MENU)
  301. DEPENDS:=@GPIO_SUPPORT @TARGET_x86
  302. TITLE:=GPIO support for AMD Fusion Controller Hub (G-series SOCs)
  303. KCONFIG:=CONFIG_GPIO_AMD_FCH
  304. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-amd-fch.ko
  305. AUTOLOAD:=$(call AutoLoad,25,gpio-amd-fch,1)
  306. endef
  307. define KernelPackage/gpio-amd-fch/description
  308. This option enables driver for GPIO on AMDs Fusion Controller Hub,
  309. as found on G-series SOCs (eg. GX-412TC)
  310. endef
  311. $(eval $(call KernelPackage,gpio-amd-fch))
  312. define KernelPackage/ppdev
  313. SUBMENU:=$(OTHER_MENU)
  314. TITLE:=Parallel port support
  315. KCONFIG:= \
  316. CONFIG_PARPORT \
  317. CONFIG_PPDEV
  318. FILES:= \
  319. $(LINUX_DIR)/drivers/parport/parport.ko \
  320. $(LINUX_DIR)/drivers/char/ppdev.ko
  321. AUTOLOAD:=$(call AutoLoad,50,parport ppdev)
  322. endef
  323. $(eval $(call KernelPackage,ppdev))
  324. define KernelPackage/parport-pc
  325. SUBMENU:=$(OTHER_MENU)
  326. TITLE:=Parallel port interface (PC-style) support
  327. DEPENDS:=+kmod-ppdev
  328. KCONFIG:= \
  329. CONFIG_KS0108=n \
  330. CONFIG_PARPORT_PC \
  331. CONFIG_PARPORT_1284=y \
  332. CONFIG_PARPORT_PC_FIFO=y \
  333. CONFIG_PARPORT_PC_PCMCIA=n \
  334. CONFIG_PARPORT_PC_SUPERIO=y \
  335. CONFIG_PARPORT_SERIAL=n \
  336. CONFIG_PARIDE=n \
  337. CONFIG_SCSI_IMM=n \
  338. CONFIG_SCSI_PPA=n
  339. FILES:= \
  340. $(LINUX_DIR)/drivers/parport/parport_pc.ko
  341. AUTOLOAD:=$(call AutoLoad,51,parport_pc)
  342. endef
  343. $(eval $(call KernelPackage,parport-pc))
  344. define KernelPackage/lp
  345. SUBMENU:=$(OTHER_MENU)
  346. TITLE:=Parallel port line printer device support
  347. DEPENDS:=+kmod-ppdev
  348. KCONFIG:= \
  349. CONFIG_PRINTER
  350. FILES:= \
  351. $(LINUX_DIR)/drivers/char/lp.ko
  352. AUTOLOAD:=$(call AutoLoad,52,lp)
  353. endef
  354. $(eval $(call KernelPackage,lp))
  355. define KernelPackage/mmc
  356. SUBMENU:=$(OTHER_MENU)
  357. TITLE:=MMC/SD Card Support
  358. DEPENDS:=@!TARGET_uml
  359. KCONFIG:= \
  360. CONFIG_MMC \
  361. CONFIG_MMC_BLOCK \
  362. CONFIG_MMC_DEBUG=n \
  363. CONFIG_MMC_UNSAFE_RESUME=n \
  364. CONFIG_MMC_TIFM_SD=n \
  365. CONFIG_MMC_WBSD=n \
  366. CONFIG_SDIO_UART=n
  367. FILES:= \
  368. $(LINUX_DIR)/drivers/mmc/core/mmc_core.ko \
  369. $(LINUX_DIR)/drivers/mmc/core/mmc_block.ko
  370. AUTOLOAD:=$(call AutoProbe,mmc_core mmc_block,1)
  371. endef
  372. define KernelPackage/mmc/description
  373. Kernel support for MMC/SD cards
  374. endef
  375. $(eval $(call KernelPackage,mmc))
  376. define KernelPackage/sdhci
  377. SUBMENU:=$(OTHER_MENU)
  378. TITLE:=Secure Digital Host Controller Interface support
  379. DEPENDS:=+kmod-mmc
  380. KCONFIG:= \
  381. CONFIG_MMC_SDHCI \
  382. CONFIG_MMC_SDHCI_PLTFM \
  383. CONFIG_MMC_SDHCI_PCI=n
  384. FILES:= \
  385. $(LINUX_DIR)/drivers/mmc/host/sdhci.ko \
  386. $(LINUX_DIR)/drivers/mmc/host/sdhci-pltfm.ko
  387. AUTOLOAD:=$(call AutoProbe,sdhci-pltfm,1)
  388. endef
  389. define KernelPackage/sdhci/description
  390. Kernel support for SDHCI Hosts
  391. endef
  392. $(eval $(call KernelPackage,sdhci))
  393. define KernelPackage/rfkill
  394. SUBMENU:=$(OTHER_MENU)
  395. TITLE:=RF switch subsystem support
  396. DEPENDS:=@USE_RFKILL +kmod-input-core
  397. KCONFIG:= \
  398. CONFIG_RFKILL_FULL \
  399. CONFIG_RFKILL_INPUT=y \
  400. CONFIG_RFKILL_LEDS=y
  401. FILES:= \
  402. $(LINUX_DIR)/net/rfkill/rfkill.ko
  403. AUTOLOAD:=$(call AutoLoad,20,rfkill)
  404. endef
  405. define KernelPackage/rfkill/description
  406. Say Y here if you want to have control over RF switches
  407. found on many WiFi and Bluetooth cards
  408. endef
  409. $(eval $(call KernelPackage,rfkill))
  410. define KernelPackage/softdog
  411. SUBMENU:=$(OTHER_MENU)
  412. TITLE:=Software watchdog driver
  413. KCONFIG:=CONFIG_SOFT_WATCHDOG \
  414. CONFIG_SOFT_WATCHDOG_PRETIMEOUT=n
  415. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/softdog.ko
  416. AUTOLOAD:=$(call AutoLoad,50,softdog,1)
  417. endef
  418. define KernelPackage/softdog/description
  419. Software watchdog driver
  420. endef
  421. $(eval $(call KernelPackage,softdog))
  422. define KernelPackage/ssb
  423. SUBMENU:=$(OTHER_MENU)
  424. TITLE:=Silicon Sonics Backplane glue code
  425. DEPENDS:=@PCI_SUPPORT @!TARGET_bcm47xx @!TARGET_bcm63xx
  426. KCONFIG:=\
  427. CONFIG_SSB \
  428. CONFIG_SSB_B43_PCI_BRIDGE=y \
  429. CONFIG_SSB_DRIVER_MIPS=n \
  430. CONFIG_SSB_DRIVER_PCICORE=y \
  431. CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y \
  432. CONFIG_SSB_PCIHOST=y \
  433. CONFIG_SSB_PCIHOST_POSSIBLE=y \
  434. CONFIG_SSB_POSSIBLE=y \
  435. CONFIG_SSB_SPROM=y \
  436. CONFIG_SSB_SILENT=y
  437. FILES:=$(LINUX_DIR)/drivers/ssb/ssb.ko
  438. AUTOLOAD:=$(call AutoLoad,18,ssb,1)
  439. endef
  440. define KernelPackage/ssb/description
  441. Silicon Sonics Backplane glue code.
  442. endef
  443. $(eval $(call KernelPackage,ssb))
  444. define KernelPackage/bcma
  445. SUBMENU:=$(OTHER_MENU)
  446. TITLE:=BCMA support
  447. DEPENDS:=@PCI_SUPPORT @!TARGET_bcm47xx @!TARGET_bcm53xx
  448. KCONFIG:=\
  449. CONFIG_BCMA \
  450. CONFIG_BCMA_POSSIBLE=y \
  451. CONFIG_BCMA_BLOCKIO=y \
  452. CONFIG_BCMA_HOST_PCI_POSSIBLE=y \
  453. CONFIG_BCMA_HOST_PCI=y \
  454. CONFIG_BCMA_HOST_SOC=n \
  455. CONFIG_BCMA_DRIVER_MIPS=n \
  456. CONFIG_BCMA_DRIVER_PCI_HOSTMODE=n \
  457. CONFIG_BCMA_DRIVER_GMAC_CMN=n \
  458. CONFIG_BCMA_DEBUG=n
  459. FILES:=$(LINUX_DIR)/drivers/bcma/bcma.ko
  460. AUTOLOAD:=$(call AutoLoad,29,bcma)
  461. endef
  462. define KernelPackage/bcma/description
  463. Bus driver for Broadcom specific Advanced Microcontroller Bus Architecture
  464. endef
  465. $(eval $(call KernelPackage,bcma))
  466. define KernelPackage/rtc-ds1307
  467. SUBMENU:=$(OTHER_MENU)
  468. TITLE:=Dallas/Maxim DS1307 (and compatible) RTC support
  469. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  470. DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c +kmod-hwmon-core
  471. KCONFIG:=CONFIG_RTC_DRV_DS1307 \
  472. CONFIG_RTC_CLASS=y
  473. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ds1307.ko
  474. AUTOLOAD:=$(call AutoProbe,rtc-ds1307)
  475. endef
  476. define KernelPackage/rtc-ds1307/description
  477. Kernel module for Dallas/Maxim DS1307/DS1337/DS1338/DS1340/DS1388/DS3231,
  478. Epson RX-8025 and various other compatible RTC chips connected via I2C.
  479. endef
  480. $(eval $(call KernelPackage,rtc-ds1307))
  481. define KernelPackage/rtc-ds1374
  482. SUBMENU:=$(OTHER_MENU)
  483. TITLE:=Dallas/Maxim DS1374 RTC support
  484. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  485. DEPENDS:=+kmod-i2c-core
  486. KCONFIG:=CONFIG_RTC_DRV_DS1374 \
  487. CONFIG_RTC_DRV_DS1374_WDT=n \
  488. CONFIG_RTC_CLASS=y
  489. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ds1374.ko
  490. AUTOLOAD:=$(call AutoProbe,rtc-ds1374)
  491. endef
  492. define KernelPackage/rtc-ds1374/description
  493. Kernel module for Dallas/Maxim DS1374.
  494. endef
  495. $(eval $(call KernelPackage,rtc-ds1374))
  496. define KernelPackage/rtc-ds1672
  497. SUBMENU:=$(OTHER_MENU)
  498. TITLE:=Dallas/Maxim DS1672 RTC support
  499. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  500. DEPENDS:=+kmod-i2c-core
  501. KCONFIG:=CONFIG_RTC_DRV_DS1672 \
  502. CONFIG_RTC_CLASS=y
  503. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ds1672.ko
  504. AUTOLOAD:=$(call AutoProbe,rtc-ds1672)
  505. endef
  506. define KernelPackage/rtc-ds1672/description
  507. Kernel module for Dallas/Maxim DS1672 RTC.
  508. endef
  509. $(eval $(call KernelPackage,rtc-ds1672))
  510. define KernelPackage/rtc-em3027
  511. SUBMENU:=$(OTHER_MENU)
  512. TITLE:=Microelectronic EM3027 RTC support
  513. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  514. DEPENDS:=+kmod-i2c-core
  515. KCONFIG:=CONFIG_RTC_DRV_EM3027 \
  516. CONFIG_RTC_CLASS=y
  517. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-em3027.ko
  518. AUTOLOAD:=$(call AutoProbe,rtc-em3027)
  519. endef
  520. define KernelPackage/rtc-em3027/description
  521. Kernel module for Microelectronic EM3027 RTC.
  522. endef
  523. $(eval $(call KernelPackage,rtc-em3027))
  524. define KernelPackage/rtc-isl1208
  525. SUBMENU:=$(OTHER_MENU)
  526. TITLE:=Intersil ISL1208 RTC support
  527. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  528. DEPENDS:=+kmod-i2c-core
  529. KCONFIG:=CONFIG_RTC_DRV_ISL1208 \
  530. CONFIG_RTC_CLASS=y
  531. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-isl1208.ko
  532. AUTOLOAD:=$(call AutoProbe,rtc-isl1208)
  533. endef
  534. define KernelPackage/rtc-isl1208/description
  535. Kernel module for Intersil ISL1208 RTC.
  536. endef
  537. $(eval $(call KernelPackage,rtc-isl1208))
  538. define KernelPackage/rtc-pcf8563
  539. SUBMENU:=$(OTHER_MENU)
  540. TITLE:=Philips PCF8563/Epson RTC8564 RTC support
  541. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  542. DEPENDS:=+kmod-i2c-core
  543. KCONFIG:=CONFIG_RTC_DRV_PCF8563 \
  544. CONFIG_RTC_CLASS=y
  545. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf8563.ko
  546. AUTOLOAD:=$(call AutoProbe,rtc-pcf8563)
  547. endef
  548. define KernelPackage/rtc-pcf8563/description
  549. Kernel module for Philips PCF8563 RTC chip.
  550. The Epson RTC8564 should work as well.
  551. endef
  552. $(eval $(call KernelPackage,rtc-pcf8563))
  553. define KernelPackage/rtc-pcf2123
  554. SUBMENU:=$(OTHER_MENU)
  555. TITLE:=Philips PCF2123 RTC support
  556. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  557. DEPENDS:=+kmod-regmap-spi
  558. KCONFIG:=CONFIG_RTC_DRV_PCF2123 \
  559. CONFIG_RTC_CLASS=y
  560. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf2123.ko
  561. AUTOLOAD:=$(call AutoProbe,rtc-pcf2123)
  562. endef
  563. define KernelPackage/rtc-pcf2123/description
  564. Kernel module for Philips PCF2123 RTC chip
  565. endef
  566. $(eval $(call KernelPackage,rtc-pcf2123))
  567. define KernelPackage/rtc-pcf2127
  568. SUBMENU:=$(OTHER_MENU)
  569. TITLE:=NXP PCF2127 and PCF2129 RTC support
  570. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  571. DEPENDS:=+kmod-i2c-core +kmod-regmap-spi
  572. KCONFIG:=CONFIG_RTC_DRV_PCF2127 \
  573. CONFIG_RTC_CLASS=y
  574. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf2127.ko
  575. AUTOLOAD:=$(call AutoProbe,rtc-pcf2127)
  576. endef
  577. define KernelPackage/rtc-pcf2127/description
  578. Kernel module for NXP PCF2127 and PCF2129 RTC chip
  579. endef
  580. $(eval $(call KernelPackage,rtc-pcf2127))
  581. define KernelPackage/rtc-rs5c372a
  582. SUBMENU:=$(OTHER_MENU)
  583. TITLE:=Ricoh R2025S/D, RS5C372A/B, RV5C386, RV5C387A
  584. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  585. DEPENDS:=+kmod-i2c-core
  586. KCONFIG:=CONFIG_RTC_DRV_RS5C372 \
  587. CONFIG_RTC_CLASS=y
  588. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-rs5c372.ko
  589. AUTOLOAD:=$(call AutoLoad,50,rtc-rs5c372,1)
  590. endef
  591. define KernelPackage/rtc-rs5c372a/description
  592. Kernel module for Ricoh R2025S/D, RS5C372A/B, RV5C386, RV5C387A RTC on chip module
  593. endef
  594. $(eval $(call KernelPackage,rtc-rs5c372a))
  595. define KernelPackage/rtc-rx8025
  596. SUBMENU:=$(OTHER_MENU)
  597. TITLE:=Epson RX-8025 / RX-8035
  598. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  599. DEPENDS:=+kmod-i2c-core
  600. KCONFIG:=CONFIG_RTC_DRV_RX8025 \
  601. CONFIG_RTC_CLASS=y
  602. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-rx8025.ko
  603. AUTOLOAD:=$(call AutoLoad,50,rtc-rx8025,1)
  604. endef
  605. define KernelPackage/rtc-rx8025/description
  606. Kernel module for Epson RX-8025 and RX-8035 I2C RTC chip
  607. endef
  608. $(eval $(call KernelPackage,rtc-rx8025))
  609. define KernelPackage/rtc-s35390a
  610. SUBMENU:=$(OTHER_MENU)
  611. TITLE:=Seico S-35390A
  612. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  613. DEPENDS:=+kmod-i2c-core
  614. KCONFIG:=CONFIG_RTC_DRV_S35390A \
  615. CONFIG_RTC_CLASS=y
  616. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-s35390a.ko
  617. AUTOLOAD:=$(call AutoLoad,50,rtc-s35390a,1)
  618. endef
  619. define KernelPackage/rtc-s35390a/description
  620. Kernel module for Seiko Instruments S-35390A I2C RTC chip
  621. endef
  622. $(eval $(call KernelPackage,rtc-s35390a))
  623. define KernelPackage/mtdtests
  624. SUBMENU:=$(OTHER_MENU)
  625. TITLE:=MTD subsystem tests
  626. KCONFIG:=CONFIG_MTD_TESTS
  627. FILES:=\
  628. $(LINUX_DIR)/drivers/mtd/tests/mtd_nandecctest.ko \
  629. $(LINUX_DIR)/drivers/mtd/tests/mtd_oobtest.ko \
  630. $(LINUX_DIR)/drivers/mtd/tests/mtd_pagetest.ko \
  631. $(LINUX_DIR)/drivers/mtd/tests/mtd_readtest.ko \
  632. $(LINUX_DIR)/drivers/mtd/tests/mtd_speedtest.ko \
  633. $(LINUX_DIR)/drivers/mtd/tests/mtd_stresstest.ko \
  634. $(LINUX_DIR)/drivers/mtd/tests/mtd_subpagetest.ko \
  635. $(LINUX_DIR)/drivers/mtd/tests/mtd_torturetest.ko
  636. endef
  637. define KernelPackage/mtdtests/description
  638. Kernel modules for MTD subsystem/driver testing
  639. endef
  640. $(eval $(call KernelPackage,mtdtests))
  641. define KernelPackage/mtdoops
  642. SUBMENU:=$(OTHER_MENU)
  643. TITLE:=Log panic/oops to an MTD buffer
  644. KCONFIG:=CONFIG_MTD_OOPS
  645. FILES:=$(LINUX_DIR)/drivers/mtd/mtdoops.ko
  646. endef
  647. define KernelPackage/mtdoops/description
  648. Kernel modules for Log panic/oops to an MTD buffer
  649. endef
  650. $(eval $(call KernelPackage,mtdoops))
  651. define KernelPackage/mtdram
  652. SUBMENU:=$(OTHER_MENU)
  653. TITLE:=Test MTD driver using RAM
  654. KCONFIG:=CONFIG_MTD_MTDRAM \
  655. CONFIG_MTDRAM_TOTAL_SIZE=4096 \
  656. CONFIG_MTDRAM_ERASE_SIZE=128
  657. FILES:=$(LINUX_DIR)/drivers/mtd/devices/mtdram.ko
  658. endef
  659. define KernelPackage/mtdram/description
  660. Test MTD driver using RAM
  661. endef
  662. $(eval $(call KernelPackage,mtdram))
  663. define KernelPackage/ramoops
  664. SUBMENU:=$(OTHER_MENU)
  665. TITLE:=Ramoops (pstore-ram)
  666. DEFAULT:=m if ALL_KMODS
  667. KCONFIG:=CONFIG_PSTORE_RAM
  668. DEPENDS:=+kmod-pstore +kmod-reed-solomon
  669. FILES:= $(LINUX_DIR)/fs/pstore/ramoops.ko
  670. AUTOLOAD:=$(call AutoLoad,30,ramoops,1)
  671. endef
  672. define KernelPackage/ramoops/description
  673. Kernel module for pstore-ram (ramoops) crash log storage
  674. endef
  675. $(eval $(call KernelPackage,ramoops))
  676. define KernelPackage/reed-solomon
  677. SUBMENU:=$(OTHER_MENU)
  678. TITLE:=Reed-Solomon error correction
  679. DEFAULT:=m if ALL_KMODS
  680. KCONFIG:=CONFIG_REED_SOLOMON \
  681. CONFIG_REED_SOLOMON_DEC8=y \
  682. CONFIG_REED_SOLOMON_ENC8=y
  683. FILES:= $(LINUX_DIR)/lib/reed_solomon/reed_solomon.ko
  684. AUTOLOAD:=$(call AutoLoad,30,reed_solomon,1)
  685. endef
  686. define KernelPackage/reed-solomon/description
  687. Kernel module for Reed-Solomon error correction
  688. endef
  689. $(eval $(call KernelPackage,reed-solomon))
  690. define KernelPackage/serial-8250
  691. SUBMENU:=$(OTHER_MENU)
  692. TITLE:=8250 UARTs
  693. KCONFIG:= CONFIG_SERIAL_8250 \
  694. CONFIG_SERIAL_8250_PCI \
  695. CONFIG_SERIAL_8250_NR_UARTS=16 \
  696. CONFIG_SERIAL_8250_RUNTIME_UARTS=16 \
  697. CONFIG_SERIAL_8250_EXTENDED=y \
  698. CONFIG_SERIAL_8250_MANY_PORTS=y \
  699. CONFIG_SERIAL_8250_SHARE_IRQ=y \
  700. CONFIG_SERIAL_8250_DETECT_IRQ=n \
  701. CONFIG_SERIAL_8250_RSA=n
  702. FILES:= \
  703. $(LINUX_DIR)/drivers/tty/serial/8250/8250.ko \
  704. $(LINUX_DIR)/drivers/tty/serial/8250/8250_base.ko \
  705. $(if $(CONFIG_PCI),$(LINUX_DIR)/drivers/tty/serial/8250/8250_pci.ko) \
  706. $(if $(CONFIG_GPIOLIB),$(LINUX_DIR)/drivers/tty/serial/serial_mctrl_gpio.ko)
  707. AUTOLOAD:=$(call AutoProbe,8250 8250_base 8250_pci)
  708. endef
  709. define KernelPackage/serial-8250/description
  710. Kernel module for 8250 UART based serial ports
  711. endef
  712. $(eval $(call KernelPackage,serial-8250))
  713. define KernelPackage/serial-8250-exar
  714. SUBMENU:=$(OTHER_MENU)
  715. TITLE:=Exar 8250 UARTs
  716. KCONFIG:= CONFIG_SERIAL_8250_EXAR
  717. FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/8250_exar.ko
  718. AUTOLOAD:=$(call AutoProbe,8250 8250_base 8250_exar)
  719. DEPENDS:=+kmod-serial-8250
  720. endef
  721. define KernelPackage/serial-8250-exar/description
  722. Kernel module for Exar serial ports
  723. endef
  724. $(eval $(call KernelPackage,serial-8250-exar))
  725. define KernelPackage/regmap-core
  726. SUBMENU:=$(OTHER_MENU)
  727. TITLE:=Generic register map support
  728. HIDDEN:=1
  729. KCONFIG:=CONFIG_REGMAP
  730. ifneq ($(wildcard $(LINUX_DIR)/drivers/base/regmap/regmap-core.ko),)
  731. FILES:=$(LINUX_DIR)/drivers/base/regmap/regmap-core.ko
  732. endif
  733. endef
  734. define KernelPackage/regmap-core/description
  735. Generic register map support
  736. endef
  737. $(eval $(call KernelPackage,regmap-core))
  738. define KernelPackage/regmap-spi
  739. SUBMENU:=$(OTHER_MENU)
  740. TITLE:=SPI register map support
  741. DEPENDS:=+kmod-regmap-core
  742. HIDDEN:=1
  743. KCONFIG:=CONFIG_REGMAP_SPI \
  744. CONFIG_SPI=y
  745. FILES:=$(LINUX_DIR)/drivers/base/regmap/regmap-spi.ko
  746. endef
  747. define KernelPackage/regmap-spi/description
  748. SPI register map support
  749. endef
  750. $(eval $(call KernelPackage,regmap-spi))
  751. define KernelPackage/regmap-i2c
  752. SUBMENU:=$(OTHER_MENU)
  753. TITLE:=I2C register map support
  754. DEPENDS:=+kmod-regmap-core +kmod-i2c-core
  755. HIDDEN:=1
  756. KCONFIG:=CONFIG_REGMAP_I2C
  757. FILES:=$(LINUX_DIR)/drivers/base/regmap/regmap-i2c.ko
  758. endef
  759. define KernelPackage/regmap-i2c/description
  760. I2C register map support
  761. endef
  762. $(eval $(call KernelPackage,regmap-i2c))
  763. define KernelPackage/regmap-mmio
  764. SUBMENU:=$(OTHER_MENU)
  765. TITLE:=MMIO register map support
  766. DEPENDS:=+kmod-regmap-core
  767. HIDDEN:=1
  768. KCONFIG:=CONFIG_REGMAP_MMIO
  769. FILES:=$(LINUX_DIR)/drivers/base/regmap/regmap-mmio.ko
  770. endef
  771. define KernelPackage/regmap-mmio/description
  772. MMIO register map support
  773. endef
  774. $(eval $(call KernelPackage,regmap-mmio))
  775. define KernelPackage/ikconfig
  776. SUBMENU:=$(OTHER_MENU)
  777. TITLE:=Kernel configuration via /proc/config.gz
  778. KCONFIG:=CONFIG_IKCONFIG \
  779. CONFIG_IKCONFIG_PROC=y
  780. FILES:=$(LINUX_DIR)/kernel/configs.ko
  781. AUTOLOAD:=$(call AutoLoad,70,configs)
  782. endef
  783. define KernelPackage/ikconfig/description
  784. Kernel configuration via /proc/config.gz
  785. endef
  786. $(eval $(call KernelPackage,ikconfig))
  787. define KernelPackage/zram
  788. SUBMENU:=$(OTHER_MENU)
  789. TITLE:=ZRAM
  790. KCONFIG:= \
  791. CONFIG_ZSMALLOC \
  792. CONFIG_ZRAM \
  793. CONFIG_ZRAM_DEBUG=n \
  794. CONFIG_ZRAM_WRITEBACK=n \
  795. CONFIG_ZSMALLOC_STAT=n
  796. FILES:= \
  797. $(LINUX_DIR)/mm/zsmalloc.ko \
  798. $(LINUX_DIR)/drivers/block/zram/zram.ko
  799. AUTOLOAD:=$(call AutoLoad,20,zsmalloc zram)
  800. endef
  801. define KernelPackage/zram/description
  802. Compressed RAM block device support
  803. endef
  804. define KernelPackage/zram/config
  805. choice
  806. prompt "ZRAM Default compressor"
  807. default ZRAM_DEF_COMP_LZORLE
  808. config ZRAM_DEF_COMP_LZORLE
  809. bool "lzo-rle"
  810. select PACKAGE_kmod-lib-lzo
  811. config ZRAM_DEF_COMP_LZO
  812. bool "lzo"
  813. select PACKAGE_kmod-lib-lzo
  814. config ZRAM_DEF_COMP_LZ4
  815. bool "lz4"
  816. select PACKAGE_kmod-lib-lz4
  817. config ZRAM_DEF_COMP_LZ4HC
  818. bool "lz4-hc"
  819. select PACKAGE_kmod-lib-lz4hc
  820. config ZRAM_DEF_COMP_ZSTD
  821. bool "zstd"
  822. select PACKAGE_kmod-lib-zstd
  823. endchoice
  824. endef
  825. $(eval $(call KernelPackage,zram))
  826. define KernelPackage/pps
  827. SUBMENU:=$(OTHER_MENU)
  828. TITLE:=PPS support
  829. KCONFIG:=CONFIG_PPS
  830. FILES:=$(LINUX_DIR)/drivers/pps/pps_core.ko
  831. AUTOLOAD:=$(call AutoLoad,17,pps_core,1)
  832. endef
  833. define KernelPackage/pps/description
  834. PPS (Pulse Per Second) is a special pulse provided by some GPS
  835. antennae. Userland can use it to get a high-precision time
  836. reference.
  837. endef
  838. $(eval $(call KernelPackage,pps))
  839. define KernelPackage/pps-gpio
  840. SUBMENU:=$(OTHER_MENU)
  841. TITLE:=PPS client using GPIO
  842. DEPENDS:=+kmod-pps
  843. KCONFIG:=CONFIG_PPS_CLIENT_GPIO
  844. FILES:=$(LINUX_DIR)/drivers/pps/clients/pps-gpio.ko
  845. AUTOLOAD:=$(call AutoLoad,18,pps-gpio,1)
  846. endef
  847. define KernelPackage/pps-gpio/description
  848. Support for a PPS source using GPIO. To be useful you must
  849. also register a platform device specifying the GPIO pin and
  850. other options, usually in your board setup.
  851. endef
  852. $(eval $(call KernelPackage,pps-gpio))
  853. define KernelPackage/pps-ldisc
  854. SUBMENU:=$(OTHER_MENU)
  855. TITLE:=PPS line discipline
  856. DEPENDS:=+kmod-pps
  857. KCONFIG:=CONFIG_PPS_CLIENT_LDISC
  858. FILES:=$(LINUX_DIR)/drivers/pps/clients/pps-ldisc.ko
  859. AUTOLOAD:=$(call AutoLoad,18,pps-ldisc,1)
  860. endef
  861. define KernelPackage/pps-ldisc/description
  862. Support for a PPS source connected with the CD (Carrier
  863. Detect) pin of your serial port.
  864. endef
  865. $(eval $(call KernelPackage,pps-ldisc))
  866. define KernelPackage/ptp
  867. SUBMENU:=$(OTHER_MENU)
  868. TITLE:=PTP clock support
  869. DEPENDS:=+kmod-pps
  870. KCONFIG:= \
  871. CONFIG_PTP_1588_CLOCK \
  872. CONFIG_NET_PTP_CLASSIFY=y
  873. FILES:=$(LINUX_DIR)/drivers/ptp/ptp.ko
  874. AUTOLOAD:=$(call AutoLoad,18,ptp,1)
  875. endef
  876. define KernelPackage/ptp/description
  877. The IEEE 1588 standard defines a method to precisely
  878. synchronize distributed clocks over Ethernet networks.
  879. endef
  880. $(eval $(call KernelPackage,ptp))
  881. define KernelPackage/ptp-qoriq
  882. SUBMENU:=$(OTHER_MENU)
  883. TITLE:=Freescale QorIQ PTP support
  884. DEPENDS:=@(TARGET_mpc85xx||TARGET_qoriq) +kmod-ptp
  885. KCONFIG:=CONFIG_PTP_1588_CLOCK_QORIQ
  886. FILES:=$(LINUX_DIR)/drivers/ptp/ptp-qoriq.ko
  887. AUTOLOAD:=$(call AutoProbe,ptp-qoriq)
  888. endef
  889. define KernelPackage/ptp-qoriq/description
  890. Kernel module for IEEE 1588 support for Freescale
  891. QorIQ Ethernet drivers
  892. endef
  893. $(eval $(call KernelPackage,ptp-qoriq))
  894. define KernelPackage/random-core
  895. SUBMENU:=$(OTHER_MENU)
  896. TITLE:=Hardware Random Number Generator Core support
  897. KCONFIG:=CONFIG_HW_RANDOM
  898. FILES:=$(LINUX_DIR)/drivers/char/hw_random/rng-core.ko
  899. endef
  900. define KernelPackage/random-core/description
  901. Kernel module for the HW random number generator core infrastructure
  902. endef
  903. $(eval $(call KernelPackage,random-core))
  904. define KernelPackage/thermal
  905. SUBMENU:=$(OTHER_MENU)
  906. TITLE:=Thermal driver
  907. DEPENDS:=+kmod-hwmon-core
  908. HIDDEN:=1
  909. KCONFIG:= \
  910. CONFIG_THERMAL=y \
  911. CONFIG_THERMAL_OF=y \
  912. CONFIG_CPU_THERMAL=y \
  913. CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y \
  914. CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE=n \
  915. CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE=n \
  916. CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 \
  917. CONFIG_THERMAL_GOV_FAIR_SHARE=n \
  918. CONFIG_THERMAL_GOV_STEP_WISE=y \
  919. CONFIG_THERMAL_GOV_USER_SPACE=n \
  920. CONFIG_THERMAL_HWMON=y \
  921. CONFIG_THERMAL_EMULATION=n
  922. endef
  923. define KernelPackage/thermal/description
  924. Thermal driver offers a generic mechanism for thermal management.
  925. Usually it's made up of one or more thermal zone and cooling device.
  926. endef
  927. $(eval $(call KernelPackage,thermal))
  928. define KernelPackage/gpio-beeper
  929. SUBMENU:=$(OTHER_MENU)
  930. TITLE:=GPIO beeper support
  931. DEPENDS:=+kmod-input-core
  932. KCONFIG:= \
  933. CONFIG_INPUT_MISC=y \
  934. CONFIG_INPUT_GPIO_BEEPER
  935. FILES:= \
  936. $(LINUX_DIR)/drivers/input/misc/gpio-beeper.ko
  937. AUTOLOAD:=$(call AutoLoad,50,gpio-beeper)
  938. endef
  939. define KernelPackage/gpio-beeper/description
  940. This enables playing beeps through an GPIO-connected buzzer
  941. endef
  942. $(eval $(call KernelPackage,gpio-beeper))
  943. define KernelPackage/echo
  944. SUBMENU:=$(OTHER_MENU)
  945. TITLE:=Line Echo Canceller
  946. KCONFIG:=CONFIG_ECHO
  947. FILES:=$(LINUX_DIR)/drivers/misc/echo/echo.ko
  948. AUTOLOAD:=$(call AutoLoad,50,echo)
  949. endef
  950. define KernelPackage/echo/description
  951. This driver provides line echo cancelling support for mISDN and
  952. DAHDI drivers
  953. endef
  954. $(eval $(call KernelPackage,echo))
  955. define KernelPackage/keys-encrypted
  956. SUBMENU:=$(OTHER_MENU)
  957. TITLE:=encrypted keys on kernel keyring
  958. DEPENDS:=@KERNEL_KEYS +kmod-crypto-cbc +kmod-crypto-hmac +kmod-crypto-rng \
  959. +kmod-crypto-sha256 +kmod-keys-trusted
  960. KCONFIG:=CONFIG_ENCRYPTED_KEYS
  961. FILES:=$(LINUX_DIR)/security/keys/encrypted-keys/encrypted-keys.ko
  962. AUTOLOAD:=$(call AutoLoad,01,encrypted-keys,1)
  963. endef
  964. define KernelPackage/keys-encrypted/description
  965. This module provides support for create/encrypting/decrypting keys
  966. in the kernel. Encrypted keys are kernel generated random numbers,
  967. which are encrypted/decrypted with a 'master' symmetric key. The
  968. 'master' key can be either a trusted-key or user-key type.
  969. Userspace only ever sees/stores encrypted blobs.
  970. endef
  971. $(eval $(call KernelPackage,keys-encrypted))
  972. define KernelPackage/keys-trusted
  973. SUBMENU:=$(OTHER_MENU)
  974. TITLE:=TPM trusted keys on kernel keyring
  975. DEPENDS:=@KERNEL_KEYS +kmod-crypto-hash +kmod-crypto-hmac +kmod-crypto-sha1 +kmod-tpm
  976. KCONFIG:=CONFIG_TRUSTED_KEYS
  977. FILES:= $(LINUX_DIR)/security/keys/trusted-keys/trusted.ko
  978. AUTOLOAD:=$(call AutoLoad,01,trusted-keys,1)
  979. endef
  980. define KernelPackage/keys-trusted/description
  981. This module provides support for creating, sealing, and unsealing
  982. keys in the kernel. Trusted keys are random number symmetric keys,
  983. generated and RSA-sealed by the TPM. The TPM only unseals the keys,
  984. if the boot PCRs and other criteria match. Userspace will only ever
  985. see encrypted blobs.
  986. endef
  987. $(eval $(call KernelPackage,keys-trusted))
  988. define KernelPackage/tpm
  989. SUBMENU:=$(OTHER_MENU)
  990. TITLE:=TPM Hardware Support
  991. DEPENDS:= +kmod-random-core +(LINUX_5_15):kmod-asn1-decoder \
  992. +(LINUX_5_15):kmod-asn1-encoder +(LINUX_5_15):kmod-oid-registry
  993. KCONFIG:= CONFIG_TCG_TPM
  994. FILES:= $(LINUX_DIR)/drivers/char/tpm/tpm.ko
  995. AUTOLOAD:=$(call AutoLoad,10,tpm,1)
  996. endef
  997. define KernelPackage/tpm/description
  998. This enables TPM Hardware Support.
  999. endef
  1000. $(eval $(call KernelPackage,tpm))
  1001. define KernelPackage/tpm-tis
  1002. SUBMENU:=$(OTHER_MENU)
  1003. TITLE:=TPM TIS 1.2 Interface / TPM 2.0 FIFO Interface
  1004. DEPENDS:= @TARGET_x86 +kmod-tpm
  1005. KCONFIG:= CONFIG_TCG_TIS
  1006. FILES:= \
  1007. $(LINUX_DIR)/drivers/char/tpm/tpm_tis.ko \
  1008. $(LINUX_DIR)/drivers/char/tpm/tpm_tis_core.ko
  1009. AUTOLOAD:=$(call AutoLoad,20,tpm_tis,1)
  1010. endef
  1011. define KernelPackage/tpm-tis/description
  1012. If you have a TPM security chip that is compliant with the
  1013. TCG TIS 1.2 TPM specification (TPM1.2) or the TCG PTP FIFO
  1014. specification (TPM2.0) say Yes and it will be accessible from
  1015. within Linux.
  1016. endef
  1017. $(eval $(call KernelPackage,tpm-tis))
  1018. define KernelPackage/tpm-i2c-atmel
  1019. SUBMENU:=$(OTHER_MENU)
  1020. TITLE:=TPM I2C Atmel Support
  1021. DEPENDS:= +kmod-tpm +kmod-i2c-core
  1022. KCONFIG:= CONFIG_TCG_TIS_I2C_ATMEL
  1023. FILES:= $(LINUX_DIR)/drivers/char/tpm/tpm_i2c_atmel.ko
  1024. AUTOLOAD:=$(call AutoLoad,40,tpm_i2c_atmel,1)
  1025. endef
  1026. define KernelPackage/tpm-i2c-atmel/description
  1027. This enables the TPM Interface Specification 1.2 Interface (I2C - Atmel)
  1028. endef
  1029. $(eval $(call KernelPackage,tpm-i2c-atmel))
  1030. define KernelPackage/tpm-i2c-infineon
  1031. SUBMENU:=$(OTHER_MENU)
  1032. TITLE:= TPM I2C Infineon driver
  1033. DEPENDS:= +kmod-tpm +kmod-i2c-core
  1034. KCONFIG:= CONFIG_TCG_TIS_I2C_INFINEON
  1035. FILES:= $(LINUX_DIR)/drivers/char/tpm/tpm_i2c_infineon.ko
  1036. AUTOLOAD:= $(call AutoLoad,40,tpm_i2c_infineon,1)
  1037. endef
  1038. define KernelPackage/tpm-i2c-infineon/description
  1039. This enables the TPM Interface Specification 1.2 Interface (I2C - Infineon)
  1040. endef
  1041. $(eval $(call KernelPackage,tpm-i2c-infineon))
  1042. define KernelPackage/i6300esb-wdt
  1043. SUBMENU:=$(OTHER_MENU)
  1044. TITLE:=Intel 6300ESB Timer/Watchdog
  1045. DEPENDS:=@PCI_SUPPORT @!SMALL_FLASH
  1046. KCONFIG:=CONFIG_I6300ESB_WDT \
  1047. CONFIG_WATCHDOG_CORE=y
  1048. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/i6300esb.ko
  1049. AUTOLOAD:=$(call AutoLoad,50,i6300esb,1)
  1050. endef
  1051. define KernelPackage/i6300esb-wdt/description
  1052. Kernel module for the watchdog timer built into the Intel
  1053. 6300ESB controller hub. Also used by QEMU/libvirt.
  1054. endef
  1055. $(eval $(call KernelPackage,i6300esb-wdt))
  1056. define KernelPackage/mhi-bus
  1057. SUBMENU:=$(OTHER_MENU)
  1058. TITLE:=MHI bus
  1059. DEPENDS:=@LINUX_5_15
  1060. KCONFIG:=CONFIG_MHI_BUS \
  1061. CONFIG_MHI_BUS_DEBUG=y
  1062. FILES:=$(LINUX_DIR)/drivers/bus/mhi/core/mhi.ko
  1063. AUTOLOAD:=$(call AutoProbe,mhi)
  1064. endef
  1065. define KernelPackage/mhi-bus/description
  1066. Kernel module for the Qualcomm MHI bus.
  1067. endef
  1068. $(eval $(call KernelPackage,mhi-bus))
  1069. define KernelPackage/mhi-pci-generic
  1070. SUBMENU:=$(OTHER_MENU)
  1071. TITLE:=MHI PCI controller driver
  1072. DEPENDS:=@LINUX_5_15 +kmod-mhi-bus
  1073. KCONFIG:=CONFIG_MHI_BUS_PCI_GENERIC
  1074. FILES:=$(LINUX_DIR)/drivers/bus/mhi/mhi_pci_generic.ko
  1075. AUTOLOAD:=$(call AutoProbe,mhi_pci_generic)
  1076. endef
  1077. define KernelPackage/mhi-pci-generic/description
  1078. Kernel module for the MHI PCI controller driver.
  1079. endef
  1080. $(eval $(call KernelPackage,mhi-pci-generic))