modules.mk 2.7 KB

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