Add an option to turn OFF compilation of samples and tools. Move the
OpenCV dependency to this PACKAGECONFIG.

Signed-off-by: Anuj Mittal <[email protected]>
---
 .../opencv/openvino-inference-engine_2022.3.0.bb            | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.3.0.bb
 
b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.3.0.bb
index 8fb45c8a..d97e4ac9 100644
--- 
a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.3.0.bb
+++ 
b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.3.0.bb
@@ -41,13 +41,11 @@ inherit cmake python3native pkgconfig
 S = "${WORKDIR}/git"
 EXTRA_OECMAKE += " \
                   -DENABLE_OPENCV=OFF \
-                  -DOpenCV_DIR=${STAGING_LIBDIR}/cmake \
                   -DENABLE_INTEL_GNA=OFF \
                   -DENABLE_SYSTEM_TBB=ON \
                   -DPYTHON_EXECUTABLE=${PYTHON} \
                   -DCMAKE_BUILD_TYPE=RelWithDebInfo \
                   -DTHREADING=TBB -DTBB_DIR="${STAGING_LIBDIR}/cmake/TBB" \
-                  -DENABLE_SAMPLES=ON \
                   -DTREAT_WARNING_AS_ERROR=FALSE \
                   -DENABLE_DATA=FALSE \
                   -DENABLE_SYSTEM_PUGIXML=TRUE \
@@ -63,7 +61,6 @@ EXTRA_OECMAKE += " \
 DEPENDS += "\
             gflags \
             libusb1 \
-            opencv \
             protobuf \
             protobuf-native \
             protobuf-c \
@@ -76,9 +73,10 @@ DEPENDS += "\
 COMPATIBLE_HOST = '(x86_64).*-linux'
 COMPATIBLE_HOST:libc-musl = "null"
 
-PACKAGECONFIG ?= "vpu opencl"
+PACKAGECONFIG ?= "vpu opencl samples"
 PACKAGECONFIG[opencl] = "-DENABLE_INTEL_GPU=TRUE, -DENABLE_INTEL_GPU=FALSE, 
virtual/opencl-icd opencl-headers opencl-clhpp,"
 PACKAGECONFIG[python3] = "-DENABLE_PYTHON=ON 
-DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}, 
-DENABLE_PYTHON=OFF, python3-cython-native patchelf-native, python3 
python3-numpy python3-progress python3-cython"
+PACKAGECONFIG[samples] = "-DENABLE_SAMPLES=ON -DENABLE_COMPILE_TOOL=ON, 
-DENABLE_SAMPLES=OFF -DENABLE_COMPILE_TOOL=OFF, opencv"
 PACKAGECONFIG[vpu] = "-DENABLE_INTEL_MYRIAD=ON 
-DVPU_FIRMWARE_USB-MA2X8X_FILE=../usb-ma2x8x.mvcmd 
-DVPU_FIRMWARE_PCIE-MA2X8X_FILE=../pcie-ma2x8x.mvcmd,-DENABLE_INTEL_MYRIAD=OFF,,${PN}-vpu-firmware"
 PACKAGECONFIG[verbose] = "-DVERBOSE_BUILD=1,-DVERBOSE_BUILD=0"
 
-- 
2.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7895): 
https://lists.yoctoproject.org/g/meta-intel/message/7895
Mute This Topic: https://lists.yoctoproject.org/mt/97882280/21656
Group Owner: [email protected]
Unsubscribe: 
https://lists.yoctoproject.org/g/meta-intel/leave/6694807/21656/1869269227/xyzzy
 [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to