Build drivers with bazel

Change-Id: I033ac32b3ef8119fc65e046c821ff17f12709261
diff --git a/drivers/optical/BUILD b/drivers/optical/BUILD
new file mode 100644
index 0000000..9d47a2d
--- /dev/null
+++ b/drivers/optical/BUILD
@@ -0,0 +1,30 @@
+COMPILE_DEPS = CORE_DEPS + NETTY + JACKSON + [
+    "@openflowj//jar",
+    "//protocols/openflow/api:onos-protocols-openflow-api",
+    "//drivers/default:onos-drivers-default",
+    "//apps/optical-model:onos-apps-optical-model",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+    "//core/api:onos-api-tests",
+    "//utils/osgi:onlab-osgi-tests",
+]
+
+osgi_jar_with_tests(
+    resources = glob(["src/main/resources/**"]),
+    resources_root = "src/main/resources",
+    test_deps = TEST_DEPS,
+    deps = COMPILE_DEPS,
+)
+
+onos_app(
+    app_name = "org.onosproject.drivers.optical",
+    category = "Drivers",
+    description = "Suite of basic optical device drivers.",
+    required_apps = [
+        "org.onosproject.drivers",
+        "org.onosproject.optical-model",
+    ],
+    title = "Basic Optical Drivers",
+    url = "http://onosproject.org",
+)