summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/pipe/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/kernel/pipe/BUILD')
-rw-r--r--pkg/sentry/kernel/pipe/BUILD15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/pipe/BUILD b/pkg/sentry/kernel/pipe/BUILD
index 011a3f349..6b23117d9 100644
--- a/pkg/sentry/kernel/pipe/BUILD
+++ b/pkg/sentry/kernel/pipe/BUILD
@@ -1,10 +1,24 @@
package(licenses = ["notice"])
+load("//tools/go_generics:defs.bzl", "go_template_instance")
load("//tools/go_stateify:defs.bzl", "go_library", "go_test")
+go_template_instance(
+ name = "buffer_list",
+ out = "buffer_list.go",
+ package = "pipe",
+ prefix = "buffer",
+ template = "//pkg/ilist:generic_list",
+ types = {
+ "Element": "*Buffer",
+ "Linker": "*Buffer",
+ },
+)
+
go_library(
name = "pipe",
srcs = [
+ "buffer_list.go",
"buffers.go",
"device.go",
"node.go",
@@ -18,7 +32,6 @@ go_library(
deps = [
"//pkg/abi/linux",
"//pkg/amutex",
- "//pkg/ilist",
"//pkg/sentry/arch",
"//pkg/sentry/context",
"//pkg/sentry/device",