Skip to contentSkip to conversation

can-utils: Upgrade 2023.03 -> 2025.01

PATCH New [email protected] 1 participant 6 messages Apr 18, 2025

lore
Share & tools
lore
#0 lore raw

v2 cover can-utils: Upgrade 2023.03 -> 2025.01

From: amerciai <[email protected]>

Upgrade can-utils from 2023.03 to 2025.01
- adds support for CAN XL including VCIDs (Linux v6.9+)
https://github.com/linux-can/can-utils/pull/504

Changes in v2:
Add can-utils to cover letter title

Khem Raj (2):
can-utils: Fix build regression on musl
can-utils: Fix build regression on musl

Ricardo Simoes (2):
can-utils: Upgrade 2023.03 -> 2025.01
can-utils: Split mcp251fd* into sub-package

amerciai (1):
Remove can-utils_2023.03

 ...ime.h-for-timespec-struct-definition.patch | 28 +++++++++++
 ...-utils_2023.03.bb => can-utils_2025.01.bb} | 48 ++++++++++++++-----
 2 files changed, 64 insertions(+), 12 deletions(-)
 create mode 100644 meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch
 rename meta-oe/recipes-extended/socketcan/{can-utils_2023.03.bb => can-utils_2025.01.bb} (63%)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/5 can-utils: Upgrade 2023.03 -> 2025.01

From: Ricardo Simoes <[email protected]>

Changelog: https://github.com/linux-can/can-utils/releases/tag/v2025.01

---
 .../socketcan/can-utils_2025.01.bb            | 68 +++++++++++++++++++
 1 file changed, 68 insertions(+)
 create mode 100644 meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb
meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb new file +68 -0
new file mode 100644
index 0000000000..cad41944ec
@@ -0,0 +1,68 @@
+SUMMARY = "Linux CAN network development utilities"
+LICENSE = "GPL-2.0-only & BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=44;md5=a9e1169c6c9a114a61329e99f86fdd31"
+
+DEPENDS = "libsocketcan"
+
+SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=https;branch=master"
+
+SRCREV = "01083a64ebf28cc716efe2d2fd51c141042ae34b"
+
+S = "${WORKDIR}/git"
+
+inherit cmake pkgconfig update-alternatives
+
+PACKAGES =+ " \
+    ${PN}-access \
+    ${PN}-cantest \
+    ${PN}-isobusfs \
+    ${PN}-isobusfs-dev \
+    ${PN}-isotp \
+    ${PN}-j1939 \
+    ${PN}-log \
+    ${PN}-slcan \
+"
+
+FILES:${PN}-access = " \
+    ${bindir}/cangw \
+    ${bindir}/canlogserver \
+    ${bindir}/bcmserver \
+    ${bindir}/socketcand \
+    ${bindir}/cannelloni \
+"
+
+FILES:${PN}-cantest = " \
+    ${bindir}/canbusload \
+    ${bindir}/can-calc-bit-timing \
+    ${bindir}/canfdtest \
+"
+
+FILES:${PN}-isobusfs = " \
+    ${bindir}/isobusfs-cli \
+    ${bindir}/isobusfs-srv \
+    ${libdir}/libisobusfs.so \
+"
+
+FILES:${PN}-isobusfs-dev = " \
+    ${includedir}/isobusfs* \
+"
+
+FILES:${PN}-isotp = "${bindir}/isotp*"
+
+FILES:${PN}-j1939 = " \
+    ${bindir}/j* \
+    ${bindir}/testj1939 \
+"
+
+FILES:${PN}-log = "${bindir}/*log*"
+
+FILES:${PN}-slcan = "${bindir}/slcan*"
+
+ALTERNATIVE:${PN} = "candump cansend cansequence"
+ALTERNATIVE_LINK_NAME[candump] = "${bindir}/candump"
+ALTERNATIVE_LINK_NAME[cansend] = "${bindir}/cansend"
+ALTERNATIVE_LINK_NAME[cansequence] = "${bindir}/cansequence"
+
+# busybox ip fails to configure can interfaces, so we need iproute2 to do so.
+# See details in http://www.armadeus.com/wiki/index.php?title=CAN_bus_Linux_driver.
+RRECOMMENDS:${PN} += "iproute2-ip"
Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 2/5 can-utils: Split mcp251fd* into sub-package

In reply to [email protected]

From: Ricardo Simoes <[email protected]>

The mcp251fd* tools are specific to Microchip MCP251xFD Family CAN controllers. This commit creates the package can-utils-mcp251fd to keep these tools separate.

---
 meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb +5 -0
index cad41944ec..932aa1de20 100644
@@ -20,6 +20,7 @@ PACKAGES =+ " \
     ${PN}-isotp \
     ${PN}-j1939 \
     ${PN}-log \
+    ${PN}-mcp251xfd \
     ${PN}-slcan \
 "
 
@@ -56,6 +57,10 @@ FILES:${PN}-j1939 = " \
 
 FILES:${PN}-log = "${bindir}/*log*"
 
+FILES:${PN}-mcp251xfd = " \
+    ${bindir}/mcp251xfd* \
+"
+
 FILES:${PN}-slcan = "${bindir}/slcan*"
 
 ALTERNATIVE:${PN} = "candump cansend cansequence"
Signature · 1 line
2.34.1
#3 lore raw

PATCH v2 3/5 can-utils: Fix build regression on musl

In reply to [email protected]

From: Khem Raj <[email protected]>

This got introduced with 2025.01 upgrade on musl systems

Cc Ricardo Simoes <[email protected]>
Cc Mark Jonas <[email protected]>
---
 meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb +2 -1
index 932aa1de20..d4ee34167d 100644
@@ -4,7 +4,8 @@ LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=44;md5=a9e1169c6c9a114a61
 
 DEPENDS = "libsocketcan"
 
-SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=https;branch=master"
+SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=https;branch=master \
+           file://0001-Include-time.h-for-timespec-struct-definition.patch"
 
 SRCREV = "01083a64ebf28cc716efe2d2fd51c141042ae34b"
 
Signature · 1 line
2.34.1
#4 lore raw

PATCH v2 4/5 can-utils: Fix build regression on musl

In reply to [email protected]

From: Khem Raj <[email protected]>

This got introduced with 2025.01 upgrade on musl systems

Cc Ricardo Simoes <[email protected]>
Cc Mark Jonas <[email protected]>
---
 ...ime.h-for-timespec-struct-definition.patch | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch
meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch new file +28 -0
new file mode 100644
index 0000000000..91b9dd3c4e
@@ -0,0 +1,28 @@
+From 4363ef59cc9f2169455f56453759d4a4d9b89a5f Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Thu, 13 Feb 2025 22:14:47 -0800
+Subject: [PATCH] Include time.h for timespec struct definition
+
+Fixes
+git/isobusfs/../libj1939.h:33:18: error: field has incomplete type 'struct timespec'
+   33 |         struct timespec next_send_time;
+      |                         ^
+
+Upstream-Status: Submitted [https://github.com/linux-can/can-utils/pull/579]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ libj1939.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libj1939.h b/libj1939.h
+index 44393a2..7c19f43 100644
+--- a/libj1939.h
++++ b/libj1939.h
+@@ -17,6 +17,7 @@
+ #include <linux/can/j1939.h>
+ #include <stdbool.h>
+ #include <stdint.h>
++#include <time.h>
+ #include <sys/socket.h>
+ 
+ #ifndef J1939_LIB_H
Signature · 1 line
2.34.1
#5 lore raw

PATCH v2 5/5 Remove can-utils_2023.03

In reply to [email protected]

From: amerciai <[email protected]>

---
 .../socketcan/can-utils_2023.03.bb            | 50 -------------------
 1 file changed, 50 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/socketcan/can-utils_2023.03.bb
meta-oe/recipes-extended/socketcan/can-utils_2023.03.bb deleted +0 -50
deleted file mode 100644
index ca6cb7db58..0000000000
@@ -1,50 +0,0 @@
-SUMMARY = "Linux CAN network development utilities"
-LICENSE = "GPL-2.0-only & BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=44;md5=a9e1169c6c9a114a61329e99f86fdd31"
-
-DEPENDS = "libsocketcan"
-
-SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=https;branch=master"
-
-SRCREV = "cfe41963f3425e9adb01a70cfaddedf5e5982720"
-
-S = "${WORKDIR}/git"
-
-inherit autotools pkgconfig update-alternatives
-
-PACKAGES =+ "${PN}-access ${PN}-isotp ${PN}-j1939 ${PN}-cantest ${PN}-slcan ${PN}-log"
-
-FILES:${PN}-access = " \
-    ${bindir}/cangw \
-    ${bindir}/canlogserver \
-    ${bindir}/bcmserver \
-    ${bindir}/socketcand \
-    ${bindir}/cannelloni \
-"
-
-FILES:${PN}-isotp = "${bindir}/isotp*"
-
-FILES:${PN}-j1939 = " \
-    ${bindir}/j* \
-    ${bindir}/testj1939 \
-"
-
-FILES:${PN}-cantest = " \
-    ${bindir}/canbusload \
-    ${bindir}/can-calc-bit-timing \
-    ${bindir}/canfdtest \
-"
-
-FILES:${PN}-slcan = "${bindir}/slcan*"
-
-FILES:${PN}-log = "${bindir}/*log*"
-
-ALTERNATIVE:${PN} = "candump cansend cansequence"
-ALTERNATIVE_LINK_NAME[candump] = "${bindir}/candump"
-ALTERNATIVE_LINK_NAME[cansend] = "${bindir}/cansend"
-ALTERNATIVE_LINK_NAME[cansequence] = "${bindir}/cansequence"
-
-# busybox ip fails to configure can interfaces, so we need iproute2 to do so.
-# See details in http://www.armadeus.com/wiki/index.php?title=CAN_bus_Linux_driver.
-RRECOMMENDS:${PN} += "iproute2"
-
Signature · 1 line
2.34.1