1*fc113eadSAndrew GeisslerSUMMARY = "Linux CAN network development utilities"
2*fc113eadSAndrew GeisslerLICENSE = "GPL-2.0-only & BSD-3-Clause"
3*fc113eadSAndrew GeisslerLIC_FILES_CHKSUM = "file://include/linux/can.h;endline=44;md5=a9e1169c6c9a114a61329e99f86fdd31"
4*fc113eadSAndrew Geissler
5*fc113eadSAndrew GeisslerDEPENDS = "libsocketcan"
6*fc113eadSAndrew Geissler
7*fc113eadSAndrew GeisslerSRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=https;branch=master"
8*fc113eadSAndrew Geissler
9*fc113eadSAndrew GeisslerSRCREV = "cfe41963f3425e9adb01a70cfaddedf5e5982720"
10*fc113eadSAndrew Geissler
11*fc113eadSAndrew GeisslerS = "${WORKDIR}/git"
12*fc113eadSAndrew Geissler
13*fc113eadSAndrew Geisslerinherit autotools pkgconfig update-alternatives
14*fc113eadSAndrew Geissler
15*fc113eadSAndrew GeisslerPACKAGES =+ "${PN}-access ${PN}-isotp ${PN}-j1939 ${PN}-cantest ${PN}-slcan ${PN}-log"
16*fc113eadSAndrew Geissler
17*fc113eadSAndrew GeisslerFILES:${PN}-access = " \
18*fc113eadSAndrew Geissler    ${bindir}/cangw \
19*fc113eadSAndrew Geissler    ${bindir}/canlogserver \
20*fc113eadSAndrew Geissler    ${bindir}/bcmserver \
21*fc113eadSAndrew Geissler    ${bindir}/socketcand \
22*fc113eadSAndrew Geissler    ${bindir}/cannelloni \
23*fc113eadSAndrew Geissler"
24*fc113eadSAndrew Geissler
25*fc113eadSAndrew GeisslerFILES:${PN}-isotp = "${bindir}/isotp*"
26*fc113eadSAndrew Geissler
27*fc113eadSAndrew GeisslerFILES:${PN}-j1939 = " \
28*fc113eadSAndrew Geissler    ${bindir}/j* \
29*fc113eadSAndrew Geissler    ${bindir}/testj1939 \
30*fc113eadSAndrew Geissler"
31*fc113eadSAndrew Geissler
32*fc113eadSAndrew GeisslerFILES:${PN}-cantest = " \
33*fc113eadSAndrew Geissler    ${bindir}/canbusload \
34*fc113eadSAndrew Geissler    ${bindir}/can-calc-bit-timing \
35*fc113eadSAndrew Geissler    ${bindir}/canfdtest \
36*fc113eadSAndrew Geissler"
37*fc113eadSAndrew Geissler
38*fc113eadSAndrew GeisslerFILES:${PN}-slcan = "${bindir}/slcan*"
39*fc113eadSAndrew Geissler
40*fc113eadSAndrew GeisslerFILES:${PN}-log = "${bindir}/*log*"
41*fc113eadSAndrew Geissler
42*fc113eadSAndrew GeisslerALTERNATIVE:${PN} = "candump cansend cansequence"
43*fc113eadSAndrew GeisslerALTERNATIVE_LINK_NAME[candump] = "${bindir}/candump"
44*fc113eadSAndrew GeisslerALTERNATIVE_LINK_NAME[cansend] = "${bindir}/cansend"
45*fc113eadSAndrew GeisslerALTERNATIVE_LINK_NAME[cansequence] = "${bindir}/cansequence"
46*fc113eadSAndrew Geissler
47*fc113eadSAndrew Geissler# busybox ip fails to configure can interfaces, so we need iproute2 to do so.
48*fc113eadSAndrew Geissler# See details in http://www.armadeus.com/wiki/index.php?title=CAN_bus_Linux_driver.
49*fc113eadSAndrew GeisslerRRECOMMENDS:${PN} += "iproute2"
50*fc113eadSAndrew Geissler
51