@@ -78,9 +78,9 @@ EXTRA_OECMAKE = "-DOPENCV_EXTRA_MODULES_PATH=${S}/contrib/modules \
-DOPENCV_GENERATE_PKGCONFIG=ON \
-DOPENCV_DOWNLOAD_PATH=${OPENCV_DLDIR} \
-DOPENCV_ALLOW_DOWNLOADS=OFF \
- ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \
- ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \
- ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1 -DENABLE_SSE42=1", "", d)} \
+ ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DCPU_DISPATCH=SSE,SSE2,SSE3,SSSE3", "", d)} \
+ ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DCPU_DISPATCH=SSE,SSE2,SSE3,SSSE3,SSE41", "", d)} \
+ ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DCPU_DISPATCH=SSE,SSE2,SSE3,SSSE3,SSE41,SSE42", "", d)} \
"
LDFLAGS:append:mips = " -Wl,--no-as-needed -latomic -Wl,--as-needed"
LDFLAGS:append:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed"
$ bitbake opencv $ vim tmp/work/core2-64-wrs-linux/opencv/4.11.0/temp/log.do_configure ... -- WARNING: Option ENABLE_SSE='1' is deprecated and should not be used anymore -- Behaviour of this option is not backward compatible -- Refer to 'CPU_BASELINE'/'CPU_DISPATCH' CMake options documentation -- WARNING: Option ENABLE_SSE2='1' is deprecated and should not be used anymore -- Behaviour of this option is not backward compatible -- Refer to 'CPU_BASELINE'/'CPU_DISPATCH' CMake options documentation -- WARNING: Option ENABLE_SSE3='1' is deprecated and should not be used anymore -- Behaviour of this option is not backward compatible -- Refer to 'CPU_BASELINE'/'CPU_DISPATCH' CMake options documentation -- WARNING: Option ENABLE_SSSE3='1' is deprecated and should not be used anymore -- Behaviour of this option is not backward compatible -- Refer to 'CPU_BASELINE'/'CPU_DISPATCH' CMake options documentation ... According to [1], flags ENABLE_AVX/ENABLE_AVX2/ENABLE_POPCNT/etc should not be used anymore. Use options CPU_DISPATCH instead. [1] https://github.com/opencv/opencv/wiki/CPU-optimizations-build-options#customizing-cmake-options Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> --- meta-oe/recipes-support/opencv/opencv_4.11.0.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)