modules.mk 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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_CLASS=y \
  13. CONFIG_RTC_DRV_SUNXI=m
  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 @!LINUX_4_4 +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/eeprom-sunxi
  39. SUBMENU:=$(OTHER_MENU)
  40. TITLE:=AllWinner Security ID fuse support
  41. DEPENDS:=@TARGET_sunxi @!LINUX_4_4
  42. KCONFIG:= \
  43. CONFIG_EEPROM_SUNXI_SID
  44. FILES:=$(LINUX_DIR)/drivers/misc/eeprom/sunxi_sid.ko
  45. AUTOLOAD:=$(call AutoLoad,50,sunxi_sid)
  46. endef
  47. define KernelPackage/eeprom-sunxi/description
  48. Support for the AllWinner Security ID fuse support
  49. endef
  50. $(eval $(call KernelPackage,eeprom-sunxi))
  51. define KernelPackage/ata-sunxi
  52. TITLE:=AllWinner sunXi AHCI SATA support
  53. SUBMENU:=$(BLOCK_MENU)
  54. DEPENDS:=@TARGET_sunxi +kmod-ata-ahci-platform +kmod-scsi-core
  55. KCONFIG:=CONFIG_AHCI_SUNXI
  56. FILES:=$(LINUX_DIR)/drivers/ata/ahci_sunxi.ko
  57. AUTOLOAD:=$(call AutoLoad,41,ahci_sunxi,1)
  58. endef
  59. define KernelPackage/ata-sunxi/description
  60. SATA support for the AllWinner sunXi SoC's onboard AHCI SATA
  61. endef
  62. $(eval $(call KernelPackage,ata-sunxi))
  63. define KernelPackage/sun4i-emac
  64. SUBMENU:=$(NETWORK_DEVICES_MENU)
  65. TITLE:=AllWinner EMAC Ethernet support
  66. DEPENDS:=@TARGET_sunxi +LINUX_4_4:kmod-of-mdio +LINUX_4_4:kmod-libphy
  67. KCONFIG:=CONFIG_SUN4I_EMAC
  68. FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
  69. AUTOLOAD:=$(call AutoProbe,sun4i-emac)
  70. endef
  71. $(eval $(call KernelPackage,sun4i-emac))
  72. define KernelPackage/wdt-sunxi
  73. SUBMENU:=$(OTHER_MENU)
  74. TITLE:=AllWinner sunXi Watchdog timer
  75. DEPENDS:=@TARGET_sunxi
  76. KCONFIG:=CONFIG_SUNXI_WATCHDOG
  77. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/sunxi_wdt.ko
  78. AUTOLOAD:=$(call AutoLoad,51,sunxi_wdt)
  79. endef
  80. define KernelPackage/wdt-sunxi/description
  81. Kernel module for AllWinner sunXi watchdog timer.
  82. endef
  83. $(eval $(call KernelPackage,wdt-sunxi))
  84. define KernelPackage/sound-soc-sunxi
  85. TITLE:=AllWinner built-in SoC sound support
  86. KCONFIG:= \
  87. CONFIG_SND_SUNXI_SOC_CODEC \
  88. CONFIG_SND_SUN4I_CODEC
  89. ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,4.4.0)),1)
  90. FILES+=$(LINUX_DIR)/sound/soc/sunxi/sunxi-codec.ko
  91. AUTOLOAD:=$(call AutoLoad,65,sunxi-codec)
  92. endif
  93. ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,4.4.0)),1)
  94. FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-codec.ko
  95. AUTOLOAD:=$(call AutoLoad,65,sun4i-codec)
  96. endif
  97. DEPENDS:=@TARGET_sunxi +kmod-sound-soc-core
  98. $(call AddDepends/sound)
  99. endef
  100. define KernelPackage/sound-soc-sunxi/description
  101. Kernel support for AllWinner built-in SoC audio
  102. endef
  103. $(eval $(call KernelPackage,sound-soc-sunxi))