From 26888e90e4e06976914992dad86e79f873c03458 Mon Sep 17 00:00:00 2001 From: Thomas Walzer Date: Wed, 2 Dec 2020 16:14:35 +0100 Subject: Adding the cannelloni tool for can over ethernet to agl-demo It could be used via cli cannelloni Bug-AGL: [SPEC-3698] Signed-off-by: Thomas Walzer Change-Id: Id07dcaf440a5b205da3ab120f4744866c4ff36de --- ...01-Fix-compilation-on-latest-gcc-versions.patch | 24 ++++++++++++++++++++++ recipes-connectivity/cannelloni/cannelloni_git.bb | 15 ++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 recipes-connectivity/cannelloni/cannelloni/0001-Fix-compilation-on-latest-gcc-versions.patch create mode 100644 recipes-connectivity/cannelloni/cannelloni_git.bb (limited to 'recipes-connectivity') diff --git a/recipes-connectivity/cannelloni/cannelloni/0001-Fix-compilation-on-latest-gcc-versions.patch b/recipes-connectivity/cannelloni/cannelloni/0001-Fix-compilation-on-latest-gcc-versions.patch new file mode 100644 index 000000000..b5e59e6e0 --- /dev/null +++ b/recipes-connectivity/cannelloni/cannelloni/0001-Fix-compilation-on-latest-gcc-versions.patch @@ -0,0 +1,24 @@ +From f3b356b1ecd6c5401537f593ce373a5b76eb8a9d Mon Sep 17 00:00:00 2001 +From: Jan-Simon Moeller +Date: Tue, 17 Nov 2020 16:06:20 +0100 +Subject: [PATCH] Fix compilation on latest gcc versions + +Signed-off-by: Jan-Simon Moeller +--- + CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 51fa256..7e977d1 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -6,7 +6,8 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") + # Options + option(SCTP_SUPPORT "SCTP_SUPPORT" ON) + +-set(CMAKE_CXX_FLAGS -Wall) ++#set(CMAKE_CXX_FLAGS -Wall) ++set(CMAKE_CXX_STANDARD 11) + + if(SCTP_SUPPORT) + include(FindSCTP) diff --git a/recipes-connectivity/cannelloni/cannelloni_git.bb b/recipes-connectivity/cannelloni/cannelloni_git.bb new file mode 100644 index 000000000..507dbf030 --- /dev/null +++ b/recipes-connectivity/cannelloni/cannelloni_git.bb @@ -0,0 +1,15 @@ +SUMMARY = "A SocketCAN over Ethernet tunnel" +HOMEPAGE = "https://github.com/mguentner/cannelloni" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRC_URI = "git://github.com/mguentner/cannelloni.git;protocol=https \ + file://0001-Fix-compilation-on-latest-gcc-versions.patch \ + " + +PV = "1.0.0+git${SRCPV}" +SRCREV = "aa0f0ecba2b8be0ea7ddd9952e719449a75330ec" + +S = "${WORKDIR}/git" + +inherit cmake -- cgit 1.2.3-korg