summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/arch/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/arch/BUILD')
-rw-r--r--pkg/sentry/arch/BUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkg/sentry/arch/BUILD b/pkg/sentry/arch/BUILD
new file mode 100644
index 000000000..901e0f320
--- /dev/null
+++ b/pkg/sentry/arch/BUILD
@@ -0,0 +1,48 @@
+load("//tools:defs.bzl", "go_library", "proto_library")
+
+package(licenses = ["notice"])
+
+go_library(
+ name = "arch",
+ srcs = [
+ "aligned.go",
+ "arch.go",
+ "arch_aarch64.go",
+ "arch_amd64.go",
+ "arch_amd64.s",
+ "arch_arm64.go",
+ "arch_state_x86.go",
+ "arch_x86.go",
+ "arch_x86_impl.go",
+ "auxv.go",
+ "signal.go",
+ "signal_act.go",
+ "signal_amd64.go",
+ "signal_arm64.go",
+ "signal_info.go",
+ "signal_stack.go",
+ "stack.go",
+ "syscalls_amd64.go",
+ "syscalls_arm64.go",
+ ],
+ marshal = True,
+ visibility = ["//:sandbox"],
+ deps = [
+ ":registers_go_proto",
+ "//pkg/abi/linux",
+ "//pkg/context",
+ "//pkg/cpuid",
+ "//pkg/log",
+ "//pkg/sentry/limits",
+ "//pkg/sync",
+ "//pkg/syserror",
+ "//pkg/usermem",
+ "//tools/go_marshal/marshal",
+ ],
+)
+
+proto_library(
+ name = "registers",
+ srcs = ["registers.proto"],
+ visibility = ["//visibility:public"],
+)