Fixing few issues in feature generation and local run capability for Bazel build.

Change-Id: Ifd72aff1c56cceadd0bde93c94bdaf4a9a7dfbd2
diff --git a/BUILD b/BUILD
index 303f1f8..934ecd3 100644
--- a/BUILD
+++ b/BUILD
@@ -81,12 +81,12 @@
 
 # Runs ONOS as a single instance from the /tmp directory
 # FIXME: Still work in progress
-#genrule(
-#    name = "onos-run",
-#    outs = ["onos-runner"],
-#    srcs = ["onos-run-karaf", "onos-package"],
-#    cmd = "sed \"s#ONOS_TAR=#ONOS_TAR=$(location :onos-package)#\" $(location onos-run-karaf) > $(location onos-runner); chmod +x $(location onos-runner)",
-#    executable = True,
-#    output_to_bindir = True,
-#    visibility = ["//visibility:public"],
-#)
+genrule(
+    name = "onos-run",
+    outs = ["onos-runner"],
+    srcs = [":onos-package", "tools/package/onos-run-karaf"],
+    cmd = "sed \"s#ONOS_TAR=#ONOS_TAR=$(location :onos-package)#\" $(location tools/package/onos-run-karaf) > $(location onos-runner); chmod +x $(location onos-runner)",
+    executable = True,
+    output_to_bindir = True,
+    visibility = ["//visibility:public"],
+)