2023-09-21 08:50:18 -04:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "cmd_lib",
|
|
|
|
srcs = ["main.go"],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/image/measured-boot/cmd",
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
|
|
|
"//image/measured-boot/extract",
|
|
|
|
"//image/measured-boot/measure",
|
|
|
|
"//image/measured-boot/pesection",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "cmd",
|
|
|
|
# keep
|
2023-10-04 04:51:17 -04:00
|
|
|
data = [
|
|
|
|
"@systemd//:bin/systemd-dissect",
|
|
|
|
],
|
2023-09-21 08:50:18 -04:00
|
|
|
embed = [":cmd_lib"],
|
|
|
|
# keep
|
2023-11-06 11:50:21 -05:00
|
|
|
env = {
|
|
|
|
"DISSECT_TOOLCHAIN": "$(rootpath @systemd//:bin/systemd-dissect)",
|
|
|
|
},
|
2023-09-21 08:50:18 -04:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|