canopenterm: upgrade to 2.02 and refresh patches
PATCH 1/1 canopenterm: upgrade to 2.02 and refresh patches
- Introduced a new API function: print_result()
- Added support for configuring a dynamic number of filters when executing replay.lua
- Added script to interact with the STM32 CAN bootloader (stm32.lua)
- Add Unified Diagnostic Services (ISO 14229-1) script written in Lua (uds.lua)
- Various updates and fixes required by the Debian package and to be ableto get certified by Microsoft
- Added manpages
---
...-C-include-path-for-pocketpy-headers.patch | 137 ++++++++++++++++++
...e-search-paths-in-Findpocketpy.cmake.patch | 59 ++++++++
...anopenterm_2.01.bb => canopenterm_2.02.bb} | 9 +-
3 files changed, 202 insertions(+), 3 deletions(-)
create mode 100644 meta-oe/recipes-extended/canopenterm/canopenterm/0001-Fix-C-include-path-for-pocketpy-headers.patch
create mode 100644 meta-oe/recipes-extended/canopenterm/canopenterm/0002-Update-search-paths-in-Findpocketpy.cmake.patch
rename meta-oe/recipes-extended/canopenterm/{canopenterm_2.01.bb => canopenterm_2.02.bb} (76%)meta-oe/recipes-extended/canopenterm/canopenterm/0001-Fix-C-include-path-for-pocketpy-headers.patch new file +137 -0
@@ -0,0 +1,137 @@ +From 578d5805f73e3f38b5fff7f6b8d11b3d9ff6b9e3 Mon Sep 17 00:00:00 2001 +From: Michael Fitzmayer <[email protected]> +Date: Wed, 15 Apr 2026 11:57:58 +0200 +Subject: [PATCH] Fix C include path for pocketpy headers + +Upstream-Status: Submitted [https://github.com/CANopenTerm/CANopenTerm/commit/cbe8d8e6d5787636a32862b20f7c7cf342bb764b] + +Signed-off-by: Michael Fitzmayer <[email protected]> +--- + src/api/python_can.c | 2 +- + src/api/python_dbc.c | 2 +- + src/api/python_misc.c | 2 +- + src/api/python_nmt.c | 2 +- + src/api/python_pdo.c | 2 +- + src/api/python_sdo.c | 2 +- + src/api/python_test_report.c | 2 +- + src/api/python_widget.c | 2 +- + src/core/scripts.c | 2 +- + 9 files changed, 9 insertions(+), 9 deletions(-) + +diff --git a/src/api/python_can.c b/src/api/python_can.c +index d1c5c6a..c6ee023 100644 +--- a/src/api/python_can.c ++++ b/src/api/python_can.c +@@ -11,7 +11,7 @@ + #include "core.h" + #include "dict.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + + typedef bool (*py_CFunction)(int argc, py_Ref argv); + +diff --git a/src/api/python_dbc.c b/src/api/python_dbc.c +index f688796..3f3e3d3 100644 +--- a/src/api/python_dbc.c ++++ b/src/api/python_dbc.c +@@ -10,7 +10,7 @@ + #include "core.h" + #include "dbc.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + + typedef bool (*py_CFunction)(int argc, py_Ref argv); + +diff --git a/src/api/python_misc.c b/src/api/python_misc.c +index a71c39d..da14c01 100644 +--- a/src/api/python_misc.c ++++ b/src/api/python_misc.c +@@ -10,7 +10,7 @@ + #include "python_misc.h" + #include "core.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + #include "scripts.h" + + typedef bool (*py_CFunction)(int argc, py_Ref argv); +diff --git a/src/api/python_nmt.c b/src/api/python_nmt.c +index 293d2e1..8e467fe 100644 +--- a/src/api/python_nmt.c ++++ b/src/api/python_nmt.c +@@ -11,7 +11,7 @@ + #include "core.h" + #include "nmt.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + + typedef bool (*py_CFunction)(int argc, py_Ref argv); + +diff --git a/src/api/python_pdo.c b/src/api/python_pdo.c +index fe34bc9..a307b0d 100644 +--- a/src/api/python_pdo.c ++++ b/src/api/python_pdo.c +@@ -10,7 +10,7 @@ + #include "core.h" + #include "os.h" + #include "pdo.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + + typedef bool (*py_CFunction)(int argc, py_Ref argv); + +diff --git a/src/api/python_sdo.c b/src/api/python_sdo.c +index 3378fc2..2d7b583 100644 +--- a/src/api/python_sdo.c ++++ b/src/api/python_sdo.c +@@ -10,7 +10,7 @@ + #include "core.h" + #include "dict.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + #include "sdo.h" + + typedef bool (*py_CFunction)(int argc, py_Ref argv); +diff --git a/src/api/python_test_report.c b/src/api/python_test_report.c +index 59cc7b1..3ca7536 100644 +--- a/src/api/python_test_report.c ++++ b/src/api/python_test_report.c +@@ -10,7 +10,7 @@ + #include "core.h" + #include "eds.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + #include "test_report.h" + + typedef bool (*py_CFunction)(int argc, py_Ref argv); +diff --git a/src/api/python_widget.c b/src/api/python_widget.c +index 92891c0..c176ca8 100644 +--- a/src/api/python_widget.c ++++ b/src/api/python_widget.c +@@ -13,7 +13,7 @@ + #include "core.h" + #include "led.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + #include "tachometer.h" + #include "window.h" + +diff --git a/src/core/scripts.c b/src/core/scripts.c +index 4dbdac3..1f37b7c 100644 +--- a/src/core/scripts.c ++++ b/src/core/scripts.c +@@ -14,7 +14,7 @@ + #include "lua.h" + #include "lualib.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + #include "table.h" + + extern const uint8 max_script_search_paths;
meta-oe/recipes-extended/canopenterm/canopenterm/0002-Update-search-paths-in-Findpocketpy.cmake.patch new file +59 -0
59 lines not on this page · raw message
meta-oe/recipes-extended/canopenterm/canopenterm_2.02.bb renamed from meta-oe/recipes-extended/canopenterm/canopenterm_2.01.bb +6 -3
@@ -15,13 +15,16 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=bd2edc721b4a0289efe949bdbe7dda79" DEPENDS = "canvenient cjson isocline libinih libsdl3 lua pocketpy" -SRC_URI = "git://github.com/CANopenTerm/CANopenTerm.git;protocol=https;branch=main;tag=v${PV}" -SRCREV = "4196097f71c7e59b27e9d8ac3c6cf58f44fa9f19" +SRC_URI = "git://github.com/CANopenTerm/CANopenTerm.git;protocol=https;branch=main;tag=v${PV} \ + file://0001-Fix-C-include-path-for-pocketpy-headers.patch \ + file://0002-Update-search-paths-in-Findpocketpy.cmake.patch \ + " +SRCREV = "a6a9cd4fdbfaffea01b3eeeaf3c4830d4ee4b313" inherit cmake ptest -EXTRA_OECMAKE += "-DBUILD_YOCTO=ON" +EXTRA_OECMAKE += "-DUSE_SYSTEM_LIBS=ON" FILES:${PN} += "${bindir}/CANopenTerm ${bindir}/codb2json ${datadir}"
Please address Gyorgy's feedback mentioned in the v1 thread, asking to bump the SRCREV instead of apply patches to bring it to tip of trunk
Quoted 290 lines · Michael Fitzmayer via lists.openembedded.org
- Introduced a new API function:
print_result()
- Added support for configuring a dynamic number of filters when executing replay.lua
- Added script to interact with the STM32 CAN bootloader (stm32.lua)
- Add Unified Diagnostic Services (ISO 14229-1) script written in Lua (uds.lua)
- Various updates and fixes required by the Debian package and to be ableto get
certified by Microsoft
- Added manpagesSigned-off-by Michael Fitzmayer <[email protected]>--- ...-C-include-path-for-pocketpy-headers.patch | 137 ++++++++++++++++++ ...e-search-paths-in-Findpocketpy.cmake.patch | 59 ++++++++ ...anopenterm_2.01.bb => canopenterm_2.02.bb} | 9 +- 3 files changed, 202 insertions(+), 3 deletions(-) create mode 100644 meta-oe/recipes-extended/canopenterm/canopenterm/0001-Fix-C-include-path-for-pocketpy-headers.patch create mode 100644 meta-oe/recipes-extended/canopenterm/canopenterm/0002-Update-search-paths-in-Findpocketpy.cmake.patch rename meta-oe/recipes-extended/canopenterm/{canopenterm_2.01.bb =>canopenterm_2.02.bb} (76%)
diff --git
a/meta-oe/recipes-extended/canopenterm/canopenterm/0001-Fix-C-include-path-for-pocketpy-headers.patchb/meta-oe/recipes-extended/canopenterm/canopenterm/0001-Fix-C-include-path-for-pocketpy-headers.patchnew file mode 100644
index 0000000000..b5b70fe378
---/dev/null
+++b/meta-oe/recipes-extended/canopenterm/canopenterm/0001-Fix-C-include-path-for-pocketpy-headers.patchmeta-oe/recipes-extended/canopenterm/canopenterm/0001-Fix-C-include-path-for-pocketpy-headers.patch new file +6
-0@@ -0,0 +1,137 @@ +From 578d5805f73e3f38b5fff7f6b8d11b3d9ff6b9e3 Mon Sep 17 00:00:00 2001 +From: Michael Fitzmayer <[email protected]> +Date: Wed, 15 Apr 2026 11:57:58 +0200 +Subject: [PATCH] Fix C include path for pocketpy headers + +Upstream-Status: Submitted [https://github.com/CANopenTerm/CANopenTerm/commit/cbe8d8e6d5787636a32862b20f7c7cf342bb764b
]meta-oe/recipes-extended/canopenterm/canopenterm/0001-Fix-C-include-path-for-pocketpy-headers.patch new file +131
-0+ +Signed-off-by: Michael Fitzmayer <[email protected]> +--- + src/api/python_can.c | 2 +- + src/api/python_dbc.c | 2 +- + src/api/python_misc.c | 2 +- + src/api/python_nmt.c | 2 +- + src/api/python_pdo.c | 2 +- + src/api/python_sdo.c | 2 +- + src/api/python_test_report.c | 2 +- + src/api/python_widget.c | 2 +- + src/core/scripts.c | 2 +- + 9 files changed, 9 insertions(+), 9 deletions(-) + +diff --git a/src/api/python_can.c b/src/api/python_can.c +index d1c5c6a..c6ee023 100644 +--- a/src/api/python_can.c ++++ b/src/api/python_can.c +@@ -11,7 +11,7 @@ + #include "core.h" + #include "dict.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + + typedef bool (*py_CFunction)(int argc, py_Ref argv); + +diff --git a/src/api/python_dbc.c b/src/api/python_dbc.c +index f688796..3f3e3d3 100644 +--- a/src/api/python_dbc.c ++++ b/src/api/python_dbc.c +@@ -10,7 +10,7 @@ + #include "core.h" + #include "dbc.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + + typedef bool (*py_CFunction)(int argc, py_Ref argv); + +diff --git a/src/api/python_misc.c b/src/api/python_misc.c +index a71c39d..da14c01 100644 +--- a/src/api/python_misc.c ++++ b/src/api/python_misc.c +@@ -10,7 +10,7 @@ + #include "python_misc.h" + #include "core.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + #include "scripts.h" + + typedef bool (*py_CFunction)(int argc, py_Ref argv); +diff --git a/src/api/python_nmt.c b/src/api/python_nmt.c +index 293d2e1..8e467fe 100644 +--- a/src/api/python_nmt.c ++++ b/src/api/python_nmt.c +@@ -11,7 +11,7 @@ + #include "core.h" + #include "nmt.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + + typedef bool (*py_CFunction)(int argc, py_Ref argv); + +diff --git a/src/api/python_pdo.c b/src/api/python_pdo.c +index fe34bc9..a307b0d 100644 +--- a/src/api/python_pdo.c ++++ b/src/api/python_pdo.c +@@ -10,7 +10,7 @@ + #include "core.h" + #include "os.h" + #include "pdo.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + + typedef bool (*py_CFunction)(int argc, py_Ref argv); + +diff --git a/src/api/python_sdo.c b/src/api/python_sdo.c +index 3378fc2..2d7b583 100644 +--- a/src/api/python_sdo.c ++++ b/src/api/python_sdo.c +@@ -10,7 +10,7 @@ + #include "core.h" + #include "dict.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + #include "sdo.h" + + typedef bool (*py_CFunction)(int argc, py_Ref argv); +diff --git a/src/api/python_test_report.c b/src/api/python_test_report.c +index 59cc7b1..3ca7536 100644 +--- a/src/api/python_test_report.c ++++ b/src/api/python_test_report.c +@@ -10,7 +10,7 @@ + #include "core.h" + #include "eds.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + #include "test_report.h" + + typedef bool (*py_CFunction)(int argc, py_Ref argv); +diff --git a/src/api/python_widget.c b/src/api/python_widget.c +index 92891c0..c176ca8 100644 +--- a/src/api/python_widget.c ++++ b/src/api/python_widget.c +@@ -13,7 +13,7 @@ + #include "core.h" + #include "led.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + #include "tachometer.h" + #include "window.h" + +diff --git a/src/core/scripts.c b/src/core/scripts.c +index 4dbdac3..1f37b7c 100644 +--- a/src/core/scripts.c ++++ b/src/core/scripts.c +@@ -14,7 +14,7 @@ + #include "lua.h" + #include "lualib.h" + #include "os.h" +-#include "pocketpy.h" ++#include <pocketpy.h> + #include "table.h" + + extern const uint8 max_script_search_paths;diff --git
a/meta-oe/recipes-extended/canopenterm/canopenterm/0002-Update-search-paths-in-Findpocketpy.cmake.patchb/meta-oe/recipes-extended/canopenterm/canopenterm/0002-Update-search-paths-in-Findpocketpy.cmake.patchnew file mode 100644
index 0000000000..5dfb426bb5
---/dev/null
+++b/meta-oe/recipes-extended/canopenterm/canopenterm/0002-Update-search-paths-in-Findpocketpy.cmake.patchmeta-oe/recipes-extended/canopenterm/canopenterm/0002-Update-search-paths-in-Findpocketpy.cmake.patch new file +6
-0@@ -0,0 +1,59 @@ +From ec8c7459cdca2e94ee5fcce514d4f116ac7e039b Mon Sep 17 00:00:00 2001 +From: Michael Fitzmayer <[email protected]> +Date: Wed, 15 Apr 2026 12:31:17 +0200 +Subject: [PATCH] Update search paths in Findpocketpy.cmake + +Upstream-Status: Submitted [https://github.com/CANopenTerm/CANopenTerm/commit/7a9466029a6e88345e65e794ff1779f778c9358a
]meta-oe/recipes-extended/canopenterm/canopenterm/0002-Update-search-paths-in-Findpocketpy.cmake.patch new file +15
-0+ +Signed-off-by: Michael Fitzmayer <[email protected]> +--- + cmake/Findpocketpy.cmake | 30 ++++++++++++++++++++++++------ + 1 file changed, 24 insertions(+), 6 deletions(-) + +diff --git a/cmake/Findpocketpy.cmake b/cmake/Findpocketpy.cmake +index 459160f..8083270 100644 +--- a/cmake/Findpocketpy.cmake ++++ b/cmake/Findpocketpy.cmake +@@ -3,18 +3,36 @@ cmake_minimum_required(VERSION 3.16) + # Findpocketpy.cmake + # Locate pocketpy library and include directories + +-find_path(pocketpy_INCLUDE_DIR NAMES pocketpy/pocketpy.h PATHS
/usr/include)
+-find_library(pocketpy_LIBRARY NAMES libpocketpy.so PATHS/usr/lib) ++find_path(pocketpy_INCLUDE_DIR++ NAMES pocketpy.h ++ PATH_SUFFIXES pocketpy ++ PATHS ++ /usr/include ++ /usr/local/include ++ /opt/local/include ++ /opt/homebrew/include++)
++
++find_library(pocketpy_LIBRARY
++ NAMES pocketpy
++ PATHS++ /usr/lib ++ /usr/local/lib ++ /opt/local/lib ++ /opt/homebrew/lib++)
meta-oe/recipes-extended/canopenterm/canopenterm/0002-Update-search-paths-in-Findpocketpy.cmake.patch new file +19
-0+ + message(STATUS "pocketpy_INCLUDE_DIR: ${pocketpy_INCLUDE_DIR}") + message(STATUS "pocketpy_LIBRARY: ${pocketpy_LIBRARY}") + +-if (pocketpy_INCLUDE_DIR AND pocketpy_LIBRARY) +- set(pocketpy_FOUND TRUE) ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args(pocketpy ++ REQUIRED_VARS pocketpy_LIBRARY pocketpy_INCLUDE_DIR ++) ++ ++if (pocketpy_FOUND) + set(pocketpy_INCLUDE_DIRS ${pocketpy_INCLUDE_DIR}) + set(pocketpy_LIBRARIES ${pocketpy_LIBRARY}) +-else() +- set(pocketpy_FOUND FALSE) + endif() + + mark_as_advanced(pocketpy_INCLUDE_DIR pocketpy_LIBRARY)meta-oe/recipes-extended/canopenterm/canopenterm_2.02.bb renamed from meta-oe/recipes-extended/canopenterm/canopenterm_2.01.bb +0
-0@@ -15,13 +15,16 @@ LIC_FILES_CHKSUM ="file://LICENSE.md;md5=bd2edc721b4a0289efe949bdbe7dda79"
DEPENDS = "canvenient cjson isocline libinih libsdl3 lua pocketpy"
-SRC_URI = "
git://github.com/CANopenTerm/CANopenTerm.git;protocol=https;branch=main;tag=v${PV}
<http://github.com/CANopenTerm/CANopenTerm.git;protocol=https;branch=main;tag=v$%7BPV%7D>
"meta-oe/recipes-extended/canopenterm/canopenterm_2.02.bb renamed from meta-oe/recipes-extended/canopenterm/canopenterm_2.01.bb +1
-1-SRCREV = "4196097f71c7e59b27e9d8ac3c6cf58f44fa9f19" +SRC_URI = "git://github.com/CANopenTerm/CANopenTerm.git;protocol=https;branch=main;tag=v${PV}
<http://github.com/CANopenTerm/CANopenTerm.git;protocol=https;branch=main;tag=v$%7BPV%7D>
\meta-oe/recipes-extended/canopenterm/canopenterm_2.02.bb renamed from meta-oe/recipes-extended/canopenterm/canopenterm_2.01.bb +5
-2+ file://0001-Fix-C-include-path-for-pocketpy-headers.patch \ + file://0002-Update-search-paths-in-Findpocketpy.cmake.patch \ + " +SRCREV = "a6a9cd4fdbfaffea01b3eeeaf3c4830d4ee4b313" inherit cmake ptest -EXTRA_OECMAKE += "-DBUILD_YOCTO=ON" +EXTRA_OECMAKE += "-DUSE_SYSTEM_LIBS=ON" FILES:${PN} += "${bindir}/CANopenTerm ${bindir}/codb2json ${datadir}" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group. View/Reply Online (#126398):
https://lists.openembedded.org/g/openembedded-devel/message/126398
Mute This Topic: https://lists.openembedded.org/mt/118854329/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-