blob: ca6cb7db58cbf414015e236b656f99fe3006ebd4 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Linux CAN network development utilities"
Andrew Geissler9aee5002022-03-30 16:27:02 +00002LICENSE = "GPL-2.0-only & BSD-3-Clause"
Andrew Geissler82c905d2020-04-13 13:39:40 -05003LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=44;md5=a9e1169c6c9a114a61329e99f86fdd31"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004
5DEPENDS = "libsocketcan"
6
Andrew Geissler595f6302022-01-24 19:11:47 +00007SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=https;branch=master"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05009SRCREV = "cfe41963f3425e9adb01a70cfaddedf5e5982720"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010
11S = "${WORKDIR}/git"
12
Andrew Geisslerd688a012020-09-18 13:36:00 -050013inherit autotools pkgconfig update-alternatives
14
Andrew Geissler97771a32021-03-05 15:23:11 -060015PACKAGES =+ "${PN}-access ${PN}-isotp ${PN}-j1939 ${PN}-cantest ${PN}-slcan ${PN}-log"
16
Patrick Williams213cb262021-08-07 19:21:33 -050017FILES:${PN}-access = " \
Andrew Geissler97771a32021-03-05 15:23:11 -060018 ${bindir}/cangw \
19 ${bindir}/canlogserver \
20 ${bindir}/bcmserver \
21 ${bindir}/socketcand \
22 ${bindir}/cannelloni \
23"
24
Patrick Williams213cb262021-08-07 19:21:33 -050025FILES:${PN}-isotp = "${bindir}/isotp*"
Andrew Geissler97771a32021-03-05 15:23:11 -060026
Patrick Williams213cb262021-08-07 19:21:33 -050027FILES:${PN}-j1939 = " \
Andrew Geissler97771a32021-03-05 15:23:11 -060028 ${bindir}/j* \
29 ${bindir}/testj1939 \
30"
31
Patrick Williams213cb262021-08-07 19:21:33 -050032FILES:${PN}-cantest = " \
Andrew Geissler97771a32021-03-05 15:23:11 -060033 ${bindir}/canbusload \
34 ${bindir}/can-calc-bit-timing \
35 ${bindir}/canfdtest \
36"
37
Patrick Williams213cb262021-08-07 19:21:33 -050038FILES:${PN}-slcan = "${bindir}/slcan*"
Andrew Geissler97771a32021-03-05 15:23:11 -060039
Patrick Williams213cb262021-08-07 19:21:33 -050040FILES:${PN}-log = "${bindir}/*log*"
Andrew Geissler97771a32021-03-05 15:23:11 -060041
Patrick Williams213cb262021-08-07 19:21:33 -050042ALTERNATIVE:${PN} = "candump cansend cansequence"
Andrew Geisslerd688a012020-09-18 13:36:00 -050043ALTERNATIVE_LINK_NAME[candump] = "${bindir}/candump"
44ALTERNATIVE_LINK_NAME[cansend] = "${bindir}/cansend"
Andrew Geissler4b7c1152020-11-30 19:55:29 -060045ALTERNATIVE_LINK_NAME[cansequence] = "${bindir}/cansequence"
William A. Kennington III49e95662021-09-15 16:19:36 -070046
47# busybox ip fails to configure can interfaces, so we need iproute2 to do so.
48# See details in http://www.armadeus.com/wiki/index.php?title=CAN_bus_Linux_driver.
49RRECOMMENDS:${PN} += "iproute2"
50