gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/runsc/sandbox/bpf/BUILD (about)

     1  load("//tools:defs.bzl", "bpf_program", "go_library")
     2  
     3  package(
     4      default_applicable_licenses = ["//:license"],
     5      licenses = ["notice"],
     6  )
     7  
     8  go_library(
     9      name = "bpf",
    10      srcs = ["bpf.go"],
    11      embedsrcs = [
    12          "af_xdp_ebpf.o",  # keep
    13          "tunnel_veth_ebpf.o",  # keep
    14      ],
    15      visibility = ["//visibility:public"],
    16  )
    17  
    18  bpf_program(
    19      name = "af_xdp_ebpf",
    20      src = "af_xdp.ebpf.c",
    21      hdrs = [],
    22      bpf_object = "af_xdp_ebpf.o",
    23      visibility = ["//:sandbox"],
    24  )
    25  
    26  bpf_program(
    27      name = "tunnel_veth_ebpf",
    28      src = "tunnel_veth.ebpf.c",
    29      hdrs = [],
    30      bpf_object = "tunnel_veth_ebpf.o",
    31      visibility = ["//:sandbox"],
    32  )