Add a recipe to clone from the YangModels repo and install
the TSN Yang based models

Signed-off-by: Ravi Gunasekaran <[email protected]>
---
 .../tsn-yang-models/tsn-yang-models_git.bb    | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 
meta-arago-extras/recipes-sysrepo/tsn-yang-models/tsn-yang-models_git.bb

diff --git 
a/meta-arago-extras/recipes-sysrepo/tsn-yang-models/tsn-yang-models_git.bb 
b/meta-arago-extras/recipes-sysrepo/tsn-yang-models/tsn-yang-models_git.bb
new file mode 100644
index 00000000..21e2777f
--- /dev/null
+++ b/meta-arago-extras/recipes-sysrepo/tsn-yang-models/tsn-yang-models_git.bb
@@ -0,0 +1,25 @@
+# Recipe created by recipetool
+SUMMARY = "TSN based YANG models"
+DESCRIPTION = ""
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://README.md;md5=a89040f014c0c9c9360e29ddf88bf4a7"
+
+SRC_URI = "git://github.com/YangModels/yang.git;protocol=https;branch=main"
+
+PV = "1.0+git${SRCPV}"
+SRCREV = "d3f6ca02ec9ce7c96b55066d209d08adbe851897"
+
+S = "${WORKDIR}/git"
+
+FILES:${PN} += "/usr/share/yang/*"
+
+do_install:append () {
+    install -d ${D}/usr/share/yang/modules/netopeer2
+    install -o root -g root ${S}/standard/ietf/RFC/iana-if-type.yang 
${D}/usr/share/yang/modules/netopeer2/[email protected]
+    install -o root -g root 
${S}/standard/ieee/draft/802.1/Qcw/ieee802-types.yang 
${D}/usr/share/yang/modules/netopeer2/[email protected]
+    install -o root -g root 
${S}/standard/ieee/draft/802.1/Qcw/ieee802-dot1q-types.yang 
${D}/usr/share/yang/modules/netopeer2/[email protected]
+    install -o root -g root 
${S}/standard/ieee/draft/802.1/Qcw/ieee802-dot1q-bridge.yang 
${D}//usr/share/yang/modules/netopeer2/[email protected]
+    install -o root -g root 
${S}/standard/ieee/draft/802.1/Qcw/ieee802-dot1q-sched.yang 
${D}//usr/share/yang/modules/netopeer2/[email protected]
+    install -o root -g root 
${S}/standard/ieee/draft/802.1/Qcw/ieee802-dot1q-sched-bridge.yang 
${D}//usr/share/yang/modules/netopeer2/[email protected]
+}
+
-- 
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14566): 
https://lists.yoctoproject.org/g/meta-arago/message/14566
Mute This Topic: https://lists.yoctoproject.org/mt/99426847/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to