[v7,5/5] package/canopenterm: new package
Commit Message
CANopenTerm is an open-source tool for developing, testing, and
analyzing CANopen CC networks and devices. It provides a technical,
no-nonsense solution for professionals working with CAN CC-based
networks. Additionally, it supports SAE J1939 and OBD-II protocols,
making it versatile for various applications.
Project page: https://github.com/CANopenTerm/CANopenTerm
Tested on STM32MP257F-EV1
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/canopenterm/Config.in | 27 +++++++++++++++++++++++++++
package/canopenterm/canopenterm.hash | 3 +++
package/canopenterm/canopenterm.mk | 23 +++++++++++++++++++++++
5 files changed, 55 insertions(+)
create mode 100644 package/canopenterm/Config.in
create mode 100644 package/canopenterm/canopenterm.hash
create mode 100644 package/canopenterm/canopenterm.mk
--
2.43.0
@@ -828,6 +828,7 @@ F: package/armadillo/
F: package/atf/
F: package/babeld/
F: package/bc/
+F: package/canopenterm/
F: package/canvenient/
F: package/cmocka/
F: package/connman/
@@ -2458,6 +2458,7 @@ endif
source "package/c-icap-modules/Config.in"
source "package/can-utils/Config.in"
source "package/cannelloni/Config.in"
+ source "package/canopenterm/Config.in"
source "package/casync/Config.in"
source "package/casync-nano/Config.in"
source "package/cfm/Config.in"
new file mode 100644
@@ -0,0 +1,27 @@
+config BR2_PACKAGE_CANOPENTERM
+ bool "canopenterm"
+ depends on BR2_PACKAGE_SDL3_ARCH_SUPPORTS # sdl3
+ depends on BR2_INSTALL_LIBSTDCPP # pocketpy
+ depends on BR2_PACKAGE_LUA
+ depends on BR2_TOOLCHAIN_HAS_THREADS # sdl3
+ depends on BR2_USE_WCHAR # sdl3
+ depends on !BR2_STATIC_LIBS # canvenient, isocline, pocketpy, sdl3
+ select BR2_PACKAGE_CANVENIENT
+ select BR2_PACKAGE_CJSON
+ select BR2_PACKAGE_INIH
+ select BR2_PACKAGE_ISOCLINE
+ select BR2_PACKAGE_POCKETPY
+ select BR2_PACKAGE_READLINE
+ select BR2_PACKAGE_SDL3
+ help
+ CANopenTerm is an open-source tool for developing,
+ testing, and analyzing CANopen CC networks and
+ devices.
+
+ https://github.com/CANopenTerm/CANopenTerm
+
+comment "canopenterm needs a toolchain w/ C++, threads, wchar, dynamic library"
+ depends on BR2_PACKAGE_SDL3_ARCH_SUPPORTS
+ depends on BR2_PACKAGE_LUA
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
+ || !BR2_USE_WCHAR || BR2_STATIC_LIBS
new file mode 100644
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 ef52877a6da48f0c60d934020f5387367d43ae769d144d378cb4e42fa0a29d52 canopenterm-2.04.tar.gz
+sha256 8c1f56d8bea303fb856c0bf7a63cbb91e81e2441bba1bb9fd8a314909b0e10b3 LICENSE.md
new file mode 100644
@@ -0,0 +1,23 @@
+################################################################################
+#
+# canopenterm
+#
+################################################################################
+
+CANOPENTERM_VERSION = 2.04
+CANOPENTERM_SITE = $(call github,CANopenTerm,CANopenTerm,v$(CANOPENTERM_VERSION))
+CANOPENTERM_LICENSE = MIT
+CANOPENTERM_LICENSE_FILES = LICENSE.md
+CANOPENTERM_DEPENDENCIES = \
+ canvenient \
+ cjson \
+ inih \
+ isocline \
+ lua \
+ pocketpy \
+ readline \
+ sdl3
+
+CANOPENTERM_CONF_OPTS = -DUSE_SYSTEM_LIBS=ON
+
+$(eval $(cmake-package))