If you are using an existing configuration that other drivers are already using, no extra steps are needed.
For example for fuchsia.power.SuspendEnabled, this configuration is
provided through the power subsystem assembly.
Adding a new configuration
To add a new configuration, identify which platform subsystem it should belong to by looking in the subsystems directory. If the subsystem already exists, then add it in that subsystem. Otherwise discuss your use case with the Fuchsia Assembly team to find the best location.
builder.set_config_capability(
"fuchsia.gizmo.Configuration",
Config::new(ConfigValueType::Bool, true),
)?;
Routing a new configuration
Route this configuration into the driver collections.
Route the configuration to bootstrap in the Root component. The route should be:
from: "#config", to: "#bootstrap",Route the configuration in the various bootstrap shards for drivers. The route should be
from: "parent"and:- Boot drivers shard
to: "#boot-drivers", - Base drivers shard
to: "#base-drivers",
- Boot drivers shard