kernel: add can.ko to the kmod-can package.
[openwrt/openwrt.git] / package / kernel / linux / modules / can.mk
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 #
7
8 CAN_MENU:=CAN Support
9
10 define KernelPackage/can
11 SUBMENU:=$(CAN_MENU)
12 TITLE:=CAN bus support
13 KCONFIG:=\
14 CONFIG_CAN=m \
15 CONFIG_CAN_DEV \
16 CONFIG_CAN_CALC_BITTIMING=y \
17 CONFIG_CAN_LEDS=y \
18 CONFIG_CAN_AT91=n \
19 CONFIG_CAN_TI_HECC=n \
20 CONFIG_CAN_MCP251X=n \
21 CONFIG_CAN_BFIN=n \
22 CONFIG_CAN_JANZ_ICAN3=n \
23 CONFIG_PCH_CAN=n \
24 CONFIG_CAN_GRCAN=n \
25 CONFIG_CAN_CC770=n \
26 CONFIG_CAN_C_CAN=n \
27 CONFIG_CAN_MSCAN=n \
28 CONFIG_CAN_SJA1000=n \
29 CONFIG_CAN_SOFTING=n \
30 CONFIG_NET_EMATCH_CANID=n \
31 CONFIG_CAN_DEBUG_DEVICES=n
32 FILES:=$(LINUX_DIR)/drivers/net/can/can-dev.ko \
33 $(LINUX_DIR)/net/can/can.ko
34 AUTOLOAD:=$(call AutoProbe,can can-dev)
35 endef
36
37 define KernelPackage/can/description
38 Kernel module for CAN bus support.
39 endef
40
41 $(eval $(call KernelPackage,can))
42
43
44 define AddDepends/can
45 SUBMENU:=$(CAN_MENU)
46 DEPENDS+=kmod-can $(1)
47 endef
48
49
50 define KernelPackage/can-raw
51 TITLE:=Raw CAN Protcol
52 KCONFIG:=CONFIG_CAN_RAW
53 FILES:=$(LINUX_DIR)/net/can/can-raw.ko
54 AUTOLOAD:=$(call AutoProbe,can-raw)
55 $(call AddDepends/can)
56 endef
57
58 define KernelPackage/can-raw/description
59 The raw CAN protocol option offers access to the CAN bus via
60 the BSD socket API.
61 endef
62
63 $(eval $(call KernelPackage,can-raw))
64
65
66 define KernelPackage/can-bcm
67 TITLE:=Broadcast Manager CAN Protcol
68 KCONFIG:=CONFIG_CAN_BCM
69 FILES:=$(LINUX_DIR)/net/can/can-bcm.ko
70 AUTOLOAD:=$(call AutoProbe,can-bcm)
71 $(call AddDepends/can)
72 endef
73
74 define KernelPackage/can-bcm/description
75 The Broadcast Manager offers content filtering, timeout monitoring,
76 sending of RTR frames, and cyclic CAN messages without permanent user
77 interaction.
78 endef
79
80 $(eval $(call KernelPackage,can-bcm))
81
82
83 define KernelPackage/can-gw
84 TITLE:=CAN Gateway/Router
85 KCONFIG:=CONFIG_CAN_GW
86 FILES:=$(LINUX_DIR)/net/can/can-gw.ko
87 AUTOLOAD:=$(call AutoProbe,can-gw)
88 $(call AddDepends/can)
89 endef
90
91 define KernelPackage/can-gw/description
92 The CAN Gateway/Router is used to route (and modify) CAN frames.
93 endef
94
95 $(eval $(call KernelPackage,can-gw))
96
97
98 define KernelPackage/can-vcan
99 TITLE:=Virtual Local CAN Interface (vcan)
100 KCONFIG:=CONFIG_CAN_VCAN
101 FILES:=$(LINUX_DIR)/drivers/net/can/vcan.ko
102 AUTOLOAD:=$(call AutoProbe,vcan)
103 $(call AddDepends/can)
104 endef
105
106 define KernelPackage/can-vcan/description
107 Similar to the network loopback devices, vcan offers a
108 virtual local CAN interface.
109 endef
110
111 $(eval $(call KernelPackage,can-vcan))
112
113
114 define KernelPackage/can-slcan
115 TITLE:=Serial / USB serial CAN Adaptors (slcan)
116 KCONFIG:=CONFIG_CAN_SLCAN
117 FILES:=$(LINUX_DIR)/drivers/net/can/slcan.ko
118 AUTOLOAD:=$(call AutoProbe,slcan)
119 $(call AddDepends/can)
120 endef
121
122 define KernelPackage/can-slcan/description
123 CAN driver for several 'low cost' CAN interfaces that are attached
124 via serial lines or via USB-to-serial adapters using the LAWICEL
125 ASCII protocol.
126 endef
127
128 $(eval $(call KernelPackage,can-slcan))
129
130
131 define KernelPackage/can-flexcan
132 TITLE:=Support for Freescale FLEXCAN based chips
133 KCONFIG:=CONFIG_CAN_FLEXCAN
134 FILES:=$(LINUX_DIR)/drivers/net/can/flexcan.ko
135 AUTOLOAD:=$(call AutoProbe,flexcan)
136 $(call AddDepends/can,@TARGET_imx6)
137 endef
138
139 define KernelPackage/can-flexcan/description
140 Freescale FLEXCAN CAN bus controller implementation.
141 endef
142
143 $(eval $(call KernelPackage,can-flexcan))
144
145
146 define KernelPackage/can-usb-ems
147 TITLE:=EMS CPC-USB/ARM7 CAN/USB interface
148 KCONFIG:=CONFIG_CAN_EMS_USB
149 FILES:=$(LINUX_DIR)/drivers/net/can/usb/ems_usb.ko
150 AUTOLOAD:=$(call AutoProbe,ems_usb)
151 $(call AddDepends/can,+kmod-usb-core)
152 endef
153
154 define KernelPackage/can-usb-ems/description
155 This driver is for the one channel CPC-USB/ARM7 CAN/USB interface
156 from EMS Dr. Thomas Wuensche (http://www.ems-wuensche.de).
157 endef
158
159 $(eval $(call KernelPackage,can-usb-ems))
160
161
162 define KernelPackage/can-usb-esd
163 TITLE:=ESD USB/2 CAN/USB interface
164 KCONFIG:=CONFIG_CAN_ESD_USB2
165 FILES:=$(LINUX_DIR)/drivers/net/can/usb/esd_usb2.ko
166 AUTOLOAD:=$(call AutoProbe,esd_usb2)
167 $(call AddDepends/can,+kmod-usb-core)
168 endef
169
170 define KernelPackage/can-usb-esd/description
171 This driver supports the CAN-USB/2 interface
172 from esd electronic system design gmbh (http://www.esd.eu).
173 endef
174
175 $(eval $(call KernelPackage,can-usb-esd))
176
177
178 define KernelPackage/can-usb-kvaser
179 TITLE:=Kvaser CAN/USB interface
180 KCONFIG:=CONFIG_CAN_KVASER_USB
181 FILES:=$(LINUX_DIR)/drivers/net/can/usb/kvaser_usb.ko
182 AUTOLOAD:=$(call AutoProbe,kvaser_usb)
183 $(call AddDepends/can,+kmod-usb-core)
184 endef
185
186 define KernelPackage/can-usb-kvaser/description
187 This driver adds support for Kvaser CAN/USB devices like Kvaser
188 Leaf Light.
189 endef
190
191 $(eval $(call KernelPackage,can-usb-kvaser))
192
193
194 define KernelPackage/can-usb-peak
195 TITLE:=PEAK PCAN-USB/USB Pro interfaces
196 KCONFIG:=CONFIG_CAN_PEAK_USB
197 FILES:=$(LINUX_DIR)/drivers/net/can/usb/peak_usb/peak_usb.ko
198 AUTOLOAD:=$(call AutoProbe,peak_usb)
199 $(call AddDepends/can,+kmod-usb-core)
200 endef
201
202 define KernelPackage/can-usb-peak/description
203 This driver supports the PCAN-USB and PCAN-USB Pro adapters
204 from PEAK-System Technik (http://www.peak-system.com).
205 endef
206
207 $(eval $(call KernelPackage,can-usb-peak))
208
209
210 define KernelPackage/can-usb-8dev
211 TITLE:=8 devices USB2CAN interface
212 KCONFIG:=CONFIG_CAN_8DEV_USB
213 FILES:=$(LINUX_DIR)/drivers/net/can/usb/usb_8dev.ko
214 AUTOLOAD:=$(call AutoProbe,usb_8dev)
215 $(call AddDepends/can,+kmod-usb-core)
216 endef
217
218 define KernelPackage/can-usb-8dev/description
219 This driver supports the USB2CAN interface
220 from 8 devices (http://www.8devices.com).
221 endef
222
223 $(eval $(call KernelPackage,can-usb-8dev))