More p4runtime-related bazel build files
Change-Id: Icdd02a06d7905e4cd0a6c61d282fd522c7b75fe7
diff --git a/drivers/mellanox/BUILD b/drivers/mellanox/BUILD
new file mode 100644
index 0000000..4faeb31
--- /dev/null
+++ b/drivers/mellanox/BUILD
@@ -0,0 +1,26 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "//drivers/p4runtime:onos-drivers-p4runtime",
+]
+
+BUNDLES = [
+ ":onos-drivers-mellanox",
+]
+
+osgi_jar(
+ deps = COMPILE_DEPS,
+ resources_root = "src/main/resources",
+ resources = glob(["src/main/resources/**"]),
+)
+
+onos_app (
+ app_name = "org.onosproject.drivers.mellanox",
+ title = "Mellanox Drivers",
+ category = "Drivers",
+ url = "http://onosproject.org",
+ description = "Adds support for Mellanox Spectrum-based devices using P4Runtime",
+ included_bundles = BUNDLES,
+ required_apps = [
+ "org.onosproject.drivers.p4runtime",
+ "org.onosproject.pipelines.fabric",
+ ],
+)