kernel: add missing libphy dep to DSA
[openwrt.git] / package / kernel / linux / modules / dsa.mk
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 #
9 # DSA core
10 #
11
12 DSA_MENU:=DSA Support
13
14 define KernelPackage/dsa
15   SUBMENU:=$(DSA_MENU)
16   TITLE:=DSA support
17   KCONFIG:=\
18         CONFIG_NET_DSA \
19         CONFIG_NET_SWITCHDEV=y \
20         CONFIG_NET_DSA_HWMON=n
21   DEPENDS:=+kmod-libphy
22   FILES:=$(LINUX_DIR)/net/dsa/dsa_core.ko
23   AUTOLOAD:=$(call AutoLoad,34,dsa_core)
24 endef
25
26 define KernelPackage/dsa/description
27  Kernel module for DSA support.
28 endef
29
30 $(eval $(call KernelPackage,dsa))
31
32
33 define AddDepends/dsa
34   SUBMENU:=$(DSA_MENU)
35   DEPENDS+=kmod-dsa $(1)
36 endef
37
38
39 #
40 # Switch drivers
41 #
42
43 define KernelPackage/dsa-mv88e6060
44   TITLE:=Marvell 88E6060 ethernet switch chip support
45   KCONFIG:=\
46         CONFIG_NET_DSA_MV88E6060 \
47         CONFIG_NET_DSA_TAG_TRAILER=y
48   FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6060.ko
49   AUTOLOAD:=$(call AutoLoad,34,mv88e6060)
50   $(call AddDepends/dsa)
51 endef
52
53 define KernelPackage/dsa-mv88e6060/description
54   This enables support for the Marvell 88E6060 ethernet switch chips.
55 endef
56
57 $(eval $(call KernelPackage,dsa-mv88e6060))
58
59
60 define KernelPackage/dsa-mv88e6xxx
61   TITLE:=Marvell 88E6XXX switch support
62   KCONFIG:=CONFIG_NET_DSA_MV88E6XXX
63   FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6xxx_drv.ko
64   AUTOLOAD:=$(call AutoLoad,34,mv88e6xxx_drv)
65   $(call AddDepends/dsa)
66 endef
67
68 define KernelPackage/dsa-mv88e6xxx/description
69   This enables support for the Marvell 88E6XXX ethernet switch chips.
70 endef
71
72 $(eval $(call KernelPackage,dsa-mv88e6xxx))
73
74 define AddDepends/dsa-mv88e6xxx
75   SUBMENU:=$(DSA_MENU)
76   DEPENDS+=kmod-dsa kmod-dsa-mv88e6xxx $(1)
77 endef
78
79
80 define KernelPackage/dsa-mv88e6131
81   TITLE:=Marvell 88E6085/6095/6095F/6131 switch support
82   KCONFIG:=\
83         CONFIG_NET_DSA_MV88E6131 \
84         CONFIG_NET_DSA_TAG_DSA=y
85   $(call AddDepends/dsa-mv88e6xxx)
86 endef
87
88 define KernelPackage/dsa-mv88e6131/description
89   This enables support for the Marvell 88E6085/6095/6095F/6131 ethernet switch chips.
90 endef
91
92 $(eval $(call KernelPackage,dsa-mv88e6131))
93
94
95 define KernelPackage/dsa-mv88e6123
96   TITLE:=Marvell 88E6123/6161/6165 switch support
97   KCONFIG:=\
98         CONFIG_NET_DSA_MV88E6123_61_65 \
99         CONFIG_NET_DSA_TAG_EDSA=y
100   $(call AddDepends/dsa-mv88e6xxx)
101 endef
102
103 define KernelPackage/dsa-mv88e6123/description
104   This enables support for the Marvell 88E6123/6161/6165 ethernet switch chips.
105 endef
106
107 $(eval $(call KernelPackage,dsa-mv88e6123))
108
109
110 define KernelPackage/dsa-mv88e6171
111   TITLE:=Marvell 88E6171/6172 switch support
112   KCONFIG:=\
113         CONFIG_NET_DSA_MV88E6131 \
114         CONFIG_NET_DSA_TAG_DSA=y
115   $(call AddDepends/dsa-mv88e6xxx)
116 endef
117
118 define KernelPackage/dsa-mv88e6171/description
119   This enables support for the Marvell 88E6171/6172 ethernet switch chips.
120 endef
121
122 $(eval $(call KernelPackage,dsa-mv88e6171))
123
124
125 define KernelPackage/dsa-mv88e6352
126   TITLE:=Marvell 88E6176/88E6352 switch support
127   KCONFIG:=\
128         CONFIG_NET_DSA_MV88E6352 \
129         CONFIG_NET_DSA_TAG_DSA=y
130   $(call AddDepends/dsa-mv88e6xxx)
131 endef
132
133 define KernelPackage/dsa-mv88e6352/description
134   This enables support for the Marvell 88E6176/88E6352 ethernet switch chips.
135 endef
136
137 $(eval $(call KernelPackage,dsa-mv88e6352))