From 18759cae81f33a0c1b12bafd5a9249d0e9cddc4a Mon Sep 17 00:00:00 2001 From: Michael Fitzmayer Date: Sun, 8 Dec 2024 22:22:12 +0100 Subject: canopenterm: update to version 1.0.9 - Add support for CANopen Profile data base files using a well documented JSON-based file format. - Include codb to JSON converter (codb2json). - Add API functions to generate test reports (JUnix XML). - Removed PicoC support for the greater good. - Various improvements and bug fixes. Signed-off-by: Michael Fitzmayer Signed-off-by: Khem Raj --- ...linux-initialize-msghdr-in-a-portable-way.patch | 42 ---------------------- .../canopenterm/canopenterm_1.0.8.bb | 31 ---------------- .../canopenterm/canopenterm_1.0.9.bb | 30 ++++++++++++++++ 3 files changed, 30 insertions(+), 73 deletions(-) delete mode 100644 meta-oe/recipes-extended/canopenterm/canopenterm/0001-can_linux-initialize-msghdr-in-a-portable-way.patch delete mode 100644 meta-oe/recipes-extended/canopenterm/canopenterm_1.0.8.bb create mode 100644 meta-oe/recipes-extended/canopenterm/canopenterm_1.0.9.bb diff --git a/meta-oe/recipes-extended/canopenterm/canopenterm/0001-can_linux-initialize-msghdr-in-a-portable-way.patch b/meta-oe/recipes-extended/canopenterm/canopenterm/0001-can_linux-initialize-msghdr-in-a-portable-way.patch deleted file mode 100644 index 09bbd40215..0000000000 --- a/meta-oe/recipes-extended/canopenterm/canopenterm/0001-can_linux-initialize-msghdr-in-a-portable-way.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 464ed82087b0514694ab69e2808e859cb6f13833 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Fri, 22 Nov 2024 10:35:12 -0800 -Subject: [PATCH] can_linux: initialize msghdr in a portable way - -musl has padding bytes inside the msghdr struct which means initializing -full structure will cause wrong assignments, doing partial assignment is -more portable and assign the elements after that - -Fixes -src/core/can_linux.c:362:71: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion] - | struct msghdr msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 }; - | ^~~~ - -Upstream-Status: Submitted [https://github.com/CANopenTerm/CANopenTerm/pull/70] -Signed-off-by: Khem Raj ---- - src/core/can_linux.c | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/src/core/can_linux.c b/src/core/can_linux.c -index d8824be..b4e7907 100644 ---- a/src/core/can_linux.c -+++ b/src/core/can_linux.c -@@ -359,11 +359,16 @@ static char** get_can_interfaces(int* count) - int fd; - char buf[BUFFER_SIZE] = { 0 }; - struct iovec iov = { buf, sizeof(buf) }; -- struct msghdr msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 }; -+ struct msghdr msg = { 0 }; - int len; - int max_interfaces = 10; - int can_count = 0; - char** can_interfaces = (char**)os_calloc(max_interfaces * sizeof(char*), sizeof(char)); -+ -+ msg.msg_name = &sa; -+ msg.msg_namelen = sizeof(sa); -+ msg.msg_iov = &iov; -+ msg.msg_iovlen = 1; - - struct - { diff --git a/meta-oe/recipes-extended/canopenterm/canopenterm_1.0.8.bb b/meta-oe/recipes-extended/canopenterm/canopenterm_1.0.8.bb deleted file mode 100644 index c9bf0af560..0000000000 --- a/meta-oe/recipes-extended/canopenterm/canopenterm_1.0.8.bb +++ /dev/null @@ -1,31 +0,0 @@ - -SUMMARY = "CANopenTerm is a versatile software tool to analyse and \ - configure CANopen devices. \ - " -DESCRIPTION = "CANopenTerm is an open-source software tool designed for the \ - development, testing, and analysis of CANopen CC networks and \ - devices. It extends its capabilities to support other CAN CC \ - protocols, including SAE J1939 and OBD-II. \ - " -HOMEPAGE = "https://canopenterm.de" -BUGTRACKER = "https://github.com/CANopenTerm/CANopenTerm/issues" - -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE.md;md5=10e84ea70e8c3a1fbc462f5424806474" - -DEPENDS = "libinih libsdl2 lua libsocketcan pocketpy" - -SRC_URI = "git://github.com/CANopenTerm/CANopenTerm.git;protocol=https;branch=main \ - file://0001-can_linux-initialize-msghdr-in-a-portable-way.patch \ - " -SRCREV = "5bc04e09351f68e889381e1912b0445c4f18ee32" - -S = "${WORKDIR}/git" - -inherit cmake - -EXTRA_OECMAKE += "-DBUILD_YOCTO=ON" - -FILES:${PN} += "${bindir}/CANopenTerm ${datadir}" - -RDEPENDS:${PN} = "libinih libsdl2 lua libsocketcan pocketpy" diff --git a/meta-oe/recipes-extended/canopenterm/canopenterm_1.0.9.bb b/meta-oe/recipes-extended/canopenterm/canopenterm_1.0.9.bb new file mode 100644 index 0000000000..d52bcc363d --- /dev/null +++ b/meta-oe/recipes-extended/canopenterm/canopenterm_1.0.9.bb @@ -0,0 +1,30 @@ + +SUMMARY = "CANopenTerm is a versatile software tool to analyse and \ + configure CANopen devices. \ + " +DESCRIPTION = "CANopenTerm is an open-source software tool designed for the \ + development, testing, and analysis of CANopen CC networks and \ + devices. It extends its capabilities to support other CAN CC \ + protocols, including SAE J1939 and OBD-II. \ + " +HOMEPAGE = "https://canopenterm.de" +BUGTRACKER = "https://github.com/CANopenTerm/CANopenTerm/issues" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=10e84ea70e8c3a1fbc462f5424806474" + +DEPENDS = "cjson libinih libsdl2 lua libsocketcan pocketpy" + +SRC_URI = "git://github.com/CANopenTerm/CANopenTerm.git;protocol=https;branch=main" + +SRCREV = "fcf2a49eb1ef3ac5f5d17ac1865be6dfbd9e33d5" + +S = "${WORKDIR}/git" + +inherit cmake ptest + +EXTRA_OECMAKE += "-DBUILD_YOCTO=ON" + +FILES:${PN} += "${bindir}/CANopenTerm ${bindir}/codb2json ${datadir}" + +RDEPENDS:${PN} = "cjson libinih libsdl2 lua libsocketcan pocketpy" -- cgit v1.2.3-54-g00ecf