mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-23 15:54:21 -09:00
package/pkg-cargo: host-rustc is also a build dependency
Currently, host-rustc is a download dependency, because we need cargo
for the vendoring during the download step.
However, when using a package in override-srcdir, there is no download
step, so host-rustc is not pulled in as a dependency which breaks
running the build of a single package from scratch:
$ make clean
$ make my-rust-package
[...]
[...] cargo build --offline --release --manifest-path Cargo.toml --locked
/bin/sh: cargo: command not found
We fix that by adding host-rustc as a standard dependency too.
Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
6b59ed35a2
commit
e7327aeafc
@@ -65,8 +65,10 @@ HOST_PKG_CARGO_ENV = \
|
||||
|
||||
define inner-cargo-package
|
||||
|
||||
# We need host-rustc to run cargo
|
||||
# We need host-rustc to run cargo at download time (for vendoring),
|
||||
# and at build and install time.
|
||||
$(2)_DOWNLOAD_DEPENDENCIES += host-rustc
|
||||
$(2)_DEPENDENCIES += host-rustc
|
||||
|
||||
$(2)_DOWNLOAD_POST_PROCESS = cargo
|
||||
$(2)_DL_ENV += CARGO_HOME=$$(HOST_DIR)/share/cargo
|
||||
|
||||
Reference in New Issue
Block a user