summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2022-05-19 17:29:01 +0900
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-20 22:52:15 +0100
commit3d8a388ba540598fec83d505d62ac36642bb90c7 (patch)
treea848a677375598eb711a8f37c09130db73cbd12a
parentc55c79507f63a4e758a486537aacfc13009161c7 (diff)
downloadopenembedded-core-contrib-3d8a388ba540598fec83d505d62ac36642bb90c7.tar.gz
cargo_common.bbclass: enable bitbake vendoring for externalsrc
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>
-rw-r--r--meta/classes/cargo_common.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cargo_common.bbclass b/meta/classes/cargo_common.bbclass
index 90fad75415..39f32829fd 100644
--- a/meta/classes/cargo_common.bbclass
+++ b/meta/classes/cargo_common.bbclass
@@ -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]