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/kconfig-patcher/BUILD.bazel b/osbase/build/kconfig-patcher/BUILD.bazel
new file mode 100644
index 0000000..59ee391
--- /dev/null
+++ b/osbase/build/kconfig-patcher/BUILD.bazel
@@ -0,0 +1,23 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
+
+go_library(
+ name = "kconfig-patcher_lib",
+ srcs = ["main.go"],
+ importpath = "source.monogon.dev/osbase/build/kconfig-patcher",
+ visibility = ["//visibility:private"],
+)
+
+go_binary(
+ name = "kconfig-patcher",
+ embed = [":kconfig-patcher_lib"],
+ visibility = [
+ "//metropolis/node:__pkg__",
+ "//osbase/test/ktest:__pkg__",
+ ],
+)
+
+go_test(
+ name = "kconfig-patcher_test",
+ srcs = ["main_test.go"],
+ embed = [":kconfig-patcher_lib"],
+)