2
0

can.mk 7.1 KB

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