-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathCross.toml
More file actions
36 lines (32 loc) · 1.34 KB
/
Copy pathCross.toml
File metadata and controls
36 lines (32 loc) · 1.34 KB
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
30
31
32
33
34
35
36
# ============================================================================
# Cross-compilation configuration for ARM32 (arm-unknown-linux-gnueabihf)
#
# Toolchain: gcc-linaro-11.3.1-2022.06-x86_64_arm-linux-gnueabihf
# Extract to: /opt/gcc-linaro-11.3.1-2022.06-x86_64_arm-linux-gnueabihf/
#
# Usage with cross:
# cross build --target arm-unknown-linux-gnueabihf --release
#
# Or use the build script:
# TOOLCHAIN_ROOT=/opt/gcc-linaro-11.3.1-2022.06-x86_64_arm-linux-gnueabihf ./scripts/build-arm32.sh release
[target.arm-unknown-linux-musleabihf]
pre-build = [
# Install musl cross compilation toolchain
# On Ubuntu/Debian: apt-get install musl-tools arm-linux-gnueabihf-musl
# Or use Docker with: ghcr.io/messense/musl-cross-make:latest
]
[target.arm-unknown-linux-gnueabihf]
pre-build = [
# For Docker-based cross: install ARM development libraries
# "apt-get update && apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libssl-dev pkg-config",
]
[target.x86_64-unknown-linux-gnu]
pre-build = [
"apt-get update",
"apt-get install -y libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev libwayland-dev libssl-dev pkg-config",
]
[target.aarch64-unknown-linux-gnu]
pre-build = [
"apt-get update",
"apt-get install -y libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev libwayland-dev libssl-dev pkg-config",
]