blob: 07b80a530791f5c522aed2ca43560b588e309f47 [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 Geisslerd159c7f2021-09-02 21:05:58 -05009SRCREV = "3615bac17e539a06835dcb90855eae844ee18053"
Andrew Geissler82c905d2020-04-13 13:39:40 -050010
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050011PV = "2021.08.0"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012
13S = "${WORKDIR}/git"
14
Andrew Geisslerd688a012020-09-18 13:36:00 -050015inherit autotools pkgconfig update-alternatives
16
Andrew Geissler97771a32021-03-05 15:23:11 -060017PACKAGES =+ "${PN}-access ${PN}-isotp ${PN}-j1939 ${PN}-cantest ${PN}-slcan ${PN}-log"
18
Patrick Williams213cb262021-08-07 19:21:33 -050019FILES:${PN}-access = " \
Andrew Geissler97771a32021-03-05 15:23:11 -060020 ${bindir}/cangw \
21 ${bindir}/canlogserver \
22 ${bindir}/bcmserver \
23 ${bindir}/socketcand \
24 ${bindir}/cannelloni \
25"
26
Patrick Williams213cb262021-08-07 19:21:33 -050027FILES:${PN}-isotp = "${bindir}/isotp*"
Andrew Geissler97771a32021-03-05 15:23:11 -060028
Patrick Williams213cb262021-08-07 19:21:33 -050029FILES:${PN}-j1939 = " \
Andrew Geissler97771a32021-03-05 15:23:11 -060030 ${bindir}/j* \
31 ${bindir}/testj1939 \
32"
33
Patrick Williams213cb262021-08-07 19:21:33 -050034FILES:${PN}-cantest = " \
Andrew Geissler97771a32021-03-05 15:23:11 -060035 ${bindir}/canbusload \
36 ${bindir}/can-calc-bit-timing \
37 ${bindir}/canfdtest \
38"
39
Patrick Williams213cb262021-08-07 19:21:33 -050040FILES:${PN}-slcan = "${bindir}/slcan*"
Andrew Geissler97771a32021-03-05 15:23:11 -060041
Patrick Williams213cb262021-08-07 19:21:33 -050042FILES:${PN}-log = "${bindir}/*log*"
Andrew Geissler97771a32021-03-05 15:23:11 -060043
Patrick Williams213cb262021-08-07 19:21:33 -050044ALTERNATIVE:${PN} = "candump cansend cansequence"
Andrew Geisslerd688a012020-09-18 13:36:00 -050045ALTERNATIVE_LINK_NAME[candump] = "${bindir}/candump"
46ALTERNATIVE_LINK_NAME[cansend] = "${bindir}/cansend"
Andrew Geissler4b7c1152020-11-30 19:55:29 -060047ALTERNATIVE_LINK_NAME[cansequence] = "${bindir}/cansequence"
William A. Kennington III49e95662021-09-15 16:19:36 -070048
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