From 8734c6a0bc759904b81bcb942601858f7efde97a Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Mon, 27 Mar 2023 11:49:16 +0800 Subject: openvino-inference-engine: add PACKAGECONFIG for samples Add an option to turn OFF compilation of samples and tools. Move the OpenCV dependency to this PACKAGECONFIG. Signed-off-by: Anuj Mittal --- .../recipes-support/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" -- cgit v1.2.3-54-g00ecf