From patchwork Tue Jun 27 14:42:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ravi Gunasekaran X-Patchwork-Id: 26533 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4ADFC3DA40 for ; Tue, 27 Jun 2023 14:43:07 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by mx.groups.io with SMTP id smtpd.web10.15362.1687876977560211591 for ; Tue, 27 Jun 2023 07:42:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=L2a4/H20; spf=pass (domain: ti.com, ip: 198.47.23.248, mailfrom: r-gunasekaran@ti.com) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35REgta5006937; Tue, 27 Jun 2023 09:42:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1687876975; bh=mwbRmkvhQIT1rVyjAQ06+x0nwofvlXAyj9cVqoGRY1A=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=L2a4/H20gIsaXpTlZVM9e/Z02hXOBSMoJhzPkl+496RikqOOYfktUjkcEpdCDoeGw 9DmgfztmhxjwRLD4z7mBJUWWPZbm5Hu1lH3D0NSVjwLuM2EFiaRwuJlLkUz8r3x89/ Dm6Qit/diJ5l12cXl8CZXZ1o2yb5JVwpoGtDx6PI= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35REgtv7044538 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Jun 2023 09:42:55 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Jun 2023 09:42:54 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 27 Jun 2023 09:42:54 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35REgnlf097343; Tue, 27 Jun 2023 09:42:52 -0500 From: Ravi Gunasekaran To: CC: , , , , , Subject: [master/kirkstone][PATCH v4 1/8] meta-arago-extras: sysrepo: Update checksum for nw-configurator Date: Tue, 27 Jun 2023 20:12:42 +0530 Message-ID: <20230627144249.30543-2-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230627144249.30543-1-r-gunasekaran@ti.com> References: <20230627144249.30543-1-r-gunasekaran@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 27 Jun 2023 14:43:07 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14706 Instead of using the source file to compute the license checksum, use the license text only from source file. Signed-off-by: Ravi Gunasekaran --- Changes since v3: ---------------- No change Changes since v2: ---------------- 1) Corrected the license type 2) License checksum calculated based on the license header instead of the entire source file Changes since v1: --------------- No change .../recipes-sysrepo/nw-configurator/nw-configurator.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta-arago-extras/recipes-sysrepo/nw-configurator/nw-configurator.bb b/meta-arago-extras/recipes-sysrepo/nw-configurator/nw-configurator.bb index 5a152017..c5d9a86b 100644 --- a/meta-arago-extras/recipes-sysrepo/nw-configurator/nw-configurator.bb +++ b/meta-arago-extras/recipes-sysrepo/nw-configurator/nw-configurator.bb @@ -1,6 +1,7 @@ -LICENSE="GPLv2" DESCRIPTION = "Sysrepo based repo to configure EST" -LIC_FILES_CHKSUM = "file://nw-configurator.c;md5=a818a6cf4fbeeb21acc8b4e9956c08a4" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://nw-configurator.c;beginline=1;endline=33;md5=3538caaf9bfb8372347877ad393660fa" SRC_URI = "file://nw-configurator.c" From patchwork Tue Jun 27 14:42:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ravi Gunasekaran X-Patchwork-Id: 26535 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFE8AC001DB for ; Tue, 27 Jun 2023 14:43:07 +0000 (UTC) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by mx.groups.io with SMTP id smtpd.web10.15364.1687876979853179711 for ; Tue, 27 Jun 2023 07:43:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=C+23JQ9b; spf=pass (domain: ti.com, ip: 198.47.19.141, mailfrom: r-gunasekaran@ti.com) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35REgvgj013529; Tue, 27 Jun 2023 09:42:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1687876977; bh=BX1ZrADLfCmMLS/dDZsYfBGi9T+frHExaLA62wR06RE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=C+23JQ9bN3WXBAkwoXVBl/kcMDa3mFUxH4iWKj0dIfw/70rh9qUn8Ejx5uUxUDj/C Za7lzpCbqc4obtRLuBl4NAvOVh3elpLdC5Qv4kGmf5QZdNx/Vud+1eUeqXHsjoDEKU LRA2PS15YjxDIYl+5Ip5xmXn6ul7SA2LafnZ1cKM= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35REgvtI044552 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Jun 2023 09:42:57 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Jun 2023 09:42:57 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 27 Jun 2023 09:42:57 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35REgnlg097343; Tue, 27 Jun 2023 09:42:55 -0500 From: Ravi Gunasekaran To: CC: , , , , , Subject: [master/kirkstone][PATCH v4 2/8] meta-arago-extras: sysrepo: Add libssh recipe needed for sysrepo Date: Tue, 27 Jun 2023 20:12:43 +0530 Message-ID: <20230627144249.30543-3-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230627144249.30543-1-r-gunasekaran@ti.com> References: <20230627144249.30543-1-r-gunasekaran@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 27 Jun 2023 14:43:07 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14708 libnetconf2 is needed to build sysrepo. And libnetconf2 depends on libssh. So add receipe for libssh. The recipe is taken as-is from the commit 09f73e7 ("update for honister") from the public repo [1]. [1] - https://github.com/sartura/meta-sysrepo Signed-off-by: Ravi Gunasekaran --- Changes since v3: ---------------- No change Changes since v2: --------------- Newly introduced in this series .../recipes-sysrepo/libssh/libssh_0.9.5.bb | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta-arago-extras/recipes-sysrepo/libssh/libssh_0.9.5.bb diff --git a/meta-arago-extras/recipes-sysrepo/libssh/libssh_0.9.5.bb b/meta-arago-extras/recipes-sysrepo/libssh/libssh_0.9.5.bb new file mode 100644 index 00000000..43a6827e --- /dev/null +++ b/meta-arago-extras/recipes-sysrepo/libssh/libssh_0.9.5.bb @@ -0,0 +1,35 @@ +SUMMARY = "Multiplatform C library implementing the SSHv2 and SSHv1 protocol" +HOMEPAGE = "http://www.libssh.org" +SECTION = "libs" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=dabb4958b830e5df11d2b0ed8ea255a0" + +DEPENDS = "zlib openssl" + +SRC_URI = "git://git.libssh.org/projects/libssh.git;branch=stable-0.9" +SRCREV = "0cceefd49d4d397eb21bd36e314ac87739da51ff" + +S = "${WORKDIR}/git" + +inherit cmake + +PACKAGECONFIG ??="" +PACKAGECONFIG[gssapi] = "-DWITH_GSSAPI=1, -DWITH_GSSAPI=0, krb5, " + +ARM_INSTRUCTION_SET:armv5 = "arm" + +EXTRA_OECMAKE = " \ + -DWITH_GCRYPT=0 \ + -DWITH_PCAP=1 \ + -DWITH_SFTP=1 \ + -DWITH_ZLIB=1 \ + -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \ + " + +do_configure:prepend () { + # Disable building of examples + sed -i -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' ${S}/CMakeLists.txt \ + || bbfatal "Failed to disable examples" +} + +TOOLCHAIN = "gcc" From patchwork Tue Jun 27 14:42:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ravi Gunasekaran X-Patchwork-Id: 26536 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF0EAEB64DC for ; Tue, 27 Jun 2023 14:43:07 +0000 (UTC) Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by mx.groups.io with SMTP id smtpd.web10.15366.1687876981904199694 for ; Tue, 27 Jun 2023 07:43:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=yCsupn6E; spf=pass (domain: ti.com, ip: 198.47.23.249, mailfrom: r-gunasekaran@ti.com) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35REh000026863; Tue, 27 Jun 2023 09:43:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1687876980; bh=rNqud8zSMqyMcMndq7ZSe+J+wnnpgLLUUwR9Wwy7joU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yCsupn6E7D6v8W3RSVOB/V3qLFhW/M1xKpoBK20egKOCYpS78yaaspIqDm2qTNhqi VNEjVrwl1Aq7RLhgSEEEprd9DqEcL2yErhSK+O57Khubzr3T3KaGrMy1e1rT74y+L7 yzYn0TtbaOimUkWTYbdkt297RNyA3KAcvrLFfClQ= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35REh0Pd034405 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Jun 2023 09:43:00 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Jun 2023 09:42:59 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 27 Jun 2023 09:43:00 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35REgnlh097343; Tue, 27 Jun 2023 09:42:57 -0500 From: Ravi Gunasekaran To: CC: , , , , , Subject: [master/kirkstone][PATCH v4 3/8] meta-arago-extras: sysrepo: Add libyang recipe needed for sysrepo Date: Tue, 27 Jun 2023 20:12:44 +0530 Message-ID: <20230627144249.30543-4-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230627144249.30543-1-r-gunasekaran@ti.com> References: <20230627144249.30543-1-r-gunasekaran@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 27 Jun 2023 14:43:07 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14709 libyang library is needed to build sysrepo and libnetconf2. So add recipe for libyang. The recipe is taken as-is from the commit 09f73e7 ("update for honister") from the public repo [1]. [1] - https://github.com/sartura/meta-sysrepo Signed-off-by: Ravi Gunasekaran --- Changes since v3: ---------------- No change Changes since v2: --------------- Newly introduced in this series .../recipes-sysrepo/libyang/libyang_git.bb | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta-arago-extras/recipes-sysrepo/libyang/libyang_git.bb diff --git a/meta-arago-extras/recipes-sysrepo/libyang/libyang_git.bb b/meta-arago-extras/recipes-sysrepo/libyang/libyang_git.bb new file mode 100644 index 00000000..c984a252 --- /dev/null +++ b/meta-arago-extras/recipes-sysrepo/libyang/libyang_git.bb @@ -0,0 +1,23 @@ +SUMMARY = "YANG data modelling language parser and toolkit" +DESCRIPTION = "libyang is YANG data modelling language parser and toolkit written (and providing API) in C. The library is used e.g. in libnetconf2, Netopeer2 or sysrepo projects." +SECTION = "libs" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f3916d7d8d42a6508d0ea418cfff10ad" + +SRC_URI = "git://github.com/CESNET/libyang.git;protocol=https;branch=devel" + +PV = "2.1.77+git${SRCPV}" +SRCREV = "a804113c9bbac3e36c53221be469c1ca5af5b435" + +S = "${WORKDIR}/git" + +DEPENDS = "libpcre2" + +FILES:${PN} += "/usr/share/yang/modules/libyang/*" + +inherit cmake pkgconfig + +# Specify any options you want to pass to cmake using EXTRA_OECMAKE: +EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String=Release " + +BBCLASSEXTEND = "native nativesdk" From patchwork Tue Jun 27 14:42:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ravi Gunasekaran X-Patchwork-Id: 26537 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02785C001DE for ; Tue, 27 Jun 2023 14:43:08 +0000 (UTC) Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by mx.groups.io with SMTP id smtpd.web11.15207.1687876984501868964 for ; Tue, 27 Jun 2023 07:43:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=KQg5VYy9; spf=pass (domain: ti.com, ip: 198.47.23.249, mailfrom: r-gunasekaran@ti.com) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35REh2PQ026873; Tue, 27 Jun 2023 09:43:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1687876982; bh=jWFeRL/RyviOJdRvaL7k5NCRPwwMEkWRKKRXiWjXh8A=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KQg5VYy93Y3eOYqzWYpS0KJHrSOE9P5o6sRIZ6nZZdgBaRu2IVe0pHybB3/zmqH2V hL4zOi+jIuCs8NOunDCfDLrVfwrbIz9tVgXWoAGQ4HGhmifro7KBVuVbtLn0z9Azzg NexIRCbVpvVbfB7CW+Fi7tia5B5fgirwFviPsrKk= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35REh23D004310 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Jun 2023 09:43:02 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Jun 2023 09:43:02 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 27 Jun 2023 09:43:02 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35REgnli097343; Tue, 27 Jun 2023 09:43:00 -0500 From: Ravi Gunasekaran To: CC: , , , , , Subject: [master/kirkstone][PATCH v4 4/8] meta-arago-extras: sysrepo: Add libnetconf recipe neede for sysrepo Date: Tue, 27 Jun 2023 20:12:45 +0530 Message-ID: <20230627144249.30543-5-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230627144249.30543-1-r-gunasekaran@ti.com> References: <20230627144249.30543-1-r-gunasekaran@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 27 Jun 2023 14:43:08 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14710 libnetconf2 is needed to build sysrepo. Add the recipe for libnetconf2. The recipe is taken as-is from the commit 09f73e7 ("update for honister") from the public repo [1]. [1] - https://github.com/sartura/meta-sysrepo Signed-off-by: Ravi Gunasekaran --- Changes since v3: ---------------- No change Changes since v2: --------------- Newly introduced in this series .../libnetconf2/libnetconf2_git.bb | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta-arago-extras/recipes-sysrepo/libnetconf2/libnetconf2_git.bb diff --git a/meta-arago-extras/recipes-sysrepo/libnetconf2/libnetconf2_git.bb b/meta-arago-extras/recipes-sysrepo/libnetconf2/libnetconf2_git.bb new file mode 100644 index 00000000..a534b9ac --- /dev/null +++ b/meta-arago-extras/recipes-sysrepo/libnetconf2/libnetconf2_git.bb @@ -0,0 +1,24 @@ +SUMMARY = "libnetconf2 is a NETCONF library in C intended for building NETCONF clients and servers" +DESCRIPTION = "The library provides functions to connect NETCONF client and server to each other via SSH and to send, receive and process NETCONF messages." +SECTION = "libs" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=08a5578c9bab06fb2ae84284630b973f" + +SRC_URI = "git://github.com/CESNET/libnetconf2.git;protocol=https;branch=devel" + +PV = "2.1.34+git${SRCPV}" +SRCREV = "91cd6d75722c65de5c005d908f6d645b48cee89b" + +S = "${WORKDIR}/git" + +DEPENDS = "libssh openssl libyang libxcrypt libpam" + +FILES:${PN} += "/usr/share/yang/modules/libnetconf2/*" + +inherit cmake pkgconfig + +# Specify any options you want to pass to cmake using EXTRA_OECMAKE: +#EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String=Release -DLIBYANG_INCLUDE_DIR=/usr/include -DLIBYANG_LIBRARY=/usr/lib " +EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String=Release " + +BBCLASSEXTEND = "native nativesdk" From patchwork Tue Jun 27 14:42:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ravi Gunasekaran X-Patchwork-Id: 26534 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E36C2C001B1 for ; Tue, 27 Jun 2023 14:43:07 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by mx.groups.io with SMTP id smtpd.web11.15208.1687876987439181626 for ; Tue, 27 Jun 2023 07:43:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=F8r2HO++; spf=pass (domain: ti.com, ip: 198.47.23.248, mailfrom: r-gunasekaran@ti.com) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35REh5xQ006966; Tue, 27 Jun 2023 09:43:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1687876985; bh=YIHpuH1vJaczB71j4r3sFdILl5N9+T8lOAKOQ4Gijaw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=F8r2HO++U7f2AKx7jZdy8UlBstWTE+NiI3ydRRNOgGO5jS1+MVywgAuFT0X3hpR/a EEk6+kfoBvNbGMG+1G89kQF02Pi3p2EOS08Pza8gt7Z0Zn0R7/rHwbpvkUVW5udCC1 7ZFT0bxcEgtKJv1cUJU4PpLQjOjHQ8KFEfKjPPSI= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35REh5qZ044683 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Jun 2023 09:43:05 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Jun 2023 09:43:05 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 27 Jun 2023 09:43:05 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35REgnlj097343; Tue, 27 Jun 2023 09:43:02 -0500 From: Ravi Gunasekaran To: CC: , , , , , Subject: [master/kirkstone][PATCH v4 5/8] meta-arago-extras: sysrepo: Add libredblack needed for sysrepo Date: Tue, 27 Jun 2023 20:12:46 +0530 Message-ID: <20230627144249.30543-6-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230627144249.30543-1-r-gunasekaran@ti.com> References: <20230627144249.30543-1-r-gunasekaran@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 27 Jun 2023 14:43:07 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14711 libredblack is needed to build sysrepo. Add recipe for libredblack. The recipe is taken as-is from the commit 09f73e7 ("update for honister") from the public repo [1]. [1] - https://github.com/sartura/meta-sysrepo Signed-off-by: Ravi Gunasekaran --- Changes since v3: ---------------- No change Changes since v2: --------------- Newly introduced in this series .../libredblack/libredblack_git.bb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-arago-extras/recipes-sysrepo/libredblack/libredblack_git.bb diff --git a/meta-arago-extras/recipes-sysrepo/libredblack/libredblack_git.bb b/meta-arago-extras/recipes-sysrepo/libredblack/libredblack_git.bb new file mode 100644 index 00000000..ea51b618 --- /dev/null +++ b/meta-arago-extras/recipes-sysrepo/libredblack/libredblack_git.bb @@ -0,0 +1,21 @@ +SUMMARY = "Library for handling red-black tree searching algorithm" +DESCRIPTION = "A library to provide the RedBlack balanced tree searching and sorting algorithm." +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=de174fb5a92cdbe038c88dc4c4316f99" + +SRC_URI = "git://github.com/sysrepo/libredblack.git;protocol=https" + +PV = "1.0+git${SRCPV}" +SRCREV = "a399310d99b61eec4d3c0677573ab5dddcf9395d" + +S = "${WORKDIR}/git" + +# NOTE: if this software is not capable of being built in a separate build directory +# from the source, you should replace autotools with autotools-brokensep in the +# inherit line +inherit python3native autotools + +# Specify any options you want to pass to the configure script using EXTRA_OECONF: +EXTRA_OECONF = " --without-rbgen " + +BBCLASSEXTEND = "native nativesdk" From patchwork Tue Jun 27 14:42:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ravi Gunasekaran X-Patchwork-Id: 26539 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9326EB64DC for ; Tue, 27 Jun 2023 14:43:17 +0000 (UTC) Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by mx.groups.io with SMTP id smtpd.web11.15209.1687876989189936941 for ; Tue, 27 Jun 2023 07:43:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=rm57566W; spf=pass (domain: ti.com, ip: 198.47.23.249, mailfrom: r-gunasekaran@ti.com) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35REh7cR026884; Tue, 27 Jun 2023 09:43:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1687876987; bh=YiR0xPkYgneroR4PSWBY+Pu2LvWvsVhzErcI6FJDw9Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rm57566WQCyZUoXWCrnmGMd6s+3w4waJmHMyRlUKGPH475tru/UO4JsPSgokvwqu4 83e51eB2IDyT1CZKuSZArvv9lfm4ULFesJDW/0+sYBgyyiWFsM721OfMDgfypztOQv kAIz/+7vLA+tcUMW94DdJ46K84OtBV54ZqHdBt5I= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35REh7UM034547 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Jun 2023 09:43:07 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Jun 2023 09:43:07 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 27 Jun 2023 09:43:07 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35REgnlk097343; Tue, 27 Jun 2023 09:43:05 -0500 From: Ravi Gunasekaran To: CC: , , , , , Subject: [master/kirkstone][PATCH v4 6/8] meta-arago-extras: sysrepo: Add sysrepo and sysrepo plugins Date: Tue, 27 Jun 2023 20:12:47 +0530 Message-ID: <20230627144249.30543-7-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230627144249.30543-1-r-gunasekaran@ti.com> References: <20230627144249.30543-1-r-gunasekaran@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 27 Jun 2023 14:43:17 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14712 NETCONF protocol is implemented via netopeer2/sysrepo. Add the sysrepo recipe so that the NETCONF protocol can be realized on devices supporting ethernet. The recipe is taken as-is from the commit 09f73e7 ("update for honister") from the public repo [1]. [1] - https://github.com/sartura/meta-sysrepo Signed-off-by: Ravi Gunasekaran --- Changes since v3: ---------------- No changes Changes since v2: --------------- Newly introduced in this series .../0001-so-version.patch | 12 +++++ .../sysrepo-plugins-common_git.bb | 26 ++++++++++ .../recipes-sysrepo/sysrepo/sysrepo/sysrepo | 51 +++++++++++++++++++ .../recipes-sysrepo/sysrepo/sysrepo_git.bb | 34 +++++++++++++ 4 files changed, 123 insertions(+) create mode 100644 meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/0001-so-version.patch create mode 100644 meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/sysrepo-plugins-common_git.bb create mode 100644 meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo/sysrepo create mode 100644 meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo_git.bb diff --git a/meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/0001-so-version.patch b/meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/0001-so-version.patch new file mode 100644 index 00000000..0eabf6a9 --- /dev/null +++ b/meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/0001-so-version.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fd64b80..910510d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -23,6 +23,7 @@ include_directories(${LIBYANG_INCLUDE_DIRS}) + include_directories(${SYSREPO_INCLUDE_DIRS}) + + add_library(${PROJECT_NAME} SHARED ${SRPC_SOURCES}) ++set_target_properties(${PROJECT_NAME} PROPERTIES VERSION 1.0.0 SOVERSION 1) + + install( + TARGETS ${PROJECT_NAME} diff --git a/meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/sysrepo-plugins-common_git.bb b/meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/sysrepo-plugins-common_git.bb new file mode 100644 index 00000000..48f6bc35 --- /dev/null +++ b/meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/sysrepo-plugins-common_git.bb @@ -0,0 +1,26 @@ +SUMMARY = "Set of utilities/functionalities which can be used for easier build of sysrepo plugins." +DESCRIPTION = "" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f91d5dfaae99cc1943a8eca222cafa5c" + +SRC_URI = "gitsm://github.com/telekom/sysrepo-plugins-common.git;protocol=https;branch=devel " +SRC_URI += " file://0001-so-version.patch " +FILESEXTRAPATHS:prepend := "${THISDIR}:" + +PV = "dev+git${SRCPV}" +SRCREV = "20885de0d3bb95a05610fdb3a0f83d8f7c370fad" + +S = "${WORKDIR}/git" + +DEPENDS = "libyang sysrepo" + +FILES:${PN} += "" + +inherit cmake pkgconfig + +# Specify any options you want to pass to cmake using EXTRA_OECMAKE: +EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr " + +do_install:append () { + true +} diff --git a/meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo/sysrepo b/meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo/sysrepo new file mode 100644 index 00000000..06881c68 --- /dev/null +++ b/meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo/sysrepo @@ -0,0 +1,51 @@ +#!/bin/sh + +# Source function library. +. /etc/init.d/functions + +EXEC_PATH="/usr/bin" +SYSREPOPLUGIND_EXEC="sysrepo-plugind" +SERVER_OPTS=" -d -v 1" + +init_sysrepo() { + export NP2_MODULE_DIR="/usr/share/yang/modules/netopeer2" + export NP2_MODULE_PERMS="600" + export NP2_MODULE_OWNER="root" + export NP2_MODULE_GROUP="root" + if [ -x /usr/bin/sysrepoctl ]; then + sh /etc/netopeer2/scripts/setup.sh + fi + if [ -x /usr/bin/sysrepocfg ]; then + sh /etc/netopeer2/scripts/merge_hostkey.sh + sh /etc/netopeer2/scripts/merge_config.sh + fi + touch /etc/sysrepo/init +} + + +case "$1" in + start) + test -r /etc/sysrepo/init || init_sysrepo + start-stop-daemon --start --background --exec $EXEC_PATH/$SYSREPOPLUGIND_EXEC -- $SERVER_OPTS + ;; + stop) + start-stop-daemon --stop --quiet --exec $EXEC_PATH/$SYSREPOPLUGIND_EXEC + rm -rf /var/run/sysrepo-subscriptions/* + ;; + status) + status $SYSREPOPLUGIND_EXEC + ;; + reload) + echo "not supported" + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "Usage: $0 {start|stop|status|restart}" + exit 1;; +esac + + +exit 0 diff --git a/meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo_git.bb b/meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo_git.bb new file mode 100644 index 00000000..18da3ca3 --- /dev/null +++ b/meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo_git.bb @@ -0,0 +1,34 @@ +# Recipe created by recipetool +SUMMARY = "YANG-based configuration and operational state data store for Unix/Linux applications." +DESCRIPTION = "" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ef345f161efb68c3836e6f5648b2312f" + +SRC_URI = "git://github.com/sysrepo/sysrepo.git;protocol=https;branch=devel file://sysrepo" + +PV = "2.2.71+git${SRCPV}" +SRCREV = "b828f0ab4693c613cc66efd053a146e05854d5c8" + +S = "${WORKDIR}/git" + +DEPENDS = "libyang protobuf protobuf-c protobuf-c-native libredblack libev libnetconf2" + +FILES:${PN} += "/usr/share/yang/* /usr/lib/sysrepo-plugind/*" + +inherit cmake pkgconfig python3native python3-dir + +# Specify any options you want to pass to cmake using EXTRA_OECMAKE: +EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String=Release -DBUILD_EXAMPLES:String=False -DENABLE_TESTS:String=False -DREPOSITORY_LOC:PATH=/etc/sysrepo -DCALL_TARGET_BINS_DIRECTLY=False -DGEN_LANGUAGE_BINDINGS:String=False " + +BBCLASSEXTEND = "native nativesdk" + +do_install:append () { + install -d ${D}/etc/sysrepo/data/notifications + install -d ${D}/etc/sysrepo/yang + install -o root -g root ${S}/modules/ietf-netconf-notifications.yang ${D}/etc/sysrepo/yang/ietf-netconf-notifications@2012-02-06.yang + install -o root -g root ${S}/modules/ietf-netconf-with-defaults.yang ${D}/etc/sysrepo/yang/ietf-netconf-with-defaults@2011-06-01.yang + install -o root -g root ${S}/modules/ietf-netconf.yang ${D}/etc/sysrepo/yang/ietf-netconf@2011-06-01.yang + install -d ${D}/etc/init.d + install -m 0775 ${WORKDIR}/sysrepo ${D}/etc/init.d/ + install -d ${D}/usr/lib/sysrepo/plugins +} From patchwork Tue Jun 27 14:42:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ravi Gunasekaran X-Patchwork-Id: 26538 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFA00C001B0 for ; Tue, 27 Jun 2023 14:43:17 +0000 (UTC) Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by mx.groups.io with SMTP id smtpd.web10.15378.1687876991739415452 for ; Tue, 27 Jun 2023 07:43:11 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=Oj+Eyx8S; spf=pass (domain: ti.com, ip: 198.47.23.249, mailfrom: r-gunasekaran@ti.com) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35REhAxO026894; Tue, 27 Jun 2023 09:43:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1687876990; bh=l08xuNwoQ3tGPOGDK20SynFllfZ64zLKFdWzTEubzPI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Oj+Eyx8Sy6HBNfx+9+WqyYPIuPLYIlN0+Bvu50C1LZLwfJOuzEox1tERDB8wvy9pL QFrA4VQ3LR9z3W1Wa9u7jSwfrRKW4D0FyIbedrHMhYxkZApTyn+LlYkvV/uXekLruu mP3piwy6SdAvtUKuNxDP70larhdkFvKuXVU/4+zM= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35REhAvG068796 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Jun 2023 09:43:10 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Jun 2023 09:43:09 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 27 Jun 2023 09:43:10 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35REgnll097343; Tue, 27 Jun 2023 09:43:07 -0500 From: Ravi Gunasekaran To: CC: , , , , , Subject: [master/kirkstone][PATCH v4 7/8] meta-arago-extras: sysrepo: Add netopeer2 recipe Date: Tue, 27 Jun 2023 20:12:48 +0530 Message-ID: <20230627144249.30543-8-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230627144249.30543-1-r-gunasekaran@ti.com> References: <20230627144249.30543-1-r-gunasekaran@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 27 Jun 2023 14:43:17 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14713 NETCONF protocol is implemented via netopeer2/sysrepo. Add the netopeer2 recipe so that the NETCONF protocol can be realized on devices supporting ethernet. The recipe is taken as-is from the commit 09f73e7 ("update for honister") from the public repo [1]. [1] - https://github.com/sartura/meta-sysrepo Signed-off-by: Ravi Gunasekaran --- Changes since v3: ---------------- No changes Changes since v2: --------------- Newly introduced in this series .../netopeer2-server/netopeer2-server | 35 +++++++++++++++++++ .../netopeer2-server/netopeer2-server_git.bb | 31 ++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/netopeer2-server create mode 100644 meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb diff --git a/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/netopeer2-server b/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/netopeer2-server new file mode 100644 index 00000000..7077df03 --- /dev/null +++ b/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/netopeer2-server @@ -0,0 +1,35 @@ +#!/bin/sh + +# Source function library. +. /etc/init.d/functions + +EXEC_PATH="/usr/sbin" +SERVER_EXEC="netopeer2-server" +SERVER_OPTS=" -v 1" + + +case "$1" in + start) + /etc/init.d/sysrepo start + start-stop-daemon --start --exec $EXEC_PATH/$SERVER_EXEC -- $SERVER_OPTS + ;; + stop) + start-stop-daemon --stop --quiet --exec $EXEC_PATH/$SERVER_EXEC + ;; + status) + status $SERVER_EXEC + ;; + reload) + echo "not supported" + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "Usage: $0 {start|stop|status|restart}" + exit 1;; +esac + + +exit 0 diff --git a/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb b/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb new file mode 100644 index 00000000..e4278d23 --- /dev/null +++ b/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb @@ -0,0 +1,31 @@ +SUMMARY = "Netopeer2 is a set of tools implementing network configuration tools based on the NETCONF Protocol." +DESCRIPTION = "Netopeer2 is based on the new generation of the NETCONF and YANG libraries - libyang and libnetconf2. The Netopeer server uses sysrepo as a NETCONF datastore implementation." +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=41daedff0b24958b2eba4f9086d782e1" + +SRC_URI = "git://github.com/CESNET/Netopeer2.git;protocol=https;branch=devel file://netopeer2-server" + +PV = "2.1.59+git${SRCPV}" +SRCREV = "b81788d9a81770313a0eb7f88d4224726b3d6e15" + +S = "${WORKDIR}/git" + +DEPENDS = "libyang libnetconf2 sysrepo curl" +RDEPENDS:${PN} += "bash curl" + +FILES:${PN} += "/usr/share/yang* /usr/share/netopeer2/* /usr/lib/sysrepo-plugind/*" + +inherit cmake pkgconfig + +# Specify any options you want to pass to cmake using EXTRA_OECMAKE: +EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE:String=Release -DINSTALL_MODULES=OFF -DGENERATE_HOSTKEY=OFF -DMERGE_LISTEN_CONFIG=OFF" + +do_install:append () { + install -d ${D}/etc/netopeer2/scripts + install -o root -g root ${S}/scripts/setup.sh ${D}/etc/netopeer2/scripts/setup.sh + install -o root -g root ${S}/scripts/merge_hostkey.sh ${D}/etc/netopeer2/scripts/merge_hostkey.sh + install -o root -g root ${S}/scripts/merge_config.sh ${D}/etc/netopeer2/scripts/merge_config.sh + install -d ${D}/etc/netopeer2 + install -d ${D}/etc/init.d + install -m 0755 ${WORKDIR}/netopeer2-server ${D}/etc/init.d/ +} From patchwork Tue Jun 27 14:42:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ravi Gunasekaran X-Patchwork-Id: 26540 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2A6EEB64D9 for ; Tue, 27 Jun 2023 14:43:17 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by mx.groups.io with SMTP id smtpd.web10.15379.1687876994446396034 for ; Tue, 27 Jun 2023 07:43:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=C0StyEZX; spf=pass (domain: ti.com, ip: 198.47.19.142, mailfrom: r-gunasekaran@ti.com) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35REhCch013750; Tue, 27 Jun 2023 09:43:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1687876992; bh=2ZsvRYgQW7CL9VGDjUXT6ieBFOIdym9fGMmjjVfca/8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=C0StyEZXSQqW1C83PAyY5jct0rPgkb7uQJIIV14vy9of8WSRQ9zKGPVYSH8UPzdE1 CRI7w3P+pyt6rNvm0N1nYOF1CDiqaVj4lyLt/DQ7Qy0/hlkp1wm9+s1nbp8ZGn5p53 gzqp6VZSG5zbqTZFWVlwx7i4LxVrbprgE4wYkajQ= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35REhCNQ034578 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Jun 2023 09:43:12 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Jun 2023 09:43:12 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 27 Jun 2023 09:43:12 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35REgnlm097343; Tue, 27 Jun 2023 09:43:10 -0500 From: Ravi Gunasekaran To: CC: , , , , , Subject: [master/kirkstone][PATCH v4 8/8] tisdk-default-image: Add package group for netopeer/sysrepo Date: Tue, 27 Jun 2023 20:12:49 +0530 Message-ID: <20230627144249.30543-9-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230627144249.30543-1-r-gunasekaran@ti.com> References: <20230627144249.30543-1-r-gunasekaran@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 27 Jun 2023 14:43:17 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14714 Add new package group for netopeer2, sysrepo, nw-configurator and yang models. Signed-off-by: Ravi Gunasekaran --- Changes since v3: ---------------- Fixed the patch as it was failing to apply cleanly Changes since v2: ---------------- Removed "PACKAGE_ARCH" as this is not machine specific. Changes since v1: ---------------- Added a new package group packagegroup-arago-tisdk-sysrepo instead of using ARAGO_DEFAULT_IMAGE_EXTRA_INSTALL. .../recipes-core/images/tisdk-default-image.bb | 1 + .../packagegroup-arago-tisdk-sysrepo.bb | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-sysrepo.bb diff --git a/meta-arago-distro/recipes-core/images/tisdk-default-image.bb b/meta-arago-distro/recipes-core/images/tisdk-default-image.bb index bb825e09..7769c97c 100644 --- a/meta-arago-distro/recipes-core/images/tisdk-default-image.bb +++ b/meta-arago-distro/recipes-core/images/tisdk-default-image.bb @@ -28,6 +28,7 @@ IMAGE_INSTALL += "\ ti-analytics \ ti-demos \ ${ARAGO_DEFAULT_IMAGE_EXTRA_INSTALL} \ + packagegroup-arago-tisdk-sysrepo \ " export IMAGE_BASENAME = "tisdk-default-image" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-sysrepo.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-sysrepo.bb new file mode 100644 index 00000000..c0bb599b --- /dev/null +++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-sysrepo.bb @@ -0,0 +1,15 @@ +SUMMARY = "Netopeer2 and Sysrepo packagegroup" +LICENSE = "MIT" + +inherit packagegroup + +ARAGO_NETOPEER_SYSREPO = "\ + sysrepo \ + netopeer2-server \ + nw-configurator \ + tsn-yang-models \ +" + +RDEPENDS:${PN} = "\ + ${ARAGO_NETOPEER_SYSREPO} \ +"