Skip to content

Commit

Permalink
Merge #500
Browse files Browse the repository at this point in the history
500: use runner setting specified in Cross.toml r=reitermarkus a=japaric

fixes #499 

Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
  • Loading branch information
bors[bot] and japaric authored Dec 14, 2020
2 parents beb434b + 8b2d8cf commit 9bf60e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docker/linux-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ main() {
echo "APT::Get::AllowUnauthenticated true;" | tee -a /etc/apt/apt.conf.d/10-nocheckvalid

dropbear="dropbear"
deps=(libcrypt1:"${arch}")
;;
powerpc64)
# there is no stable port
Expand All @@ -61,7 +62,7 @@ main() {
debsource="deb http://ftp.ports.debian.org/debian-ports unstable main"
debsource="${debsource}\ndeb http://ftp.ports.debian.org/debian-ports unreleased main"
# sid version of dropbear requires these dependencies
deps=(libtommath1:ppc64 libtomcrypt1:ppc64 libgmp10:ppc64 libcrypt1:ppc64)
deps=(libcrypt1:"${arch}")
;;
powerpc64le)
arch=ppc64el
Expand All @@ -79,7 +80,7 @@ main() {
debsource="deb http://ftp.ports.debian.org/debian-ports unstable main"
debsource="${debsource}\ndeb http://ftp.ports.debian.org/debian-ports unreleased main"
# sid version of dropbear requires these dependencies
deps=(libtommath1:sparc64 libtomcrypt1:sparc64 libgmp10:sparc64 libcrypt1:sparc64)
deps=(libcrypt1:"${arch}")
;;
x86_64)
arch=amd64
Expand Down Expand Up @@ -137,6 +138,9 @@ main() {
${deps[@]+"${deps[@]}"} \
"busybox:${arch}" \
"${dropbear}:${arch}" \
"libtommath1:${arch}" \
"libtomcrypt1:${arch}" \
"libgmp10:${arch}" \
"libc6:${arch}" \
"${libgcc}:${arch}" \
"libstdc++6:${arch}" \
Expand Down
4 changes: 3 additions & 1 deletion src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub fn run(target: &Target,

cmd.args(args);

let runner = None;
let mut runner = None;

let mut docker = docker_command("run")?;

Expand Down Expand Up @@ -140,6 +140,8 @@ pub fn run(target: &Target,
docker.args(&["-e", &format!("{}={}", var, mount_path.display())]);
}
}

runner = toml.runner(target)?;
}

docker.args(&["-e", "PKG_CONFIG_ALLOW_CROSS=1"]);
Expand Down

0 comments on commit 9bf60e7

Please sign in to comment.