blob: 6a2438beaad29464e1cf35edf062f85face203ef [file] [log] [blame]
Lorenz Brunfba5da02022-12-15 11:20:47 +00001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "nvme",
5 srcs = [
6 "cmd_linux.go",
7 "cmd_unsupported.go",
8 "error.go",
9 "format.go",
10 "health.go",
11 "identify.go",
12 "nvme.go",
13 "selftest.go",
14 "uint128le.go",
15 ],
16 importpath = "source.monogon.dev/metropolis/pkg/nvme",
17 visibility = ["//visibility:public"],
18 deps = select({
19 "@io_bazel_rules_go//go/platform:android": [
20 "@org_golang_x_sys//unix",
21 ],
22 "@io_bazel_rules_go//go/platform:linux": [
23 "@org_golang_x_sys//unix",
24 ],
25 "//conditions:default": [],
26 }),
27)
28
29go_test(
30 name = "nvme_test",
31 srcs = ["struct_test.go"],
32 embed = [":nvme"],
33)