Skip to contentSkip to conversation

meta-arago-extras: Add recipe for NNShark

PATCH Superseded Andrew Davis 3 participants 5 messages Mar 11, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-arago-extras: Add recipe for NNShark

---
 .../recipes-multimedia/nnshark/nnshark_git.bb | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +38 -0
new file mode 100644
index 00000000..1a3d8ad5
@@ -0,0 +1,38 @@
+SUMMARY = "A GStreamer NNstreamer pipelines real-time profiling plugin"
+HOMEPAGE = "https://github.com/nnstreamer/nnshark"
+
+LICENSE = "GPL-2.0-only & LGPL-2.1-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=e1caa368743492879002ad032445fa97 \
+                    file://COPYING.LESSER;md5=66c40c88533cd228b5b85936709801c8"
+
+SRC_URI = "git://github.com/nnstreamer/nnshark.git;protocol=https;branch=master;name=nnshark \
+           git://github.com/GStreamer/common.git;protocol=https;branch=master;name=common;subdir=${S}/common \
+"
+
+SRCREV_FORMAT="default"
+SRCREV_nnshark="bcee91b23a98c981b87051fe1b2ad545991c4aa2"
+SRCREV_common="b64f03f6090245624608beb5d2fff335e23a01c0"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "\
+    gtk-doc-native \
+    gstreamer1.0 \
+    gstreamer1.0-plugins-base \
+"
+
+inherit pkgconfig autotools-brokensep
+
+EXTRA_OECONF = " \
+        --disable-graphviz \
+        --disable-gtk-doc \
+"
+
+do_configure:prepend() {
+    sh autogen.sh --noconfigure
+}
+
+FILES:${PN} += "\
+       ${libdir}/gstreamer-1.0/libgstsharktracers.so \
+       ${libdir}/gstreamer-1.0/libgstsharktracers.la \
+"
Signature · 1 line
2.39.2
#1 lore raw

Hello Andrew,

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb line 1

Quoted 13 lines · Andrew Davis via lists.yoctoproject.org
---
  .../recipes-multimedia/nnshark/nnshark_git.bb | 38 +++++++++++++++++++
  1 file changed, 38 insertions(+)

create mode 100644 meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +1 -0
new file mode 100644
index 00000000..1a3d8ad5
@@ -0,0 +1,38 @@
+SUMMARY = "A GStreamer NNstreamer pipelines real-time profiling plugin"

nitpick, the below sounds much better?

SUMMARY = "A GStreamer plugin to support real-time performance profiling of NNStreamer pipelines."

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb line 10

Quoted 9 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +9 -0
+HOMEPAGE = "https://github.com/nnstreamer/nnshark"
+
+LICENSE = "GPL-2.0-only & LGPL-2.1-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=e1caa368743492879002ad032445fa97 \
+                    file://COPYING.LESSER;md5=66c40c88533cd228b5b85936709801c8"
+
+SRC_URI = "git://github.com/nnstreamer/nnshark.git;protocol=https;branch=master;name=nnshark \
+           git://github.com/GStreamer/common.git;protocol=https;branch=master;name=common;subdir=${S}/common \
+"

any specific reasons to not go with something like below,

SRC_URI = "gitsm://github.com/nnstreamer/nnshark.git;protocol=https;branch=master \
"

SRCREV = "bcee91b23a98c981b87051fe1b2ad545991c4aa2"

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb line 16

Quoted 6 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +6 -0
+
+SRCREV_FORMAT="default"
+SRCREV_nnshark="bcee91b23a98c981b87051fe1b2ad545991c4aa2"
+SRCREV_common="b64f03f6090245624608beb5d2fff335e23a01c0"
+
+S = "${WORKDIR}/git"

probably master might need a separate patch for UNPACKDIR stuff?

--
Chirag

Quoted 22 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +22 -0
+
+DEPENDS = "\
+    gtk-doc-native \
+    gstreamer1.0 \
+    gstreamer1.0-plugins-base \
+"
+
+inherit pkgconfig autotools-brokensep
+
+EXTRA_OECONF = " \
+        --disable-graphviz \
+        --disable-gtk-doc \
+"
+
+do_configure:prepend() {
+    sh autogen.sh --noconfigure
+}
+
+FILES:${PN} += "\
+       ${libdir}/gstreamer-1.0/libgstsharktracers.so \
+       ${libdir}/gstreamer-1.0/libgstsharktracers.la \
+"
#2 lore raw
Quoted 20 lines · Chirag Shilwant via lists.yoctoproject.org

Hello Andrew,

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb line 1

Quoted 13 lines · Andrew Davis via lists.yoctoproject.org
---
 .../recipes-multimedia/nnshark/nnshark_git.bb | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +1 -0
new file mode 100644
index 00000000..1a3d8ad5
@@ -0,0 +1,38 @@
+SUMMARY = "A GStreamer NNstreamer pipelines real-time profiling plugin"

nitpick, the below sounds much better?

Quoted 2 lines

SUMMARY = "A GStreamer plugin to support real-time performance profiling of NNStreamer pipelines."

This is 86+ characters long, which is too long for the SUMMARY (72 max). Also, no dots at the end of the SUMMARY, only in the DESCRIPTION, which happens automatically if not set explicitly.

Quoted 12 lines

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb line 10

Quoted 9 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +9 -0
+HOMEPAGE = "https://github.com/nnstreamer/nnshark"
+
+LICENSE = "GPL-2.0-only & LGPL-2.1-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=e1caa368743492879002ad032445fa97 \
+                    file://COPYING.LESSER;md5=66c40c88533cd228b5b85936709801c8"
+
+SRC_URI = "git://github.com/nnstreamer/nnshark.git;protocol=https;branch=master;name=nnshark \
+           git://github.com/GStreamer/common.git;protocol=https;branch=master;name=common;subdir=${S}/common \
+"

any specific reasons to not go with something like below,

Quoted 5 lines

SRC_URI = "gitsm://github.com/nnstreamer/nnshark.git;protocol=https;branch=master \
"

SRCREV = "bcee91b23a98c981b87051fe1b2ad545991c4aa2"

Unless you want to control each SRCREV separately.

Quoted 7 lines

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb line 16

Quoted 5 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +5 -0
+SRCREV_FORMAT="default"
+SRCREV_nnshark="bcee91b23a98c981b87051fe1b2ad545991c4aa2"
+SRCREV_common="b64f03f6090245624608beb5d2fff335e23a01c0"
+
+S = "${WORKDIR}/git"

probably master might need a separate patch for UNPACKDIR stuff?

No changes for git based recipes needed.

Quoted 22 lines
Quoted 22 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +22 -0
+
+DEPENDS = "\
+    gtk-doc-native \
+    gstreamer1.0 \
+    gstreamer1.0-plugins-base \
+"
+
+inherit pkgconfig autotools-brokensep
+
+EXTRA_OECONF = " \
+        --disable-graphviz \
+        --disable-gtk-doc \
+"
+
+do_configure:prepend() {
+    sh autogen.sh --noconfigure
+}
+
+FILES:${PN} += "\
+       ${libdir}/gstreamer-1.0/libgstsharktracers.so \
+       ${libdir}/gstreamer-1.0/libgstsharktracers.la \
+"
#3 lore raw
Quoted 41 lines · Denys Dmytriyenko
Quoted 20 lines · Chirag Shilwant via lists.yoctoproject.org

Hello Andrew,

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb line 1

Quoted 13 lines · Andrew Davis via lists.yoctoproject.org
---
  .../recipes-multimedia/nnshark/nnshark_git.bb | 38 +++++++++++++++++++
  1 file changed, 38 insertions(+)

create mode 100644 meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +1 -0
new file mode 100644
index 00000000..1a3d8ad5
@@ -0,0 +1,38 @@
+SUMMARY = "A GStreamer NNstreamer pipelines real-time profiling plugin"

nitpick, the below sounds much better?

Quoted 2 lines

SUMMARY = "A GStreamer plugin to support real-time performance profiling of NNStreamer pipelines."

This is 86+ characters long, which is too long for the SUMMARY (72 max). Also, no dots at the end of the SUMMARY, only in the DESCRIPTION, which happens automatically if not set explicitly.

Quoted 12 lines

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb line 10

Quoted 9 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +9 -0
+HOMEPAGE = "https://github.com/nnstreamer/nnshark"
+
+LICENSE = "GPL-2.0-only & LGPL-2.1-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=e1caa368743492879002ad032445fa97 \
+                    file://COPYING.LESSER;md5=66c40c88533cd228b5b85936709801c8"
+
+SRC_URI = "git://github.com/nnstreamer/nnshark.git;protocol=https;branch=master;name=nnshark \
+           git://github.com/GStreamer/common.git;protocol=https;branch=master;name=common;subdir=${S}/common \
+"

any specific reasons to not go with something like below,

Quoted 8 lines
Quoted 5 lines

SRC_URI = "gitsm://github.com/nnstreamer/nnshark.git;protocol=https;branch=master \
"

SRCREV = "bcee91b23a98c981b87051fe1b2ad545991c4aa2"

Unless you want to control each SRCREV separately.

Right, that is the reason I do this, the version of "common" when pulled as a submodule is not available, we have the exact same issue for TI GST plugins and we patch around[0]. This way of pulling "common" manually with SRC_URI seemed better.

Andrew

[0] https://git.yoctoproject.org/meta-arago/tree/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-vpe/0001-Switch-submodule-common-to-github.patch

Quoted 34 lines
Quoted 8 lines

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb line 16

Quoted 6 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +5 -0
+SRCREV_FORMAT="default"
+SRCREV_nnshark="bcee91b23a98c981b87051fe1b2ad545991c4aa2"
+SRCREV_common="b64f03f6090245624608beb5d2fff335e23a01c0"
+
+S = "${WORKDIR}/git"

probably master might need a separate patch for UNPACKDIR stuff?

No changes for git based recipes needed.

Quoted 22 lines
Quoted 22 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +22 -0
+
+DEPENDS = "\
+    gtk-doc-native \
+    gstreamer1.0 \
+    gstreamer1.0-plugins-base \
+"
+
+inherit pkgconfig autotools-brokensep
+
+EXTRA_OECONF = " \
+        --disable-graphviz \
+        --disable-gtk-doc \
+"
+
+do_configure:prepend() {
+    sh autogen.sh --noconfigure
+}
+
+FILES:${PN} += "\
+       ${libdir}/gstreamer-1.0/libgstsharktracers.so \
+       ${libdir}/gstreamer-1.0/libgstsharktracers.la \
+"
#4 lore raw
In reply to Andrew Davis
Quoted 16 lines · Andrew Davis via lists.yoctoproject.org
---
 .../recipes-multimedia/nnshark/nnshark_git.bb | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +4 -0
new file mode 100644
index 00000000..1a3d8ad5
@@ -0,0 +1,38 @@
+SUMMARY = "A GStreamer NNstreamer pipelines real-time profiling plugin"
+HOMEPAGE = "https://github.com/nnstreamer/nnshark"
+
+LICENSE = "GPL-2.0-only & LGPL-2.1-only"

meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb line 14

Quoted 10 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +10 -0
+LIC_FILES_CHKSUM = "file://COPYING;md5=e1caa368743492879002ad032445fa97 \
+                    file://COPYING.LESSER;md5=66c40c88533cd228b5b85936709801c8"
+
+SRC_URI = "git://github.com/nnstreamer/nnshark.git;protocol=https;branch=master;name=nnshark \
+           git://github.com/GStreamer/common.git;protocol=https;branch=master;name=common;subdir=${S}/common \
+"
+
+SRCREV_FORMAT="default"
+SRCREV_nnshark="bcee91b23a98c981b87051fe1b2ad545991c4aa2"
+SRCREV_common="b64f03f6090245624608beb5d2fff335e23a01c0"

You might want to fix these ^

https://lists.yoctoproject.org/g/meta-ti/message/18319

Quoted 25 lines
meta-arago-extras/recipes-multimedia/nnshark/nnshark_git.bb new file +23 -0
+S = "${WORKDIR}/git"
+
+DEPENDS = "\
+    gtk-doc-native \
+    gstreamer1.0 \
+    gstreamer1.0-plugins-base \
+"
+
+inherit pkgconfig autotools-brokensep
+
+EXTRA_OECONF = " \
+        --disable-graphviz \
+        --disable-gtk-doc \
+"
+
+do_configure:prepend() {
+    sh autogen.sh --noconfigure
+}
+
+FILES:${PN} += "\
+       ${libdir}/gstreamer-1.0/libgstsharktracers.so \
+       ${libdir}/gstreamer-1.0/libgstsharktracers.la \
+"
Signature · 1 line
2.39.2