summaryrefslogtreecommitdiffhomepage
path: root/pkg/cpuid/BUILD
diff options
context:
space:
mode:
authorHaibo Xu <haibo.xu@arm.com>2019-10-25 03:09:59 +0000
committerHaibo Xu <haibo.xu@arm.com>2020-02-10 02:46:05 +0000
commit9cbf5a3dcc71d85cd857f117d4b7189a101be9c1 (patch)
tree19227da9f4b907bca43d4a7014407d144a9ff081 /pkg/cpuid/BUILD
parent17b9f5e66238bde1e4ed3bd9e5fb67342c8b58ec (diff)
Enable pkg/cpuid support on arm64.
Fixes #1255 Signed-off-by: Haibo Xu <haibo.xu@arm.com> Change-Id: I8614e6f3ee321c2989567e4e712aa8f28cc9db14
Diffstat (limited to 'pkg/cpuid/BUILD')
-rw-r--r--pkg/cpuid/BUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkg/cpuid/BUILD b/pkg/cpuid/BUILD
index 43a432190..d6cb1a549 100644
--- a/pkg/cpuid/BUILD
+++ b/pkg/cpuid/BUILD
@@ -7,6 +7,8 @@ go_library(
srcs = [
"cpu_amd64.s",
"cpuid.go",
+ "cpuid_arm64.go",
+ "cpuid_x86.go",
],
visibility = ["//:sandbox"],
deps = ["//pkg/log"],
@@ -15,7 +17,10 @@ go_library(
go_test(
name = "cpuid_test",
size = "small",
- srcs = ["cpuid_test.go"],
+ srcs = [
+ "cpuid_arm64_test.go",
+ "cpuid_x86_test.go",
+ ],
library = ":cpuid",
)
@@ -23,7 +28,7 @@ go_test(
name = "cpuid_parse_test",
size = "small",
srcs = [
- "cpuid_parse_test.go",
+ "cpuid_parse_x86_test.go",
],
library = ":cpuid",
tags = ["manual"],