treewide: move build helper to more fitting places
Change-Id: I3d0cfe9283222d403ae369ec9db09201ad511e15
Reviewed-on: https://review.monogon.dev/c/monogon/+/3327
Reviewed-by: Serge Bazanski <serge@monogon.tech>
Tested-by: Jenkins CI
diff --git a/osbase/build/mkucode/BUILD.bazel b/osbase/build/mkucode/BUILD.bazel
new file mode 100644
index 0000000..9f56e10
--- /dev/null
+++ b/osbase/build/mkucode/BUILD.bazel
@@ -0,0 +1,19 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
+
+go_library(
+ name = "mkucode_lib",
+ srcs = ["main.go"],
+ importpath = "source.monogon.dev/osbase/build/mkucode",
+ visibility = ["//visibility:private"],
+ deps = [
+ "//osbase/build/mkucode/spec",
+ "@com_github_cavaliergopher_cpio//:cpio",
+ "@org_golang_google_protobuf//encoding/prototext",
+ ],
+)
+
+go_binary(
+ name = "mkucode",
+ embed = [":mkucode_lib"],
+ visibility = ["//visibility:public"],
+)