blob: 2d5407d18a360a776f735a2af73468954e7997a5 [file] [log] [blame]
# Copyright 2022 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.
#
# This `minimal` product is intended to be the "smallest thing we'd still call Fuchsia," which
# implies simplicity, security, updatability and performance. Importantly, that differs from "all
# current products use this feature;" today, that is what the `core` product is for.
# `minimal` will change over time, both by addition and subtraction -- for example, should the
# team ship a mechanism for updating Fuchsia that does not require IP networking, that functionality
# should be moved to a higher-level product definition.
import("//build/security/policies.gni")
import("//products/bringup.gni")
# Minimal, and all products based on it, use the "standard" assembled_system()
# impl in `//build/images/fuchsia`
use_bringup_assembly = false
bootfs_only = false
# Kernel command line arguments.
product_bootfs_labels -=
[ "//products/kernel_cmdline:kernel.oom.behavior--jobkill" ]
product_bootfs_labels +=
[ "//products/kernel_cmdline:kernel.oom.behavior--reboot" ]
# Core scheduler profiles.
product_bootfs_labels += [ "//src/sys/core:bootfs" ]
core_realm_package_name = "core-minimal"
core_realm_shards = [
"//src/connectivity/network:virtualization-core-shard",
"//src/developer/build_info:build_info_core_shard",
"//src/developer/memory/monitor:memory_monitor_core_shard",
"//src/recovery/factory_reset:factory_reset_core_shard",
"//src/sys/pkg/bin/system-update-checker:system-update-checker-core-shard",
"//src/sys/pkg/bin/system-updater:system-updater-core-shard",
"//src/sys/process-resolver:core_shard",
]
core_realm_restrict_persistent_storage = true
legacy_base_package_labels += [
"//build/info:build-info",
"//src/sys/sysmgr",
"//src/sys/sysmgr:services_config",
"//src/cobalt/bin/app:cobalt",
"//src/cobalt/bin/app:cobalt_registry",
"//src/cobalt/bin/app:config",
"//src/cobalt/bin/system-metrics:cobalt_system_metrics",
"//src/connectivity/network/mdns/bundles:config",
"//src/connectivity/network/mdns/bundles:services",
"//src/connectivity/network/netcfg:config-default",
"//src/connectivity/network",
# TODO(https://fxbug.dev/85821): remove once out-of-tree users no longer
# reference v1 components.
"//src/connectivity/network:network-legacy-deprecated",
"//src/developer/forensics:pkg",
"//src/developer/memory/monitor",
"//src/diagnostics/config/persistence",
"//src/diagnostics/config/triage:triage-detect",
"//src/diagnostics/detect:triage-detect",
"//src/diagnostics/kcounter:diagnostics-kcounter",
"//src/diagnostics/persistence:diagnostics-persistence",
"//src/diagnostics/log-stats:package",
"//src/diagnostics/sampler",
"//src/hwinfo:default_product_config",
"//src/recovery/factory_reset",
"//src/security/root_ssl_certificates",
"//src/sys/activity",
"//src/sys/device_settings:device_settings_manager",
"//src/sys/full-resolver", # This seems needed to run the session manager
"//src/sys/pkg:system-update-checker",
"//src/sys/pkg/bin/system-update-committer:enable_reboot_on_verification_failure",
"//src/sys/process-resolver",
"//src/sys/stash:pkg",
"//src/sys/time/httpsdate_time_source:httpsdate-time-source",
"//src/sys/time/timekeeper",
]
product_bootfs_labels += [
# Core products have pkgfs, so include the base resolver.
"//src/sys/base-resolver:bootfs",
]
# Set the SWD policy for core.gni, details can be found in
# //build/security/policies_swd.gni.
policy_labels.swd = "unrestricted"
# Set the update_checker policy for core.gni, details can be found in
# //build/security/policies_swd.gni.
policy_labels.update_checker = "system_update_checker"
# session_manager also needs a core realm shard but they currently vary between products, they
# must be added in individual product configs.
legacy_base_package_labels += [ "//src/session/bin/session_manager" ]
# TODO(fxbug.dev/102390): deprecate appmgr from minimal.
# Try to move up to core.gni or "higher" / specific product configurations.
import("//src/sys/appmgr/core_shards.gni")
core_realm_shards += appmgr_core_shards
legacy_base_package_labels += [
"//src/security/policy:appmgr_policy_eng",
"//src/sys/appmgr",
"//src/sys/appmgr:appmgr_scheme_config",
# All v1 components are allowed to use isolated-persistent-storage, even if
# they're not listed in the component ID index.
"//src/sys/appmgr:component_id_index_no_restrict_storage",
"//src/sys/appmgr:core_component_id_index",
]
# Use the product assembly config file to specify the product configuration.
#
# This should be overridden by products which inherit from minimal.
fuchsia_product_assembly_config_label = "//products/minimal"
fuchsia_product_assembly_config_file = "${root_build_dir}/obj/products/minimal/minimal/product_assembly_config.json"