microsoft/mu_feature_ffa
Publicmirrored from https://github.com/microsoft/mu_feature_ffaAvailable
FfaFeaturePkg/SecurePartitions/MsSecurePartitionRust/build.rs
13lines · modeblame
aa115865kuqin1210 months ago | 1 | // Copyright 2025 Microsoft Corporation |
| 2 | // This project is dual-licensed under Apache 2.0 and MIT terms. | |
| 3 | // See LICENSE-APACHE and LICENSE-MIT for details. | |
| 4 | | |
| 5 | fn main() { | |
| 6 | if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "none" { | |
| 7 | println!("cargo:rustc-env=BUILD_TIME={}", chrono::Utc::now().to_rfc3339()); | |
| 8 | println!("cargo:rustc-link-arg=-TFfaFeaturePkg/SecurePartitions/MsSecurePartitionRust/linker/image.ld"); | |
| 9 | println!("cargo:rustc-link-arg=-TFfaFeaturePkg/SecurePartitions/MsSecurePartitionRust/linker/qemu.ld"); | |
| 10 | println!("cargo:rerun-if-changed=FfaFeaturePkg/SecurePartitions/MsSecurePartitionRust/linker/qemu.ld"); | |
| 11 | println!("cargo:rerun-if-changed=FfaFeaturePkg/SecurePartitions/MsSecurePartitionRust/linker/image.ld"); | |
| 12 | } | |
| 13 | } |