modules.mk 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #
  2. # Copyright (C) 2013 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 +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
  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-scsi-core
  55. KCONFIG:=\
  56. CONFIG_AHCI_SUNXI \
  57. CONFIG_SATA_AHCI_PLATFORM
  58. FILES:=$(LINUX_DIR)/drivers/ata/ahci_sunxi.ko
  59. AUTOLOAD:=$(call AutoLoad,41,ahci_sunxi,1)
  60. endef
  61. define KernelPackage/ata-sunxi/description
  62. SATA support for the AllWinner sunXi SoC's onboard AHCI SATA
  63. endef
  64. $(eval $(call KernelPackage,ata-sunxi))
  65. define KernelPackage/sun4i-emac
  66. SUBMENU:=$(NETWORK_DEVICES_MENU)
  67. TITLE:=AllWinner EMAC Ethernet support
  68. DEPENDS:=@TARGET_sunxi
  69. KCONFIG:=CONFIG_SUN4I_EMAC
  70. FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
  71. AUTOLOAD:=$(call AutoProbe,sun4i-emac)
  72. endef
  73. $(eval $(call KernelPackage,sun4i-emac))
  74. define KernelPackage/wdt-sunxi
  75. SUBMENU:=$(OTHER_MENU)
  76. TITLE:=AllWinner sunXi Watchdog timer
  77. DEPENDS:=@TARGET_sunxi
  78. KCONFIG:=CONFIG_SUNXI_WATCHDOG
  79. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/sunxi_wdt.ko
  80. AUTOLOAD:=$(call AutoLoad,51,sunxi_wdt)
  81. endef
  82. define KernelPackage/wdt-sunxi/description
  83. Kernel module for AllWinner sunXi watchdog timer.
  84. endef
  85. $(eval $(call KernelPackage,wdt-sunxi))