can.mk 7.2 KB

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