-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCross.toml
More file actions
24 lines (22 loc) · 953 Bytes
/
Cross.toml
File metadata and controls
24 lines (22 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# For Pi 1B, ARM v6 + Hard Float
[target.arm-unknown-linux-gnueabihf]
pre-build = [
# So a lot of Debian packages on this target incorrectly build for
# ARM v7, which can cause some illegal operations.
# But when testing it, it *seems* fine, but egh. I'd like something more graceful.
"rm /etc/apt/preferences.d/all-packages",
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install --no-install-recommends libudev-dev:$CROSS_DEB_ARCH",
]
# For Raspi 2-4
[target.armv7-unknown-linux-gnueabihf]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install --no-install-recommends libudev-dev:$CROSS_DEB_ARCH",
]
# For Raspi 2-4 (64-bit)
[target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install --no-install-recommends libudev-dev:$CROSS_DEB_ARCH",
]