summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/arch/BUILD
blob: 85278b389ec885379b2d7f07a9c804ae0ca132d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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",
        "stack_unsafe.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/marshal",
        "//pkg/marshal/primitive",
        "//pkg/sentry/limits",
        "//pkg/sync",
        "//pkg/syserror",
        "//pkg/usermem",
        "@org_golang_x_sys//unix:go_default_library",
    ],
)

proto_library(
    name = "registers",
    srcs = ["registers.proto"],
    visibility = ["//visibility:public"],
)