dsa.mk 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. #
  8. # DSA core
  9. #
  10. DSA_MENU:=DSA Support
  11. define KernelPackage/dsa
  12. SUBMENU:=$(DSA_MENU)
  13. TITLE:=DSA support
  14. KCONFIG:=\
  15. CONFIG_NET_DSA \
  16. CONFIG_NET_SWITCHDEV=y \
  17. CONFIG_NET_DSA_HWMON=n
  18. DEPENDS:=+kmod-libphy
  19. ifeq ($(CONFIG_OF),y)
  20. DEPENDS+=+kmod-of-mdio
  21. endif
  22. FILES:=$(LINUX_DIR)/net/dsa/dsa_core.ko
  23. AUTOLOAD:=$(call AutoLoad,34,dsa_core)
  24. endef
  25. define KernelPackage/dsa/description
  26. Kernel module for DSA support.
  27. endef
  28. $(eval $(call KernelPackage,dsa))
  29. define AddDepends/dsa
  30. SUBMENU:=$(DSA_MENU)
  31. DEPENDS+=kmod-dsa $(1)
  32. endef
  33. #
  34. # Switch drivers
  35. #
  36. define KernelPackage/dsa-mv88e6060
  37. TITLE:=Marvell 88E6060 ethernet switch chip support
  38. KCONFIG:=\
  39. CONFIG_NET_DSA_MV88E6060 \
  40. CONFIG_NET_DSA_TAG_TRAILER=y
  41. FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6060.ko
  42. AUTOLOAD:=$(call AutoLoad,34,mv88e6060)
  43. $(call AddDepends/dsa)
  44. endef
  45. define KernelPackage/dsa-mv88e6060/description
  46. This enables support for the Marvell 88E6060 ethernet switch chips.
  47. endef
  48. $(eval $(call KernelPackage,dsa-mv88e6060))
  49. define KernelPackage/dsa-mv88e6xxx
  50. TITLE:=Marvell 88E6XXX switch support
  51. KCONFIG:=CONFIG_NET_DSA_MV88E6XXX
  52. FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6xxx_drv.ko
  53. AUTOLOAD:=$(call AutoLoad,34,mv88e6xxx_drv)
  54. $(call AddDepends/dsa)
  55. endef
  56. define KernelPackage/dsa-mv88e6xxx/description
  57. This enables support for the Marvell 88E6XXX ethernet switch chips.
  58. endef
  59. $(eval $(call KernelPackage,dsa-mv88e6xxx))
  60. define AddDepends/dsa-mv88e6xxx
  61. SUBMENU:=$(DSA_MENU)
  62. DEPENDS+=kmod-dsa kmod-dsa-mv88e6xxx $(1)
  63. endef
  64. define KernelPackage/dsa-mv88e6131
  65. TITLE:=Marvell 88E6085/6095/6095F/6131 switch support
  66. KCONFIG:=\
  67. CONFIG_NET_DSA_MV88E6131 \
  68. CONFIG_NET_DSA_TAG_DSA=y
  69. $(call AddDepends/dsa-mv88e6xxx)
  70. endef
  71. define KernelPackage/dsa-mv88e6131/description
  72. This enables support for the Marvell 88E6085/6095/6095F/6131 ethernet switch chips.
  73. endef
  74. $(eval $(call KernelPackage,dsa-mv88e6131))
  75. define KernelPackage/dsa-mv88e6123
  76. TITLE:=Marvell 88E6123/6161/6165 switch support
  77. KCONFIG:=\
  78. CONFIG_NET_DSA_MV88E6123_61_65 \
  79. CONFIG_NET_DSA_TAG_EDSA=y
  80. $(call AddDepends/dsa-mv88e6xxx)
  81. endef
  82. define KernelPackage/dsa-mv88e6123/description
  83. This enables support for the Marvell 88E6123/6161/6165 ethernet switch chips.
  84. endef
  85. $(eval $(call KernelPackage,dsa-mv88e6123))
  86. define KernelPackage/dsa-mv88e6171
  87. TITLE:=Marvell 88E6171/6172 switch support
  88. KCONFIG:=\
  89. CONFIG_NET_DSA_MV88E6131 \
  90. CONFIG_NET_DSA_TAG_DSA=y
  91. $(call AddDepends/dsa-mv88e6xxx)
  92. endef
  93. define KernelPackage/dsa-mv88e6171/description
  94. This enables support for the Marvell 88E6171/6172 ethernet switch chips.
  95. endef
  96. $(eval $(call KernelPackage,dsa-mv88e6171))
  97. define KernelPackage/dsa-mv88e6352
  98. TITLE:=Marvell 88E6176/88E6352 switch support
  99. KCONFIG:=\
  100. CONFIG_NET_DSA_MV88E6352 \
  101. CONFIG_NET_DSA_TAG_DSA=y
  102. $(call AddDepends/dsa-mv88e6xxx)
  103. endef
  104. define KernelPackage/dsa-mv88e6352/description
  105. This enables support for the Marvell 88E6176/88E6352 ethernet switch chips.
  106. endef
  107. $(eval $(call KernelPackage,dsa-mv88e6352))