| Lorenz Brun | 54a5a05 | 2023-10-02 16:40:11 +0200 | [diff] [blame] | 1 | load("@rules_rust//rust:defs.bzl", "rust_binary") |
| Jan Schär | 778cc33 | 2025-04-29 16:31:40 +0000 | [diff] [blame] | 2 | load("//osbase/build:def.bzl", "ignore_unused_configuration_target") |
| Lorenz Brun | 54a5a05 | 2023-10-02 16:40:11 +0200 | [diff] [blame] | 3 | |
| 4 | rust_binary( |
| Jan Schär | 778cc33 | 2025-04-29 16:31:40 +0000 | [diff] [blame] | 5 | name = "abloader_bin", |
| Lorenz Brun | 54a5a05 | 2023-10-02 16:40:11 +0200 | [diff] [blame] | 6 | srcs = ["main.rs"], |
| 7 | edition = "2021", |
| Tim Windelschmidt | 1f51cf4 | 2024-10-01 17:04:28 +0200 | [diff] [blame] | 8 | platform = "//build/platforms:efi_amd64", |
| Jan Schär | e269ebf | 2025-04-23 09:52:49 +0000 | [diff] [blame^] | 9 | # rust_binary depends on the status files by default, even if no stamp |
| 10 | # variables are used, which causes unnecessary rebuilds when the stable |
| 11 | # status file changes. |
| 12 | stamp = 0, |
| Lorenz Brun | 54a5a05 | 2023-10-02 16:40:11 +0200 | [diff] [blame] | 13 | target_compatible_with = [ |
| 14 | "@platforms//os:uefi", |
| 15 | ], |
| Jan Schär | 778cc33 | 2025-04-29 16:31:40 +0000 | [diff] [blame] | 16 | visibility = ["//visibility:private"], |
| Lorenz Brun | 54a5a05 | 2023-10-02 16:40:11 +0200 | [diff] [blame] | 17 | deps = [ |
| 18 | "//metropolis/node/core/abloader/spec:abloader_proto_rs", |
| Tim Windelschmidt | 223609c | 2024-01-12 22:59:20 +0100 | [diff] [blame] | 19 | "@crate_index_efi//:prost", |
| 20 | "@crate_index_efi//:uefi", |
| 21 | "@crate_index_efi//:uefi-services", |
| Lorenz Brun | 54a5a05 | 2023-10-02 16:40:11 +0200 | [diff] [blame] | 22 | ], |
| 23 | ) |
| Jan Schär | 778cc33 | 2025-04-29 16:31:40 +0000 | [diff] [blame] | 24 | |
| 25 | ignore_unused_configuration_target( |
| 26 | name = "abloader", |
| 27 | dep = ":abloader_bin", |
| 28 | visibility = ["//visibility:public"], |
| 29 | ) |