diff options
| author | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-07-16 09:48:14 -0300 |
|---|---|---|
| committer | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-07-16 17:06:07 -0300 |
| commit | f914991ff6708bb1010e5a0aa372950c5ec12f6e (patch) | |
| tree | 24a8e9a48fd149ad5f39154e2b05ff5dfa00273d /dynamic-layers | |
| parent | 2ea79ea4c19194b68a4e513bf9430f59b9e1f443 (diff) | |
| download | meta-freescale-f914991ff6708bb1010e5a0aa372950c5ec12f6e.tar.gz | |
opencv: sync 4.13.0.imx recipe with meta-imx and fix build
The recipe was imported with style adjustments from opencv_4.6.0.imx.bb
that diverged from the meta-imx 4.13.0 source, breaking the i.MX build:
- Restore the -DCPU_DISPATCH=SSE,... form (the -DENABLE_SSE=1 flags and
the EXTRA_OECMAKE:remove:x86 workaround were leftovers from 4.6.0).
- Pass KLEIDICV_SOURCE_PATH on aarch64 so configure uses the pre-fetched
Kleidicv source instead of attempting a network download.
- Keep the /usr/bin/cpp rename, which OpenCV 4.13 still installs.
Select 4.13.0.imx for the mx8 and mx9 NXP BSP overrides.
Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
Diffstat (limited to 'dynamic-layers')
| -rw-r--r-- | dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb index ff6982d2f..d509ac53e 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb | |||
| @@ -84,18 +84,16 @@ EXTRA_OECMAKE = "-DOPENCV_EXTRA_MODULES_PATH=${S}/contrib/modules \ | |||
| 84 | -DOPENCV_GENERATE_PKGCONFIG=ON \ | 84 | -DOPENCV_GENERATE_PKGCONFIG=ON \ |
| 85 | -DOPENCV_DOWNLOAD_PATH=${OPENCV_DLDIR} \ | 85 | -DOPENCV_DOWNLOAD_PATH=${OPENCV_DLDIR} \ |
| 86 | -DOPENCV_ALLOW_DOWNLOADS=OFF \ | 86 | -DOPENCV_ALLOW_DOWNLOADS=OFF \ |
| 87 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \ | 87 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DCPU_DISPATCH=SSE,SSE2,SSE3,SSSE3", "", d)} \ |
| 88 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \ | 88 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DCPU_DISPATCH=SSE,SSE2,SSE3,SSSE3,SSE41", "", d)} \ |
| 89 | ${@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)} \ | 89 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DCPU_DISPATCH=SSE,SSE2,SSE3,SSSE3,SSE41,SSE42", "", d)} \ |
| 90 | " | 90 | " |
| 91 | 91 | ||
| 92 | LDFLAGS:append:mips = " -Wl,--no-as-needed -latomic -Wl,--as-needed" | 92 | LDFLAGS:append:mips = " -Wl,--no-as-needed -latomic -Wl,--as-needed" |
| 93 | LDFLAGS:append:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" | 93 | LDFLAGS:append:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" |
| 94 | 94 | ||
| 95 | EXTRA_OECMAKE:append:x86 = " -DX86=ON" | 95 | EXTRA_OECMAKE:append:x86 = " -DX86=ON" |
| 96 | # disable sse4.1 and sse4.2 to fix 32bit build failure | 96 | EXTRA_OECMAKE:append:aarch64 = " -DKLEIDICV_SOURCE_PATH=${S}/3rdparty/kleidicv" |
| 97 | # https://github.com/opencv/opencv/issues/21597 | ||
| 98 | EXTRA_OECMAKE:remove:x86 = "-DENABLE_SSE41=1 -DENABLE_SSE42=1" | ||
| 99 | 97 | ||
| 100 | PACKAGECONFIG ??= "python3 eigen jpeg png tiff v4l libv4l samples tbb \ | 98 | PACKAGECONFIG ??= "python3 eigen jpeg png tiff v4l libv4l samples tbb \ |
| 101 | ${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk', '', d)}" | 99 | ${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk', '', d)}" |
