Skip to content

Commit

Permalink
Build sev_serial for bare metal with Bazel.
Browse files Browse the repository at this point in the history
BUG: 339182635
Change-Id: I18328e82baca8d8ac1d47ec499eb274cae5f3ae4
  • Loading branch information
ernoc committed May 29, 2024
1 parent 1de39b2 commit 7475052
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ kokoro_run_tests: all_ensure_no_std
clang-tidy:
bazel build $BAZEL_CONFIG_FLAG --config=clang-tidy //cc/...

bare_metal_crates := "//oak_linux_boot_params //oak_channel //oak_core //oak_virtio //third_party/rust-hypervisor-firmware-virtio //micro_rpc //oak_proto_rust //oak_sev_snp_attestation_report //oak_sev_guest"
# TODO: b/343228114 - Use a Bazel tag instead of listing packages here.
bare_metal_crates := "//oak_linux_boot_params //oak_channel //oak_core //oak_virtio //third_party/rust-hypervisor-firmware-virtio //micro_rpc //oak_proto_rust //oak_sev_snp_attestation_report //oak_sev_guest //sev_serial"

bazel-ci:
bazel build --config=unsafe-fast-presubmit -- @jemalloc //...:all
Expand Down
11 changes: 9 additions & 2 deletions sev_serial/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ rust_library(
srcs = glob(["src/**"]),
deps = [
"//oak_sev_guest",
"@oak_crates_index//:x86_64",
],
] + select({
# TODO: b/334871992 - This select is probably not required after b/334871992.
"@platforms//os:none": [
"@oak_no_std_crates_index//:x86_64",
],
"//conditions:default": [
"@oak_crates_index//:x86_64",
],
}),
)

0 comments on commit 7475052

Please sign in to comment.