mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-07-19 18:39:09 +02:00
nnstreamer: Enable nnstreamer unittest_query test suite [LF-7443]
Add nnstreamer-edge as tensor_query is now dependent of this library
Signed-off-by: Alexi Birlinger <alexi.birlinger@nxp.com>
(cherry picked from commit 88c471c057
)
This commit is contained in:
parent
3a8ee11e17
commit
bcf06d3961
|
@ -0,0 +1,21 @@
|
||||||
|
SUMMARY = "NNStreamer-Edge library"
|
||||||
|
DESCRIPTION = "Remote source nodes for NNStreamer pipelines without GStreamer dependencies"
|
||||||
|
LICENSE = "Apache-2.0"
|
||||||
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=095e13fef457e259d3bc155d0ed859f1"
|
||||||
|
|
||||||
|
DEPENDS = "\
|
||||||
|
gtest \
|
||||||
|
"
|
||||||
|
|
||||||
|
NNS_EDGE_SRC ?= "git://github.com/nnstreamer/nnstreamer-edge.git;protocol=https"
|
||||||
|
SRCBRANCH = "lts/0.1.0.b"
|
||||||
|
SRCREV = "2efc10afd1161a025fa3848aca487fb9a665f3c0"
|
||||||
|
SRC_URI = "${NNS_EDGE_SRC};branch=${SRCBRANCH}"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
inherit cmake pkgconfig
|
||||||
|
|
||||||
|
EXTRA_OECMAKE = " \
|
||||||
|
-DENABLE_TEST=ON \
|
||||||
|
"
|
|
@ -30,7 +30,7 @@ S = "${WORKDIR}/git"
|
||||||
|
|
||||||
inherit meson pkgconfig
|
inherit meson pkgconfig
|
||||||
|
|
||||||
PACKAGECONFIG ??= "protobuf python3 ${PACKAGECONFIG_SOC}"
|
PACKAGECONFIG ??= "protobuf python3 query ${PACKAGECONFIG_SOC}"
|
||||||
PACKAGECONFIG_SOC ??= ""
|
PACKAGECONFIG_SOC ??= ""
|
||||||
PACKAGECONFIG_SOC:mx8-nxp-bsp:imxgpu ??= "deepview-rt tensorflow-lite tvm"
|
PACKAGECONFIG_SOC:mx8-nxp-bsp:imxgpu ??= "deepview-rt tensorflow-lite tvm"
|
||||||
PACKAGECONFIG_SOC:mx8mm-nxp-bsp ??= "deepview-rt tensorflow-lite"
|
PACKAGECONFIG_SOC:mx8mm-nxp-bsp ??= "deepview-rt tensorflow-lite"
|
||||||
|
@ -71,6 +71,13 @@ PACKAGECONFIG[python3] = "\
|
||||||
,,\
|
,,\
|
||||||
"
|
"
|
||||||
|
|
||||||
|
PACKAGECONFIG[query] = "\
|
||||||
|
-Dnnstreamer-edge-support=enabled, \
|
||||||
|
-Dnnstreamer-edge-support=disabled, \
|
||||||
|
nnstreamer-edge, \
|
||||||
|
,,\
|
||||||
|
"
|
||||||
|
|
||||||
PACKAGECONFIG[tensorflow-lite] = "\
|
PACKAGECONFIG[tensorflow-lite] = "\
|
||||||
-Dtflite2-support=enabled, \
|
-Dtflite2-support=enabled, \
|
||||||
-Dtflite2-support=disabled, \
|
-Dtflite2-support=disabled, \
|
||||||
|
@ -105,6 +112,7 @@ PACKAGES =+ "\
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'protobuf','${PN}-protobuf', '', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'protobuf','${PN}-protobuf', '', d)} \
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'protobuf grpc','${PN}-grpc-protobuf', '', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'protobuf grpc','${PN}-grpc-protobuf', '', d)} \
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'python3','${PN}-python3', '', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'python3','${PN}-python3', '', d)} \
|
||||||
|
${@bb.utils.contains('PACKAGECONFIG', 'query','${PN}-query', '', d)} \
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'tensorflow-lite','${PN}-tensorflow-lite', '', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'tensorflow-lite','${PN}-tensorflow-lite', '', d)} \
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'tvm','${PN}-tvm', '', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'tvm','${PN}-tvm', '', d)} \
|
||||||
"
|
"
|
||||||
|
@ -122,6 +130,7 @@ RDEPENDS:${PN}-unittest = "gstreamer1.0-plugins-good nnstreamer ssat \
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'protobuf','${PN}-protobuf', '', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'protobuf','${PN}-protobuf', '', d)} \
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'protobuf grpc','${PN}-grpc-protobuf', '', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'protobuf grpc','${PN}-grpc-protobuf', '', d)} \
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'python3','${PN}-python3', '', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'python3','${PN}-python3', '', d)} \
|
||||||
|
${@bb.utils.contains('PACKAGECONFIG', 'query','${PN}-query', '', d)} \
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'tensorflow-lite','${PN}-tensorflow-lite', '', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'tensorflow-lite','${PN}-tensorflow-lite', '', d)} \
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'tvm','${PN}-tvm', '', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'tvm','${PN}-tvm', '', d)} \
|
||||||
"
|
"
|
||||||
|
@ -180,6 +189,10 @@ FILES:${PN}-python3 = "\
|
||||||
${PYTHON_SITEPACKAGES_DIR}/nnstreamer_python.so \
|
${PYTHON_SITEPACKAGES_DIR}/nnstreamer_python.so \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
FILES:${PN}-query = "\
|
||||||
|
${libdir}/gstreamer-1.0/libgstedge.so \
|
||||||
|
"
|
||||||
|
|
||||||
FILES:${PN}-tensorflow-lite = "\
|
FILES:${PN}-tensorflow-lite = "\
|
||||||
${libdir}/nnstreamer/filters/libnnstreamer_filter_tensorflow2-lite.so \
|
${libdir}/nnstreamer/filters/libnnstreamer_filter_tensorflow2-lite.so \
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user