| // Copyright 2024 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| { |
| include: [ |
| "inspect/offer.shard.cml", |
| "syslog/offer.shard.cml", |
| ], |
| children: [ |
| { |
| name: "kernel", |
| url: "starnix_kernel#meta/starnix_kernel.cm", |
| }, |
| { |
| name: "container", |
| url: "debian#meta/debian_container.cm", |
| environment: "#starnix_runner_env", |
| }, |
| { |
| name: "print_uname", |
| url: "#meta/print_uname.cm", |
| startup: "eager", |
| environment: "#starnix_container_runner_env", |
| }, |
| ], |
| offer: [ |
| { |
| protocol: [ "fuchsia.kernel.VmexResource" ], |
| from: "parent", |
| to: "#kernel", |
| }, |
| { |
| directory: "boot-kernel", |
| from: "parent", |
| to: "#kernel", |
| }, |
| { |
| protocol: [ |
| "fuchsia.diagnostics.ArchiveAccessor", |
| "fuchsia.feedback.CrashReporter", |
| "fuchsia.kernel.Stats", |
| "fuchsia.scheduler.RoleManager", |
| "fuchsia.starnix.runner.Manager", |
| "fuchsia.sysinfo.SysInfo", |
| "fuchsia.sysmem.Allocator", |
| "fuchsia.sysmem2.Allocator", |
| "fuchsia.ui.composition.Allocator", |
| "fuchsia.ui.composition.Flatland", |
| "fuchsia.ui.display.singleton.Info", |
| "fuchsia.ui.input3.Keyboard", |
| "fuchsia.ui.policy.DeviceListenerRegistry", |
| ], |
| from: "void", |
| to: "#kernel", |
| availability: "optional", |
| }, |
| { |
| protocol: [ "fuchsia.session.power.Handoff" ], |
| from: "void", |
| to: "#container", |
| availability: "optional", |
| }, |
| { |
| // TODO(https://fxbug.dev/324273348): Remove this capability once the clients have |
| // been migrated to services. The service capability has been added below. |
| directory: "dev-gpu", |
| from: "void", |
| to: "#kernel", |
| availability: "optional", |
| }, |
| { |
| // This service replaces the directory capability above. |
| service: "fuchsia.gpu.magma.Service", |
| from: "void", |
| to: "#kernel", |
| availability: "optional", |
| }, |
| { |
| protocol: [ "fuchsia.tracing.provider.Registry" ], |
| from: "parent", |
| to: "#kernel", |
| availability: "same_as_target", |
| }, |
| ], |
| environments: [ |
| { |
| name: "starnix_runner_env", |
| extends: "realm", |
| runners: [ |
| { |
| runner: "starnix", |
| from: "#kernel", |
| }, |
| ], |
| }, |
| { |
| name: "starnix_container_runner_env", |
| extends: "realm", |
| runners: [ |
| { |
| runner: "starnix_container", |
| from: "#container", |
| }, |
| ], |
| }, |
| ], |
| } |