]> code.ossystems Code Review - meta-freescale.git/commit
opencv: Fix SRC_URI
authorTom Hochstein <tom.hochstein@nxp.com>
Tue, 4 May 2021 15:49:07 +0000 (10:49 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 4 May 2021 17:06:25 +0000 (14:06 -0300)
commit7462ae5636ebd8551350253d2bb1c3047431ba0d
tree393e16c600247926640bbae3c58b0ab7990ebe58
parenta5fc68872680f82e1e4b12d0ffd4be7b9046d372
opencv: Fix SRC_URI

The SRC_URI is updated for the base recipe, but the copy of the SRC_URI
in the override section doesn't account for this, leading to a build break:

```
| -- wechat_qrcode: Download: detect.caffemodel
| CMake Error at /opt/work/upstream/fsl-xwayland/tmp/work/cortexa53-crypto-mx8mp-fsl-linux/opencv/4.5.2.imx-r0/git/cmake/OpenCVDownload.cmake:161 (message):
|   Not going to download detect.caffemodel
```

Additionally, the SRC_URI is long and complex, and copying it in our
override section does make problems like this more likely.

Fix the problem and simplify maintenance by replacing the SRC_URI copy
with a targetted override. The override section now shows only the
changes to SRC_URI.

The fix includes these related changes:
- a new patch file is added in the base recipe and is now copied locally
- the override for SRCREV_contrib is redundant and is dropped

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-support/opencv/opencv/0001-sfm-link-with-Glog_LIBS.patch [new file with mode: 0644]
recipes-support/opencv/opencv_4.5.2.imx.bb