blob: e838f9e686e3fd5631ac4da7a561f14c12c8ea5c [file] [log] [blame]
Lorenz Brun547b33f2020-04-23 15:27:06 +02001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
2
3go_library(
Lorenz Brund13c1c62022-03-30 19:58:58 +02004 name = "kconfig-patcher_lib",
Lorenz Brun547b33f2020-04-23 15:27:06 +02005 srcs = ["main.go"],
Serge Bazanski31370b02021-01-07 16:31:14 +01006 importpath = "source.monogon.dev/metropolis/node/build/kconfig-patcher",
Lorenz Brun547b33f2020-04-23 15:27:06 +02007 visibility = ["//visibility:private"],
8)
9
10go_binary(
11 name = "kconfig-patcher",
Lorenz Brund13c1c62022-03-30 19:58:58 +020012 embed = [":kconfig-patcher_lib"],
Serge Bazanski0be9be82021-01-07 15:23:44 +010013 visibility = [
14 "//metropolis/node:__pkg__",
15 "//metropolis/test/ktest:__pkg__",
16 ],
Lorenz Brun547b33f2020-04-23 15:27:06 +020017)
18
19go_test(
Lorenz Brund13c1c62022-03-30 19:58:58 +020020 name = "kconfig-patcher_test",
Lorenz Brun547b33f2020-04-23 15:27:06 +020021 srcs = ["main_test.go"],
Lorenz Brund13c1c62022-03-30 19:58:58 +020022 embed = [":kconfig-patcher_lib"],
Lorenz Brun547b33f2020-04-23 15:27:06 +020023)