-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCross.toml
29 lines (27 loc) · 1.03 KB
/
Cross.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[build]
pre-build = [
"set -eu",
"export DEBIAN_FRONTEND=noninteractive",
"dpkg --add-architecture $CROSS_DEB_ARCH > /etc/dpkg/dpkg.cfg.d/multiarch",
"echo 'deb http://archive.debian.org/debian/ stretch main' >> /etc/apt/sources.list",
"echo 'deb http://archive.debian.org/debian-security/ stretch/updates main' >> /etc/apt/sources.list",
"apt-get update",
"apt-get install --assume-yes --no-install-recommends dpkg-cross",
"apt-get download --assume-yes libssl1.1:$CROSS_DEB_ARCH libssl-dev:$CROSS_DEB_ARCH",
"dpkg-cross --install --exclude debconf --arch $CROSS_DEB_ARCH --convert-multiarch *.deb",
"rm -f *.deb",
]
[target.mipsel-unknown-linux-gnu]
image = "ghcr.io/cross-rs/mipsel-unknown-linux-gnu"
build-std = true
env.passthrough = [
"RUSTFLAGS=-C strip=symbols",
"OPENSSL_DIR=/usr/mipsel-linux-gnu",
]
[target.mips-unknown-linux-gnu]
image = "ghcr.io/cross-rs/mips-unknown-linux-gnu"
build-std = true
env.passthrough = [
"RUSTFLAGS=-C strip=symbols",
"OPENSSL_DIR=/usr/mips-linux-gnu",
]