modules.mk 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2013-2016 OpenWrt.org
  4. define KernelPackage/mfd-ac100
  5. SUBMENU:=$(OTHER_MENU)
  6. TITLE:=X-Powers AC100 MFD support
  7. DEPENDS:=@TARGET_sunxi
  8. KCONFIG:= \
  9. CONFIG_MFD_AC100
  10. FILES:=$(LINUX_DIR)/drivers/mfd/ac100.ko
  11. AUTOLOAD:=$(call AutoLoad,50,ac100)
  12. endef
  13. define KernelPackage/mfd-ac100/description
  14. Support for the X-Powers AC100 RTC/audio chip
  15. endef
  16. $(eval $(call KernelPackage,mfd-ac100))
  17. define KernelPackage/rtc-ac100
  18. SUBMENU:=$(OTHER_MENU)
  19. TITLE:=X-Powers AC100 RTC support
  20. DEPENDS:=@TARGET_sunxi +kmod-mfd-ac100
  21. $(call AddDepends/rtc)
  22. KCONFIG:= \
  23. CONFIG_RTC_DRV_AC100 \
  24. CONFIG_RTC_CLASS=y
  25. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ac100.ko
  26. AUTOLOAD:=$(call AutoLoad,50,rtc-ac100)
  27. endef
  28. define KernelPackage/rtc-ac100/description
  29. Support for the X-Powers AC100 RTC
  30. endef
  31. $(eval $(call KernelPackage,rtc-ac100))
  32. define KernelPackage/rtc-sunxi
  33. SUBMENU:=$(OTHER_MENU)
  34. TITLE:=Sunxi SoC built-in RTC support
  35. DEPENDS:=@(TARGET_sunxi&&RTC_SUPPORT)
  36. KCONFIG:= \
  37. CONFIG_RTC_DRV_SUNXI \
  38. CONFIG_RTC_CLASS=y
  39. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-sunxi.ko
  40. AUTOLOAD:=$(call AutoLoad,50,rtc-sunxi)
  41. endef
  42. define KernelPackage/rtc-sunxi/description
  43. Support for the AllWinner sunXi SoC's onboard RTC
  44. endef
  45. $(eval $(call KernelPackage,rtc-sunxi))
  46. define KernelPackage/sunxi-ir
  47. SUBMENU:=$(OTHER_MENU)
  48. TITLE:=Sunxi SoC built-in IR support
  49. DEPENDS:=@(TARGET_sunxi&&RTC_SUPPORT) +kmod-input-core
  50. KCONFIG:= \
  51. CONFIG_MEDIA_SUPPORT=y \
  52. CONFIG_MEDIA_RC_SUPPORT=y \
  53. CONFIG_RC_DEVICES=y \
  54. CONFIG_RC_CORE=y \
  55. CONFIG_IR_SUNXI
  56. FILES:=$(LINUX_DIR)/drivers/media/rc/sunxi-cir.ko
  57. AUTOLOAD:=$(call AutoLoad,50,sunxi-cir)
  58. endef
  59. define KernelPackage/sunxi-ir/description
  60. Support for the AllWinner sunXi SoC's onboard IR
  61. endef
  62. $(eval $(call KernelPackage,sunxi-ir))
  63. define KernelPackage/ata-sunxi
  64. TITLE:=AllWinner sunXi AHCI SATA support
  65. SUBMENU:=$(BLOCK_MENU)
  66. DEPENDS:=@TARGET_sunxi +kmod-ata-ahci-platform +kmod-scsi-core
  67. KCONFIG:=CONFIG_AHCI_SUNXI
  68. FILES:=$(LINUX_DIR)/drivers/ata/ahci_sunxi.ko
  69. AUTOLOAD:=$(call AutoLoad,41,ahci_sunxi,1)
  70. endef
  71. define KernelPackage/ata-sunxi/description
  72. SATA support for the AllWinner sunXi SoC's onboard AHCI SATA
  73. endef
  74. $(eval $(call KernelPackage,ata-sunxi))
  75. define KernelPackage/sun4i-emac
  76. SUBMENU:=$(NETWORK_DEVICES_MENU)
  77. TITLE:=AllWinner EMAC Ethernet support
  78. DEPENDS:=@TARGET_sunxi +kmod-of-mdio +kmod-libphy
  79. KCONFIG:=CONFIG_SUN4I_EMAC
  80. FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
  81. AUTOLOAD:=$(call AutoProbe,sun4i-emac)
  82. endef
  83. $(eval $(call KernelPackage,sun4i-emac))
  84. define KernelPackage/sound-soc-sunxi
  85. TITLE:=AllWinner built-in SoC sound support
  86. KCONFIG:=CONFIG_SND_SUN4I_CODEC
  87. FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-codec.ko
  88. AUTOLOAD:=$(call AutoLoad,65,sun4i-codec)
  89. DEPENDS:=@TARGET_sunxi +kmod-sound-soc-core
  90. $(call AddDepends/sound)
  91. endef
  92. define KernelPackage/sound-soc-sunxi/description
  93. Kernel support for AllWinner built-in SoC audio
  94. endef
  95. $(eval $(call KernelPackage,sound-soc-sunxi))
  96. define KernelPackage/sound-soc-sunxi-spdif
  97. TITLE:=Allwinner A10 SPDIF Support
  98. KCONFIG:=CONFIG_SND_SUN4I_SPDIF
  99. FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-spdif.ko
  100. AUTOLOAD:=$(call AutoLoad,65,sun4i-spdif)
  101. DEPENDS:=@TARGET_sunxi +kmod-sound-soc-spdif
  102. $(call AddDepends/sound)
  103. endef
  104. define KernelPackage/sound-soc-sunxi-spdif/description
  105. Kernel support for Allwinner A10 SPDIF Support
  106. endef
  107. $(eval $(call KernelPackage,sound-soc-sunxi-spdif))