1
0

modules.mk 2.3 KB

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