summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/ring0/gen_offsets/BUILD
blob: d7029d5a98d17b7ecc9d06460fce70431f12f414 (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
load("@io_bazel_rules_go//go:def.bzl", "go_binary")

package(licenses = ["notice"])

load("//tools/go_generics:defs.bzl", "go_template_instance")

go_template_instance(
    name = "defs_impl",
    out = "defs_impl.go",
    package = "main",
    template = "//pkg/sentry/platform/ring0:defs",
)

go_binary(
    name = "gen_offsets",
    srcs = [
        "defs_impl.go",
        "main.go",
    ],
    visibility = ["//pkg/sentry/platform/ring0:__pkg__"],
    deps = [
        "//pkg/cpuid",
        "//pkg/sentry/platform/ring0/pagetables",
        "//pkg/sentry/usermem",
    ],
)