dsa.mk 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. FILES:=$(LINUX_DIR)/net/dsa/dsa_core.ko
  19. AUTOLOAD:=$(call AutoLoad,34,dsa_core)
  20. endef
  21. define KernelPackage/dsa/description
  22. Kernel module for DSA support.
  23. endef
  24. $(eval $(call KernelPackage,dsa))
  25. define AddDepends/dsa
  26. SUBMENU:=$(DSA_MENU)
  27. DEPENDS+=kmod-dsa $(1)
  28. endef
  29. #
  30. # Switch drivers
  31. #
  32. define KernelPackage/dsa-mv88e6060
  33. TITLE:=Marvell 88E6060 ethernet switch chip support
  34. KCONFIG:=\
  35. CONFIG_NET_DSA_MV88E6060 \
  36. CONFIG_NET_DSA_TAG_TRAILER=y
  37. FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6060.ko
  38. AUTOLOAD:=$(call AutoLoad,34,mv88e6060)
  39. $(call AddDepends/dsa)
  40. endef
  41. define KernelPackage/dsa-mv88e6060/description
  42. This enables support for the Marvell 88E6060 ethernet switch chips.
  43. endef
  44. $(eval $(call KernelPackage,dsa-mv88e6060))
  45. define KernelPackage/dsa-mv88e6xxx
  46. TITLE:=Marvell 88E6XXX switch support
  47. KCONFIG:=CONFIG_NET_DSA_MV88E6XXX
  48. FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6xxx_drv.ko
  49. AUTOLOAD:=$(call AutoLoad,34,mv88e6xxx_drv)
  50. $(call AddDepends/dsa)
  51. endef
  52. define KernelPackage/dsa-mv88e6xxx/description
  53. This enables support for the Marvell 88E6XXX ethernet switch chips.
  54. endef
  55. $(eval $(call KernelPackage,dsa-mv88e6xxx))
  56. define AddDepends/dsa-mv88e6xxx
  57. SUBMENU:=$(DSA_MENU)
  58. DEPENDS+=kmod-dsa kmod-dsa-mv88e6xxx $(1)
  59. endef
  60. define KernelPackage/dsa-mv88e6131
  61. TITLE:=Marvell 88E6085/6095/6095F/6131 switch support
  62. KCONFIG:=\
  63. CONFIG_NET_DSA_MV88E6131 \
  64. CONFIG_NET_DSA_TAG_DSA=y
  65. $(call AddDepends/dsa-mv88e6xxx)
  66. endef
  67. define KernelPackage/dsa-mv88e6131/description
  68. This enables support for the Marvell 88E6085/6095/6095F/6131 ethernet switch chips.
  69. endef
  70. $(eval $(call KernelPackage,dsa-mv88e6131))
  71. define KernelPackage/dsa-mv88e6123
  72. TITLE:=Marvell 88E6123/6161/6165 switch support
  73. KCONFIG:=\
  74. CONFIG_NET_DSA_MV88E6123_61_65 \
  75. CONFIG_NET_DSA_TAG_EDSA=y
  76. $(call AddDepends/dsa-mv88e6xxx)
  77. endef
  78. define KernelPackage/dsa-mv88e6123/description
  79. This enables support for the Marvell 88E6123/6161/6165 ethernet switch chips.
  80. endef
  81. $(eval $(call KernelPackage,dsa-mv88e6123))
  82. define KernelPackage/dsa-mv88e6171
  83. TITLE:=Marvell 88E6171/6172 switch support
  84. KCONFIG:=\
  85. CONFIG_NET_DSA_MV88E6131 \
  86. CONFIG_NET_DSA_TAG_DSA=y
  87. $(call AddDepends/dsa-mv88e6xxx)
  88. endef
  89. define KernelPackage/dsa-mv88e6171/description
  90. This enables support for the Marvell 88E6171/6172 ethernet switch chips.
  91. endef
  92. $(eval $(call KernelPackage,dsa-mv88e6171))
  93. define KernelPackage/dsa-mv88e6352
  94. TITLE:=Marvell 88E6176/88E6352 switch support
  95. KCONFIG:=\
  96. CONFIG_NET_DSA_MV88E6352 \
  97. CONFIG_NET_DSA_TAG_DSA=y
  98. $(call AddDepends/dsa-mv88e6xxx)
  99. endef
  100. define KernelPackage/dsa-mv88e6352/description
  101. This enables support for the Marvell 88E6176/88E6352 ethernet switch chips.
  102. endef
  103. $(eval $(call KernelPackage,dsa-mv88e6352))