modules.mk 2.7 KB

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