More p4runtime-related bazel build files
Change-Id: Icdd02a06d7905e4cd0a6c61d282fd522c7b75fe7
diff --git a/drivers/p4runtime/BUILD b/drivers/p4runtime/BUILD
new file mode 100644
index 0000000..1107577
--- /dev/null
+++ b/drivers/p4runtime/BUILD
@@ -0,0 +1,30 @@
+COMPILE_DEPS = CORE_DEPS + KRYO + [
+ "//core/store/serializers:onos-core-serializers",
+ "//protocols/p4runtime/api:onos-protocols-p4runtime-api",
+ "@io_grpc_grpc_java//core",
+]
+
+BUNDLES = [
+ ":onos-drivers-p4runtime",
+]
+
+osgi_jar (
+ deps = COMPILE_DEPS,
+ resources = glob(["src/main/resources/**"]),
+ resources_root = "src/main/resources",
+)
+
+onos_app (
+ app_name = "org.onosproject.drivers.p4runtime",
+ title = "P4Runtime Drivers",
+ category = "Drivers",
+ url = "http://onosproject.org",
+ description = "Adds support for devices using P4 Runtime protocol.",
+ included_bundles = BUNDLES,
+ required_apps = [
+ "org.onosproject.generaldeviceprovider",
+ "org.onosproject.protocols.p4runtime",
+ "org.onosproject.p4runtime",
+ "org.onosproject.drivers",
+ ],
+)