]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cargo_common.bbclass: enable bitbake vendoring for externalsrc
authorChanho Park <chanho61.park@samsung.com>
Thu, 19 May 2022 08:29:01 +0000 (17:29 +0900)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 May 2022 21:52:15 +0000 (22:52 +0100)
To support crate:// fetcher on externalsrc, we need to remove "-z
${EXTERNALSRC} check of bitbake vendoring. It is possible to disable
vendoring by CARGO_DISABLE_BITBAKE_VENDORING = "1" if externalsrc-ed
project does not want to enablt it.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cargo_common.bbclass

index 90fad7541530fc963480eeb755ff255a4ac90e83..39f32829fd44b9653581f90aaa923c06ed97614e 100644 (file)
@@ -45,7 +45,7 @@ cargo_common_do_configure () {
        directory = "${CARGO_VENDORING_DIRECTORY}"
        EOF
 
-       if [ -z "${EXTERNALSRC}" ] && [ ${CARGO_DISABLE_BITBAKE_VENDORING} = "0" ]; then
+       if [ ${CARGO_DISABLE_BITBAKE_VENDORING} = "0" ]; then
                cat <<- EOF >> ${CARGO_HOME}/config
 
                [source.crates-io]