can.mk 7.0 KB

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