-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathCross.toml
More file actions
47 lines (41 loc) · 2.09 KB
/
Cross.toml
File metadata and controls
47 lines (41 loc) · 2.09 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
37
38
39
40
41
42
43
44
45
46
47
# Cross-rs configuration for OpenWrt and embedded Linux targets
# https://github.com/cross-rs/cross
[build]
# Use Docker for cross-compilation
default-target = "x86_64-unknown-linux-musl"
# =============================================================================
# x86_64 (PC Engines APU, virtual machines, x86 routers)
# =============================================================================
[target.x86_64-unknown-linux-musl]
# The cross-rs image already includes musl toolchain - no pre-build needed
image = "ghcr.io/cross-rs/x86_64-unknown-linux-musl:main"
# =============================================================================
# aarch64 / ARM64 (Modern routers: MediaTek Filogic, Qualcomm IPQ807x)
# =============================================================================
[target.aarch64-unknown-linux-musl]
# The cross-rs image already includes musl toolchain - no pre-build needed
image = "ghcr.io/cross-rs/aarch64-unknown-linux-musl:main"
# =============================================================================
# armv7 (ARM Cortex-A7/A9 - Sunxi, Marvell, some Qualcomm IPQ40xx)
# Common devices: Linksys WRT series, some NAS devices
# =============================================================================
[target.armv7-unknown-linux-musleabihf]
# The cross-rs image already includes musl toolchain - no pre-build needed
image = "ghcr.io/cross-rs/armv7-unknown-linux-musleabihf:main"
# =============================================================================
# RISC-V 64 (Emerging architecture - some development boards)
# =============================================================================
[target.riscv64gc-unknown-linux-musl]
image = "ghcr.io/cross-rs/riscv64gc-unknown-linux-musl:main"
# =============================================================================
# Build environment configuration
# =============================================================================
[build.env]
passthrough = [
"RUST_BACKTRACE",
"RUST_LOG",
"CARGO_TERM_COLOR",
# OpenWrt SDK paths (when using custom builder)
"STAGING_DIR",
"TOOLCHAIN_DIR",
]