mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-23 00:16:17 +04:00
7b8252eb1b
Under aarch64 and x86_64, hello_rust can be built and loaded by `/busybox insmod hello_rust.ko`.
7 lines
239 B
Rust
7 lines
239 B
Rust
fn main() {
|
|
let path = "../../kernel/target/x86_64/release/deps";
|
|
println!("cargo:rustc-link-search=all={}", path);
|
|
let path = "../../kernel/target/aarch64/release/deps";
|
|
println!("cargo:rustc-link-search=all={}", path);
|
|
}
|