diff --git a/meta-bsp/recipes-support/opencv/opencv_4.5.2%.bbappend b/meta-bsp/recipes-support/opencv/opencv_4.5.2%.bbappend new file mode 100755 index 0000000000..f804efc3b6 --- /dev/null +++ b/meta-bsp/recipes-support/opencv/opencv_4.5.2%.bbappend @@ -0,0 +1,21 @@ +SRC_URI_remove = "git://github.com/opencv/opencv.git;name=opencv" +SRC_URI_remove = "git://github.com/opencv/opencv_contrib.git;destsuffix=contrib;name=contrib" +SRC_URI_remove = "git://github.com/opencv/opencv_3rdparty.git;branch=ippicv/master_20191018;destsuffix=ipp;name=ipp" +SRC_URI_remove = "git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_boostdesc_20161012;destsuffix=boostdesc;name=boostdesc" +SRC_URI_remove = "git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_vgg_20160317;destsuffix=vgg;name=vgg" +SRC_URI_remove = "git://github.com/opencv/opencv_3rdparty.git;branch=contrib_face_alignment_20170818;destsuffix=face;name=face" +SRC_URI_remove = "git://github.com/WeChatCV/opencv_3rdparty.git;branch=wechat_qrcode;destsuffix=wechat_qrcode;name=wechat-qrcode" + +# i.MX 6&7 uses the OpenSource git repository and i.MX 8 uses the NXP fork +ADDONURL = "git://github.com/opencv/opencv.git;name=opencv;protocol=https;nobranch=1" +ADDONURL_mx8 = "" + +# Add protocol=https and nobranch=1 +SRC_URI +="${ADDONURL} \ + git://github.com/opencv/opencv_contrib.git;destsuffix=contrib;name=contrib;protocol=https;nobranch=1 \ + git://github.com/opencv/opencv_3rdparty.git;branch=ippicv/master_20191018;destsuffix=ipp;name=ipp;protocol=https \ + git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_boostdesc_20161012;destsuffix=boostdesc;name=boostdesc;protocol=https \ + git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_vgg_20160317;destsuffix=vgg;name=vgg;protocol=https \ + git://github.com/opencv/opencv_3rdparty.git;branch=contrib_face_alignment_20170818;destsuffix=face;name=face;protocol=https \ + git://github.com/WeChatCV/opencv_3rdparty.git;branch=wechat_qrcode;destsuffix=wechat_qrcode;name=wechat-qrcode;protocol=https \ +" diff --git a/meta-bsp/recipes-support/opencv/opencv_4.5.2.imx.bbappend b/meta-bsp/recipes-support/opencv/opencv_4.5.2.imx.bbappend index 4b9c598917..c26f7a40bd 100644 --- a/meta-bsp/recipes-support/opencv/opencv_4.5.2.imx.bbappend +++ b/meta-bsp/recipes-support/opencv/opencv_4.5.2.imx.bbappend @@ -1,4 +1,9 @@ OPENCV_SRC = "git://github.com/nxp-imx/opencv-imx.git;protocol=https" SRCREV_opencv = "5423d53ae0d116ee5bbe52f8b5503f0cd8586998" + +# i.MX 8 build includes opencv_extra, add protocol=https;nobranch=1 to fetch +SRC_URI_remove = "git://github.com/opencv/opencv_extra.git;destsuffix=extra;name=extra" +SRC_URI += "git://github.com/opencv/opencv_extra.git;destsuffix=extra;name=extra;protocol=https;nobranch=1" + PACKAGECONFIG_OPENCL_mx8mnul = "" PACKAGECONFIG_OPENCL_mx8mpul = ""