xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/socketcan/can-utils_git.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Linux CAN network development utilities"
2LICENSE = "GPL-2.0-only & BSD-3-Clause"
3LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=44;md5=a9e1169c6c9a114a61329e99f86fdd31"
4
5DEPENDS = "libsocketcan"
6
7SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=https;branch=master"
8
9SRCREV = "3615bac17e539a06835dcb90855eae844ee18053"
10
11PV = "2021.08.0"
12
13S = "${WORKDIR}/git"
14
15inherit autotools pkgconfig update-alternatives
16
17PACKAGES =+ "${PN}-access ${PN}-isotp ${PN}-j1939 ${PN}-cantest ${PN}-slcan ${PN}-log"
18
19FILES:${PN}-access = " \
20    ${bindir}/cangw \
21    ${bindir}/canlogserver \
22    ${bindir}/bcmserver \
23    ${bindir}/socketcand \
24    ${bindir}/cannelloni \
25"
26
27FILES:${PN}-isotp = "${bindir}/isotp*"
28
29FILES:${PN}-j1939 = " \
30    ${bindir}/j* \
31    ${bindir}/testj1939 \
32"
33
34FILES:${PN}-cantest = " \
35    ${bindir}/canbusload \
36    ${bindir}/can-calc-bit-timing \
37    ${bindir}/canfdtest \
38"
39
40FILES:${PN}-slcan = "${bindir}/slcan*"
41
42FILES:${PN}-log = "${bindir}/*log*"
43
44ALTERNATIVE:${PN} = "candump cansend cansequence"
45ALTERNATIVE_LINK_NAME[candump] = "${bindir}/candump"
46ALTERNATIVE_LINK_NAME[cansend] = "${bindir}/cansend"
47ALTERNATIVE_LINK_NAME[cansequence] = "${bindir}/cansequence"
48
49# busybox ip fails to configure can interfaces, so we need iproute2 to do so.
50# See details in http://www.armadeus.com/wiki/index.php?title=CAN_bus_Linux_driver.
51RRECOMMENDS:${PN} += "iproute2"
52
53