aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChin Huat Ang <chin.huat.ang@intel.com>2019-10-09 01:42:58 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2019-10-10 12:16:10 +0800
commitef18ef563bee5e0c11ff94c518fae91b166296ac (patch)
tree6de20876658438b34cfeba7d401dd0ddaf7f2b18
parent13fcf624491cdd0d9b3eb78a4f0cd1781b482b51 (diff)
downloadmeta-intel-ef18ef563bee5e0c11ff94c518fae91b166296ac.tar.gz
meta-intel-ef18ef563bee5e0c11ff94c518fae91b166296ac.tar.bz2
meta-intel-ef18ef563bee5e0c11ff94c518fae91b166296ac.zip
dldt-inference-engine: add PACKAGECONFIG for python API
Add PACKAGECONFIG[python3] for building dldt-inference-engine-python3 package which contains the inference engine python API. Also tweak recipe to inherit python3native instead of relying on host python as building the python API requires python3-cython which might not be available on the host. Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r2.bb16
1 files changed, 11 insertions, 5 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r2.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r2.bb
index a7db09ae..b8d5d3d5 100644
--- a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r2.bb
+++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r2.bb
@@ -27,7 +27,7 @@ SRC_URI[ma2x8x.sha256sum] = "93640eb13e235d3f71a83cd503c36ff8a63235349e1f528d903
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://../LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
-inherit cmake ptest
+inherit cmake ptest python3native
S = "${WORKDIR}/git/inference-engine"
@@ -38,7 +38,7 @@ EXTRA_OECMAKE += " \
-DENABLE_SAMPLES_CORE=1 \
-DENABLE_PLUGIN_RPATH=0 \
-DENABLE_GNA=0 \
- -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \
+ -DPYTHON_EXECUTABLE=${PYTHON} \
-DTHREADING=TBB \
-DCMAKE_INSTALL_LOCAL_ONLY=OFF \
-DCMAKE_BUILD_TYPE=DebugWithRelInfo \
@@ -65,6 +65,7 @@ COMPATIBLE_HOST_libc-musl = "null"
PACKAGECONFIG ?= ""
PACKAGECONFIG[opencl] = "-DENABLE_CLDNN=1, -DENABLE_CLDNN=0, opencl-icd-loader, opencl-icd-loader intel-compute-runtime"
+PACKAGECONFIG[python3] = "-DENABLE_PYTHON=ON -DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}, -DENABLE_PYTHON=OFF, python3-cython-native, python3"
do_install_ptest_base_prepend() {
# While not a Makefile based project that strictly falls into the category of
@@ -74,9 +75,6 @@ do_install_ptest_base_prepend() {
mv ${D}${bindir}/InferenceEngineUnitTests ${D}${PTEST_PATH}/
}
-# Move inference engine samples into a separate package
-PACKAGES =+ "${PN}-samples"
-
FILES_${PN}-dev = "${includedir} \
${libdir}/cmake \
${libdir}/libinference_engine.so \
@@ -86,4 +84,12 @@ FILES_${PN} += "${libdir}/lib*${SOLIBSDEV} \
${datadir}/openvino \
"
+# Move inference engine samples into a separate package
+PACKAGES =+ "${PN}-samples"
+
FILES_${PN}-samples = "${bindir}"
+
+# Package for inference engine python API
+PACKAGES =+ "${PN}-${PYTHON_PN}"
+
+FILES_${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}/openvino"