diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2025-07-11 15:41:22 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-07-11 08:35:03 -0700 |
commit | 03445131f3a0578de19d9e839d97876ea7785d3d (patch) | |
tree | 44927eadeebcd69033d4257e9eb85a8b1d193552 | |
parent | 37a20d637b0fee7583535006ca8dd246d012649c (diff) | |
download | meta-openembedded-03445131f3a0578de19d9e839d97876ea7785d3d.tar.gz |
opencv: use CPU_DISPATCH to instead of ENABLE_XXX
$ 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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/opencv/opencv_4.11.0.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv_4.11.0.bb b/meta-oe/recipes-support/opencv/opencv_4.11.0.bb index 826eff30ca..0ce47ddf82 100644 --- a/meta-oe/recipes-support/opencv/opencv_4.11.0.bb +++ b/meta-oe/recipes-support/opencv/opencv_4.11.0.bb | |||
@@ -78,9 +78,9 @@ EXTRA_OECMAKE = "-DOPENCV_EXTRA_MODULES_PATH=${S}/contrib/modules \ | |||
78 | -DOPENCV_GENERATE_PKGCONFIG=ON \ | 78 | -DOPENCV_GENERATE_PKGCONFIG=ON \ |
79 | -DOPENCV_DOWNLOAD_PATH=${OPENCV_DLDIR} \ | 79 | -DOPENCV_DOWNLOAD_PATH=${OPENCV_DLDIR} \ |
80 | -DOPENCV_ALLOW_DOWNLOADS=OFF \ | 80 | -DOPENCV_ALLOW_DOWNLOADS=OFF \ |
81 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \ | 81 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DCPU_DISPATCH=SSE,SSE2,SSE3,SSSE3", "", d)} \ |
82 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \ | 82 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DCPU_DISPATCH=SSE,SSE2,SSE3,SSSE3,SSE41", "", d)} \ |
83 | ${@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)} \ | 83 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DCPU_DISPATCH=SSE,SSE2,SSE3,SSSE3,SSE41,SSE42", "", d)} \ |
84 | " | 84 | " |
85 | LDFLAGS:append:mips = " -Wl,--no-as-needed -latomic -Wl,--as-needed" | 85 | LDFLAGS:append:mips = " -Wl,--no-as-needed -latomic -Wl,--as-needed" |
86 | LDFLAGS:append:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" | 86 | LDFLAGS:append:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" |