diff options
| author | Chanho Park <chanho61.park@samsung.com> | 2022-05-19 17:29:01 +0900 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-20 22:52:23 +0100 |
| commit | 19081924df2573ded966a56639e6eb2bf27d8f61 (patch) | |
| tree | 7f1ff7b34a5b811aa0478ab5250bbc4fc1e92695 /meta/classes/cargo_common.bbclass | |
| parent | c31ee3cb121ada557f09f53ab3e92a91160b6e08 (diff) | |
| download | poky-19081924df2573ded966a56639e6eb2bf27d8f61.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.
(From OE-Core rev: 3d8a388ba540598fec83d505d62ac36642bb90c7)
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>
Diffstat (limited to 'meta/classes/cargo_common.bbclass')
| -rw-r--r-- | meta/classes/cargo_common.bbclass | 2 |
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 () { | |||
| 45 | directory = "${CARGO_VENDORING_DIRECTORY}" | 45 | directory = "${CARGO_VENDORING_DIRECTORY}" |
| 46 | EOF | 46 | EOF |
| 47 | 47 | ||
| 48 | if [ -z "${EXTERNALSRC}" ] && [ ${CARGO_DISABLE_BITBAKE_VENDORING} = "0" ]; then | 48 | if [ ${CARGO_DISABLE_BITBAKE_VENDORING} = "0" ]; then |
| 49 | cat <<- EOF >> ${CARGO_HOME}/config | 49 | cat <<- EOF >> ${CARGO_HOME}/config |
| 50 | 50 | ||
| 51 | [source.crates-io] | 51 | [source.crates-io] |
