Put driver libraries in /driver instead of /lib
Driver shared libraries should be placed in /driver instead
of /lib. The documentation for this is being added in fxrev.dev/787436.
BUG: 119090
Change-Id: Iedbbd5684181788100db627ccc3a1d8199ab27b3
Reviewed-on: https://fuchsia-review.googlesource.com/c/sdk-integration/+/786665
Commit-Queue: Chase Latta <chaselatta@google.com>
Reviewed-by: Suraj Malhotra <surajmalhotra@google.com>
diff --git a/bazel_rules_fuchsia/fuchsia/private/fuchsia_component.bzl b/bazel_rules_fuchsia/fuchsia/private/fuchsia_component.bzl
index 6eeeb55..bd9b6fa 100644
--- a/bazel_rules_fuchsia/fuchsia/private/fuchsia_component.bzl
+++ b/bazel_rules_fuchsia/fuchsia/private/fuchsia_component.bzl
@@ -47,6 +47,9 @@
name: The target name.
manifest: The component manifest file.
driver_lib: The shared library that will be registered with the driver manager.
+ This file will end up in /driver/<lib_name> and should match what is listed
+ in the manifest. See https://fuchsia.dev/fuchsia-src/concepts/components/v2/driver_runner
+ for more details.
bind_bytecode: The driver bind bytecode needed for binding the driver.
deps: A list of targets that this component depends on.
**kwargs: Extra attributes to forward to the build rule.
@@ -56,7 +59,7 @@
manifest = manifest,
deps = deps,
content = {
- driver_lib: "lib/",
+ driver_lib: "driver/",
bind_bytecode: "meta/bind/",
},
is_driver = True,