Message ID | 20220606132653.60232-3-brgl@bgdev.pl |
---|---|
State | New |
Headers | show |
Series | cargo: improve the build process and add a new recipe | expand |
diff --git a/meta/classes/cargo.bbclass b/meta/classes/cargo.bbclass index 4a780a501f..7cfd4a2666 100644 --- a/meta/classes/cargo.bbclass +++ b/meta/classes/cargo.bbclass @@ -32,7 +32,7 @@ MANIFEST_PATH ??= "${S}/${CARGO_SRC_DIR}/Cargo.toml" RUSTFLAGS ??= "" BUILD_MODE = "${@['--release', ''][d.getVar('DEBUG_BUILD') == '1']}" -CARGO_BUILD_FLAGS = "-v --target ${HOST_SYS} ${BUILD_MODE} --manifest-path=${MANIFEST_PATH}" +CARGO_BUILD_FLAGS = "-v --target ${HOST_SYS} ${BUILD_MODE} --manifest-path=${MANIFEST_PATH} --offline" # This is based on the content of CARGO_BUILD_FLAGS and generally will need to # change if CARGO_BUILD_FLAGS changes.
We fetch sources ourselves in do_fetch, don't let cargo fetch anything else on its own during the build stage. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> --- meta/classes/cargo.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)