tensorflow-lite: Rework OpenVX dependency [YOCIMX-6234]

Align the OpenVX dependency logic with similar logic in deepview-rt,
using a simpler RDEPENDS instead of PACKAGECONFIG.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
This commit is contained in:
Tom Hochstein 2022-05-04 17:32:19 -05:00
parent 9d658dac47
commit cdaf8b9898

View File

@ -17,15 +17,6 @@ S = "${WORKDIR}/git"
inherit python3native cmake
PACKAGECONFIG_OPENVX = ""
PACKAGECONFIG_OPENVX:mx8-nxp-bsp:imxgpu3d = "openvx"
PACKAGECONFIG_OPENVX:mx8mm-nxp-bsp = ""
PACKAGECONFIG_OPENVX:mx8ulp-nxp-bsp = ""
PACKAGECONFIG ?= "${PACKAGECONFIG_OPENVX}"
PACKAGECONFIG[openvx] = ",,,libnn-imx nn-imx"
EXTRA_OECMAKE = " \
-DCMAKE_SYSROOT=${PKG_CONFIG_SYSROOT_DIR} \
-DFETCHCONTENT_FULLY_DISCONNECTED=OFF \
@ -107,7 +98,15 @@ RDEPENDS:${PN} = " \
flatbuffers \
python3 \
python3-numpy \
${RDEPENDS_OPENVX} \
"
RDEPENDS_OPENVX = ""
RDEPENDS_OPENVX:mx8-nxp-bsp:imxgpu = "libnn-imx nn-imx"
RDEPENDS_OPENVX:mx8mm-nxp-bsp = ""
# The tensorflow-lite implementation for 8ULP uses CPU, and so doesn't
# support OpenVX
RDEPENDS_OPENVX:mx8ulp-nxp-bsp = ""
# TensorFlow and TensorFlow Lite both exports few files, suppress the error
# SSTATE_ALLOW_OVERLAP_FILES = "${D}${includedir}"
SSTATE_ALLOW_OVERLAP_FILES = "/"