*-kmc-solid_*
级别: 3
SOLID 嵌入式开发平台,由京都微型计算机株式会社 (Kyoto Microcomputer Co., Ltd.) 提供。
目标名称遵循以下格式:$ARCH-kmc-solid_$KERNEL-$ABI
,其中 $ARCH
指定目标处理器架构,$KERNEL
指定基本内核,而 $ABI
指定目标 ABI(可选)。目前定义了以下目标
目标名称 | target_arch | target_vendor | target_os |
---|---|---|---|
aarch64-kmc-solid_asp3 | aarch64 | kmc | solid_asp3 |
armv7a-kmc-solid_asp3-eabi | arm | kmc | solid_asp3 |
armv7a-kmc-solid_asp3-eabihf | arm | kmc | solid_asp3 |
指定开发人员
要求
此目标是交叉编译的。 需要平台提供的 C 编译器工具链,但为了构建 Rust 和功能二进制文件,可以使用 GNU Arm 嵌入式工具链 来替代。
构建
可以通过为 rustc
构建启用它来构建该目标。
[build]
target = ["aarch64-kmc-solid_asp3"]
确保 aarch64-kmc-elf-gcc
包含在 $PATH
中。或者,您可以通过将以下内容添加到 config.toml
来使用 GNU Arm 嵌入式工具链
[target.aarch64-kmc-solid_asp3]
cc = "arm-none-eabi-gcc"
交叉编译
此目标可以从任何主机进行交叉编译。
测试
目前不支持为此目标运行 rustc 测试套件。
构建 Rust 程序
目前不支持构建可执行文件。
如果 rustc
支持该目标并且库构件可用,则可以为该目标构建 Rust 静态库
$ rustc --target aarch64-kmc-solid_asp3 your-code.rs --crate-type staticlib
$ ls libyour_code.a
在 Rust Nightly 版本中,可以在没有目标构件可用的情况下进行构建
cargo build -Z build-std --target aarch64-kmc-solid_asp3