summaryrefslogtreecommitdiffhomepage
path: root/pkg/cpuid/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/cpuid/BUILD')
-rw-r--r--pkg/cpuid/BUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkg/cpuid/BUILD b/pkg/cpuid/BUILD
new file mode 100644
index 000000000..d6cb1a549
--- /dev/null
+++ b/pkg/cpuid/BUILD
@@ -0,0 +1,35 @@
+load("//tools:defs.bzl", "go_library", "go_test")
+
+package(licenses = ["notice"])
+
+go_library(
+ name = "cpuid",
+ srcs = [
+ "cpu_amd64.s",
+ "cpuid.go",
+ "cpuid_arm64.go",
+ "cpuid_x86.go",
+ ],
+ visibility = ["//:sandbox"],
+ deps = ["//pkg/log"],
+)
+
+go_test(
+ name = "cpuid_test",
+ size = "small",
+ srcs = [
+ "cpuid_arm64_test.go",
+ "cpuid_x86_test.go",
+ ],
+ library = ":cpuid",
+)
+
+go_test(
+ name = "cpuid_parse_test",
+ size = "small",
+ srcs = [
+ "cpuid_parse_x86_test.go",
+ ],
+ library = ":cpuid",
+ tags = ["manual"],
+)