diff --git a/docs/gen/build_arguments.md b/docs/gen/build_arguments.md index f38718431b6d6b0e8b22b614e4c10393c9d532e9..26599d5efefe0393ab4172bb65e9abc95cd76998 100644 --- a/docs/gen/build_arguments.md +++ b/docs/gen/build_arguments.md @@ -2,363 +2,310 @@ ## All builds -### host_cpu +### use_vulkan_loader_for_tests +Mesa doesn't properly handle loader-less operation; +their GetInstanceProcAddr implementation returns 0 for some interfaces. +On ARM there may be multiple libvulkan_arms, so they can't all be linked +to. -**Current value (from the default):** `"x64"` +**Current value (from the default):** `true` -### magma_python_path +From //garnet/lib/magma/gnbuild/magma.gni:31 -**Current value (from the default):** `"/b/s/w/ir/k/third_party/mako"` +### build_libvulkan_qcom_adreno +Targets that will be built as qualcomm vulkan ICDS. -From //garnet/lib/magma/gnbuild/magma.gni:14 +**Current value (from the default):** `[]` -### build_sdk_archives -Whether to build SDK tarballs. +From //garnet/lib/magma/gnbuild/magma.gni:44 -**Current value (from the default):** `false` +### scenic_use_views2 +Temporary flag, switches Flutter to using Scenic's new View API. -From //build/sdk/sdk.gni:13 +**Current value (from the default):** `false` -### enable_frame_pointers -Controls whether the compiler emits full stack frames for function calls. -This reduces performance but increases the ability to generate good -stack traces, especially when we have bugs around unwind table generation. -It applies only for Fuchsia targets (see below where it is unset). +From //garnet/bin/ui/scenic/config.gni:7 -TODO(ZX-2361): Theoretically unwind tables should be good enough so we can -remove this option when the issues are addressed. +### fvm_slice_size +The size of the FVM partition images "slice size". The FVM slice size is a +minimum size of a particular chunk of a partition that is stored within +FVM. A very small slice size may lead to decreased throughput. A very large +slice size may lead to wasted space. The selected default size of 8mb is +selected for conservation of space, rather than performance. -**Current value (from the default):** `true` +**Current value (from the default):** `"8388608"` -From //build/config/BUILD.gn:19 +From //build/images/fvm.gni:19 -### flutter_runtime_mode -The runtime mode ("debug", "profile", "release", "dynamic_profile", or "dynamic_release") +### skia_enable_flutter_defines -**Current value (from the default):** `"debug"` +**Current value for `target_cpu = "arm64"`:** `true` -From //third_party/flutter/common/config.gni:19 +From //.gn:24 -### skia_enable_particles +**Overridden from the default:** `false` -**Current value (from the default):** `true` +From //third_party/skia/BUILD.gn:17 -From //third_party/skia/modules/particles/BUILD.gn:7 +**Current value for `target_cpu = "x64"`:** `true` -### skia_enable_spirv_validation +From //.gn:24 -**Current value (from the default):** `false` +**Overridden from the default:** `false` -From //third_party/skia/BUILD.gn:47 +From //third_party/skia/BUILD.gn:17 -### target_os +### board_name +Board name used for paving and amber updates. -**Current value (from the default):** `""` +**Current value for `target_cpu = "arm64"`:** `"qemu-arm64"` -### linux_runner_extras -If `true`, the extras.img will be built and mounted inside the container -at /mnt/chromeos. +From //boards/arm64.gni:7 -This is useful for including some GN-built binaries into the guest image -without modifying the termina images. +**Overridden from the default:** `""` -**Current value (from the default):** `false` +From //build/package.gni:21 -From //src/virtualization/packages/biscotti_guest/linux_runner/BUILD.gn:26 +**Current value for `target_cpu = "x64"`:** `"pc"` -### scenic_use_views2 -Temporary flag, switches Flutter to using Scenic's new View API. +From //boards/x64.gni:7 -**Current value (from the default):** `false` +**Overridden from the default:** `""` -From //garnet/bin/ui/scenic/config.gni:7 +From //build/package.gni:21 -### skia_enable_fontmgr_win +### dart_force_product +Forces all Dart and Flutter apps to build in a specific configuration that +we use to build products. **Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:72 +From [//topaz/runtime/dart/config.gni:10](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/config.gni#10) -### scudo_default_options -Default [Scudo](https://llvm.org/docs/ScudoHardenedAllocator.html) -options (before the `SCUDO_OPTIONS` environment variable is read at -runtime). *NOTE:* This affects only components using the `scudo` -variant (see GN build argument `select_variant`), and does not affect -anything when the `use_scudo` build flag is set instead. +### embedder_for_target +By default, the dynamic library target exposing the embedder API is only +built for the host. The reasoning is that platforms that have target +definitions would not need an embedder API because an embedder +implementation is already provided for said target. This flag allows tbe +builder to obtain a shared library exposing the embedder API for alternative +embedder implementations. -**Current value (from the default):** `["abort_on_error=1", "QuarantineSizeKb=0", "ThreadLocalQuarantineSizeKb=0", "DeallocationTypeMismatch=false", "DeleteSizeMismatch=false", "allocator_may_return_null=true"]` +**Current value (from the default):** `false` -From //build/config/scudo/scudo.gni:17 +From //third_party/flutter/shell/platform/embedder/embedder.gni:12 -### skia_enable_skottie +### extra_variants +Additional variant toolchain configs to support. +This is just added to [`known_variants`](#known_variants). -**Current value (from the default):** `true` +**Current value (from the default):** `[]` -From //third_party/skia/modules/skottie/BUILD.gn:9 +From //build/config/BUILDCONFIG.gn:403 -### skia_llvm_path +### is_debug +Debug build. -**Current value (from the default):** `""` +**Current value (from the default):** `true` -From //third_party/skia/BUILD.gn:57 +From //build/config/BUILDCONFIG.gn:11 -### skia_pdf_subset_harfbuzz -TODO: set skia_pdf_subset_harfbuzz to skia_use_harfbuzz. +### kernel_cmdline_args +List of kernel command line arguments to bake into the boot image. +See also //zircon/docs/kernel_cmdline.md and +[`devmgr_config`](#devmgr_config). -**Current value (from the default):** `false` +**Current value (from the default):** `[]` -From //third_party/skia/gn/skia.gni:18 +From //build/images/BUILD.gn:480 -### blobfs_minimum_data_bytes -Number of bytes to reserve for data in the fs. This is in addition -to what is reserved, if any, for the inodes. Data bytes constitutes -"usable" space of the fs. -An empty string does not reserve any additional space than minimum -required for the filesystem. +### board_package_labels +A list of package labels to include in the 'base' package set. Used by the +board definition rather than the product definition. -**Current value (from the default):** `""` +**Current value for `target_cpu = "arm64"`:** `["//garnet/packages/prod:drivers", "//garnet/packages/prod:sysmem-assistant"]` -From //build/images/fvm.gni:36 +From //boards/arm64.gni:11 -### dart_aot_sharing_basis -module_suggester is not AOT compiled in debug builds +**Overridden from the default:** `[]` -**Current value (from the default):** `""` +From //BUILD.gn:34 -From [//topaz/runtime/dart/dart_component.gni:51](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#51) +**Current value for `target_cpu = "x64"`:** `["//garnet/packages/prod:drivers"]` -### rust_warnings -Sets whether Rust compiler warnings cause errors or not. -"deny" will make all warnings into errors, while "allow" will ignore warnings +From //boards/x64.gni:13 -**Current value (from the default):** `"deny"` +**Overridden from the default:** `[]` -From //build/rust/config.gni:27 +From //BUILD.gn:34 -### skia_gl_standard +### current_cpu **Current value (from the default):** `""` -From //third_party/skia/BUILD.gn:80 +### skia_enable_fontmgr_win -### skia_use_libwebp +**Current value (from the default):** `false` -**Current value for `target_cpu = "arm64"`:** `false` +From //third_party/skia/BUILD.gn:72 -From //.gn:29 +### build_sdk_archives +Whether to build SDK tarballs. -**Overridden from the default:** `false` +**Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:30 +From //build/sdk/sdk.gni:13 -**Current value for `target_cpu = "x64"`:** `false` +### dart_lib_export_symbols +Whether libdart should export the symbols of the Dart API. -From //.gn:29 +**Current value (from the default):** `true` -**Overridden from the default:** `false` +From //third_party/dart/runtime/runtime_args.gni:91 -From //third_party/skia/BUILD.gn:30 +### skia_enable_discrete_gpu -### skia_version +**Current value (from the default):** `true` -**Current value (from the default):** `""` +From //third_party/skia/BUILD.gn:44 -From //third_party/flutter/shell/version/version.gni:8 +### skia_enable_vulkan_debug_layers -### msd_arm_enable_all_cores -Enable all 8 cores, which is faster but emits more heat. +**Current value (from the default):** `false` -**Current value (from the default):** `true` +From //third_party/skia/BUILD.gn:49 -From //garnet/drivers/gpu/msd-arm-mali/src/BUILD.gn:9 +### zxcrypt_key_source +This argument specifies from where the system should obtain the zxcrypt +master key to the system data partition. -### update_kernels -(deprecated) List of kernel images to include in the update (OTA) package. -If no list is provided, all built kernels are included. The names in the -list are strings that must match the filename to be included in the update -package. +This value be reified as /boot/config/zxcrypt in both the zircon boot image +and the zedboot boot image, for consumption by fshost and the paver, +respectively. -**Current value (from the default):** `[]` +Acceptable values are: +* "null": the device should use an all-0's master key, as we lack support +for any secure on-device storage. +* "tee": the device is required to have a Trusted Execution Environment +(TEE) which includes the "keysafe" Trusted Application (associated with the +KMS service). The zxcrypt master key should be derived from a per-device +key accessible only to trusted apps running in the TEE. +* "tee-opportunistic": the device will attempt to use keys from the TEE if +available, but will fall back to using the null key if the key from the TEE +does not work, or if the TEE is not functional on this device. +* "tee-transitional": the device will require the use of a key from the TEE +for new volume creation, but will continue to try both a TEE-sourced key and +the null key when unsealing volumes. -From //build/images/BUILD.gn:498 +In the future, we may consider adding support for TPMs, or additional logic +to explicitly support other fallback behavior. -### skia_tools_require_resources +**Current value (from the default):** `"null"` -**Current value (from the default):** `false` +From //build/images/zxcrypt.gni:29 -From //third_party/skia/BUILD.gn:60 +### crash_diagnostics_dir +Clang crash reports directory path. Use empty path to disable altogether. -### skia_use_opencl +**Current value (from the default):** `"//root_build_dir/clang-crashreports"` -**Current value (from the default):** `false` +From //build/config/BUILD.gn:9 -From //third_party/skia/BUILD.gn:32 +### msd_arm_enable_protected_debug_swap_mode +In protected mode, faults don't return as much information so they're much harder to debug. To +work around that, add a mode where protected atoms are executed in non-protected mode and +vice-versa. -### dart_platform_bytecode -Whether the VM's platform dill file contains bytecode. +NOTE: The memory security ranges should also be set (in TrustZone) to the opposite of normal, so +that non-protected mode accesses can only access protected memory and vice versa. Also, +growable memory faults won't work in this mode, so larger portions of growable memory should +precommitted (which is not done by default). **Current value (from the default):** `false` -From //third_party/dart/runtime/runtime_args.gni:84 +From //garnet/drivers/gpu/msd-arm-mali/src/BUILD.gn:23 -### dart_version +### dart_aot_sharing_basis +module_suggester is not AOT compiled in debug builds **Current value (from the default):** `""` -From //third_party/flutter/shell/version/version.gni:10 +From [//topaz/runtime/dart/dart_component.gni:51](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#51) -### fvm_slice_size -The size of the FVM partition images "slice size". The FVM slice size is a -minimum size of a particular chunk of a partition that is stored within -FVM. A very small slice size may lead to decreased throughput. A very large -slice size may lead to wasted space. The selected default size of 8mb is -selected for conservation of space, rather than performance. - -**Current value (from the default):** `"8388608"` - -From //build/images/fvm.gni:19 - -### goma_dir -Absolute directory containing the Goma source code. - -**Current value (from the default):** `"/home/swarming/goma"` - -From //build/toolchain/goma.gni:12 - -### vk_loader_debug - -**Current value (from the default):** `"warn,error"` - -From [//third_party/vulkan_loader_and_validation_layers/loader/BUILD.gn:26](https://fuchsia.googlesource.com/third_party/vulkan_loader_and_validation_layers/+/5aa2763f1d0a436644207f3ab56f40cfbf9bb760/loader/BUILD.gn#26) - -### toolchain_manifests -Manifest files describing target libraries from toolchains. -Can be either // source paths or absolute system paths. - -**Current value (from the default):** `["/b/s/w/ir/k/buildtools/linux-x64/clang/lib/aarch64-fuchsia.manifest"]` - -From //build/images/manifest.gni:11 - -### export_x64_sdk_images +### dart_component_kind +Allow for deduping the VM between standalone, flutter_runner and dart_runner. -**Current value (from the default):** `false` +**Current value (from the default):** `"shared_library"` -From //sdk/BUILD.gn:13 +From //third_party/dart/runtime/runtime_args.gni:78 -### skia_lex +### flutter_runtime_mode +The runtime mode ("debug", "profile", "release", "dynamic_profile", or "dynamic_release") -**Current value (from the default):** `false` +**Current value (from the default):** `"debug"` -From //third_party/skia/BUILD.gn:53 +From //third_party/flutter/common/config.gni:19 -### skia_use_angle +### flutter_space_dart +Whether experimental space dart mode is enabled for Flutter applications. **Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:21 - -### skia_use_x11 - -**Current value for `target_cpu = "arm64"`:** `false` - -From //.gn:31 - -**Overridden from the default:** `false` - -From //third_party/skia/BUILD.gn:38 - -**Current value for `target_cpu = "x64"`:** `false` - -From //.gn:31 - -**Overridden from the default:** `false` - -From //third_party/skia/BUILD.gn:38 +From [//topaz/runtime/dart/dart_component.gni:38](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#38) -### custom_signing_script -If non-empty, the given script will be invoked to produce a signed ZBI -image. The given script must accept -z for the input zbi path, and -o for -the output signed zbi path. The path must be in GN-label syntax (i.e. -starts with //). +### prebuilt_libvulkan_arm_path **Current value (from the default):** `""` -From //build/images/custom_signing.gni:12 - -### persist_logs - -**Current value (from the default):** `true` - -From //build/persist_logs.gni:13 - -### rustc_prefix -Sets a custom base directory for `rustc` and `cargo`. -This can be used to test custom Rust toolchains. - -**Current value (from the default):** `"//buildtools/linux-x64/rust/bin"` - -From //build/rust/config.gni:17 - -### skia_use_libpng - -**Current value (from the default):** `true` - -From //third_party/skia/BUILD.gn:29 - -### use_lto -Use link time optimization (LTO). - -**Current value (from the default):** `false` - -From //build/config/lto/config.gni:7 +From //garnet/lib/magma/gnbuild/magma.gni:23 -### vbmeta_a_partition +### skia_qt_path **Current value (from the default):** `""` -From //build/images/BUILD.gn:42 - -### enable_dart_analysis -Enable all dart analysis +From //third_party/skia/BUILD.gn:50 -**Current value (from the default):** `true` +### build_libvulkan_arm_mali +Targets that will be built as mali vulkan ICDS. -From //build/dart/dart_library.gni:15 +**Current value (from the default):** `[]` -### ledger_sync_credentials_file +From //garnet/lib/magma/gnbuild/magma.gni:38 -**Current value (from the default):** `""` +### concurrent_dart_jobs +Maximum number of Dart processes to run in parallel. -From //src/ledger/bin/testing/sync_params.gni:6 +Dart analyzer uses a lot of memory which may cause issues when building +with many parallel jobs e.g. when using goma. To avoid out-of-memory +errors we explicitly reduce the number of jobs. -### skia_android_serial +**Current value (from the default):** `16` -**Current value (from the default):** `""` +From //build/dart/BUILD.gn:15 -From //third_party/skia/BUILD.gn:41 +### dart_use_tcmalloc +Whether to link the standalone VM against tcmalloc. The standalone build of +the VM enables this only for Linux builds. -### target_sysroot -The absolute path of the sysroot that is used with the target toolchain. +**Current value (from the default):** `false` -**Current value (from the default):** `""` +From //third_party/dart/runtime/runtime_args.gni:47 -From //build/config/sysroot.gni:7 +### linux_runner_extras +If `true`, the extras.img will be built and mounted inside the container +at /mnt/chromeos. -### wlancfg_config_type -Selects the wlan configuration type to use. Choices: - "client" - client mode - "ap" - access point mode - "" (empty string) - no configuration +This is useful for including some GN-built binaries into the guest image +without modifying the termina images. -**Current value (from the default):** `"client"` +**Current value (from the default):** `false` -From //src/connectivity/wlan/wlancfg/BUILD.gn:15 +From //src/virtualization/packages/biscotti_guest/linux_runner/BUILD.gn:26 -### prebuilt_framework_path +### minfs_minimum_data_bytes **Current value (from the default):** `""` -From [//topaz/runtime/flutter_runner/prebuilt_framework.gni:6](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/flutter_runner/prebuilt_framework.gni#6) +From //build/images/fvm.gni:37 ### select_variant List of "selectors" to request variant builds of certain targets. @@ -431,237 +378,210 @@ is satisfied if any of the strings matches against the candidate string. From //build/config/BUILDCONFIG.gn:626 -### skia_use_libheif +### skia_use_vulkan -**Current value (from the default):** `false` +**Current value (from the default):** `true` -From //third_party/skia/BUILD.gn:37 +From //third_party/skia/BUILD.gn:86 -### thinlto_cache_dir -ThinLTO cache directory path. +### skia_use_xps -**Current value (from the default):** `"thinlto-cache"` +**Current value (from the default):** `true` -From //build/config/lto/config.gni:16 +From //third_party/skia/BUILD.gn:39 -### use_vulkan_loader_for_tests -Mesa doesn't properly handle loader-less operation; -their GetInstanceProcAddr implementation returns 0 for some interfaces. -On ARM there may be multiple libvulkan_arms, so they can't all be linked -to. +### bootfs_extra +List of extra manifest entries for files to add to the BOOTFS. +Each entry can be a "TARGET=SOURCE" string, or it can be a scope +with `sources` and `outputs` in the style of a copy() target: +`outputs[0]` is used as `TARGET` (see `gn help source_expansion`). -**Current value (from the default):** `true` +**Current value (from the default):** `[]` -From //garnet/lib/magma/gnbuild/magma.gni:31 +From //build/images/BUILD.gn:492 -### active_partition +### build_info_board +Board configuration of the current build -**Current value (from the default):** `""` +**Current value (from the default):** `"qemu-arm64"` -From //build/images/BUILD.gn:45 +From //garnet/BUILD.gn:24 -### blobfs_minimum_inodes -minimum_inodes is the number of inodes to reserve for the fs -An empty string does not reserve any additional space than minimum -required for the filesystem. +### skia_llvm_path **Current value (from the default):** `""` -From //build/images/fvm.gni:28 +From //third_party/skia/BUILD.gn:57 -### msd_intel_gen_build_root +### skia_use_freetype -**Current value (from the default):** `"//garnet/drivers/gpu/msd-intel-gen"` +**Current value (from the default):** `true` -From //garnet/lib/magma/gnbuild/magma.gni:10 +From //third_party/skia/BUILD.gn:26 -### skia_enable_skpicture +### use_vbmeta +If true, then the paving script will pave vbmeta images to the target device. +It is assumed that the vbmeta image will be created by the custom_signing_script. -**Current value (from the default):** `true` +**Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:48 +From //build/images/custom_signing.gni:16 -### skia_use_dng_sdk +### linux_runner_gateway -**Current value for `target_cpu = "arm64"`:** `false` +**Current value (from the default):** `"10.0.0.1"` -From //.gn:26 +From //src/virtualization/packages/biscotti_guest/linux_runner/BUILD.gn:18 -**Overridden from the default:** `false` +### select_variant_shortcuts +List of short names for commonly-used variant selectors. Normally this +is not set as a build argument, but it serves to document the available +set of short-cut names for variant selectors. Each element of this list +is a scope where `.name` is the short name and `.select_variant` is a +a list that can be spliced into [`select_variant`](#select_variant). -From //third_party/skia/BUILD.gn:63 +**Current value (from the default):** +``` +[{ + name = "host_asan" + select_variant = [{ + dir = ["//third_party/yasm", "//third_party/vboot_reference", "//garnet/tools/vboot_reference", "//third_party/shaderc/third_party/spirv-tools"] + host = true + variant = "asan_no_detect_leaks" +}, { + host = true + variant = "asan" +}] +}, { + name = "asan" + select_variant = [{ + target_type = ["driver_module"] + variant = false +}, { + host = false + variant = "asan" +}] +}] +``` -**Current value for `target_cpu = "x64"`:** `false` +From //build/config/BUILDCONFIG.gn:449 -From //.gn:26 +### max_fvm_size +Maximum allowable size for the FVM in a release mode build +Zero means no limit -**Overridden from the default:** `false` +**Current value (from the default):** `"0"` -From //third_party/skia/BUILD.gn:63 +From //build/images/max_fvm_size.gni:8 -### use_vboot -Use vboot images - -**Current value (from the default):** `false` - -From //build/images/boot.gni:11 - -### rust_lto -Sets the default LTO type for rustc bulids. - -**Current value (from the default):** `"unset"` - -From //build/rust/config.gni:20 - -### allow_layer_guesswork -Does nothing. - -Will be removed after 30 April 2019. - -**Current value (from the default):** `false` - -From //BUILD.gn:39 - -### debian_guest_qcow -Package the rootfs as a QCOW image (as opposed to a flat file). +### msd_arm_enable_all_cores +Enable all 8 cores, which is faster but emits more heat. **Current value (from the default):** `true` -From //src/virtualization/packages/debian_guest/BUILD.gn:9 - -### glm_build_root - -**Current value (from the default):** `"//third_party/glm"` - -From //garnet/lib/magma/gnbuild/magma.gni:11 - -### fuchsia_vulkan_sdk -Path to Fuchsia Vulkan SDK - -**Current value (from the default):** `"//third_party/vulkan_loader_and_validation_layers"` - -From //build/vulkan/config.gni:10 - -### use_scudo -TODO(davemoore): Remove this entire mechanism once standalone scudo is the -default (DNO-442) -Enable the [Scudo](https://llvm.org/docs/ScudoHardenedAllocator.html) -memory allocator. +From //garnet/drivers/gpu/msd-arm-mali/src/BUILD.gn:9 -**Current value (from the default):** `false` +### msd_intel_gen_build_root -From //build/config/scudo/scudo.gni:10 +**Current value (from the default):** `"//garnet/drivers/gpu/msd-intel-gen"` -### dart_vm_code_coverage -Whether to enable code coverage for the standalone VM. +From //garnet/lib/magma/gnbuild/magma.gni:10 -**Current value (from the default):** `false` +### system_package_key +The package key to use for signing Fuchsia packages made by the +`package()` template (and the `system_image` package). If this +doesn't exist yet when it's needed, it will be generated. New +keys can be generated with the `pm -k FILE genkey` host command. -From //third_party/dart/runtime/runtime_args.gni:39 +**Current value (from the default):** `"//build/development.key"` -### engine_version +From //build/package.gni:18 -**Current value (from the default):** `""` +### concurrent_link_jobs +Maximum number of concurrent link jobs. -From //third_party/flutter/shell/version/version.gni:6 +We often want to run fewer links at once than we do compiles, because +linking is memory-intensive. The default to use varies by platform and by +the amount of memory available, so we call out to a script to get the right +value. -### skia_compile_processors +**Current value (from the default):** `16` -**Current value (from the default):** `false` +From //build/toolchain/BUILD.gn:15 -From //third_party/skia/BUILD.gn:51 +### host_tools_dir +This is the directory where host tools intended for manual use by +developers get installed. It's something a developer might put +into their shell's $PATH. Host tools that are just needed as part +of the build do not get copied here. This directory is only for +things that are generally useful for testing or debugging or +whatnot outside of the GN build itself. These are only installed +by an explicit install_host_tools() rule (see //build/host.gni). -### dart_custom_version_for_pub -When this argument is a non-empty string, the version repoted by the -Dart VM will be one that is compatible with pub's interpretation of -semantic version strings. The version string will also include the values -of the argument. In particular the version string will read: +**Current value (from the default):** `"//root_build_dir/tools"` - "M.m.p-dev.x.x-$(dart_custom_version_for_pub)-$(short_git_hash)" +From //build/host.gni:13 -Where 'M', 'm', and 'p' are the major, minor and patch version numbers, -and 'dev.x.x' is the dev version tag most recently preceeding the current -revision. The short git hash can be omitted by setting -dart_version_git_info=false +### zircon_r_partition **Current value (from the default):** `""` -From //third_party/dart/runtime/runtime_args.gni:73 +From //build/images/BUILD.gn:41 -### extra_manifest_args -Extra args to globally apply to the manifest generation script. +### build_libvulkan_vsl_gc +Targets that will be built as verisilicon vulkan ICDS. **Current value (from the default):** `[]` -From //build/images/manifest.gni:22 +From //garnet/lib/magma/gnbuild/magma.gni:41 -### use_thinlto -Use ThinLTO variant of LTO if use_lto = true. +### signed_image -**Current value (from the default):** `true` +**Current value (from the default):** `false` -From //build/config/lto/config.gni:10 +From //build/images/BUILD.gn:46 -### dart_space_dart -Whether experimental space dart mode is enabled for Dart applications. +### scenic_ignore_vsync **Current value (from the default):** `false` -From [//topaz/runtime/dart/dart_component.gni:41](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#41) +From //garnet/lib/ui/gfx/BUILD.gn:8 -### flutter_default_app +### skia_pdf_subset_harfbuzz +TODO: set skia_pdf_subset_harfbuzz to skia_use_harfbuzz. -**Current value (from the default):** `"flutter_jit_app"` +**Current value (from the default):** `false` -From [//topaz/runtime/dart/dart_component.gni:12](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#12) +From //third_party/skia/gn/skia.gni:18 -### zedboot_cmdline_args -List of kernel command line arguments to bake into the Zedboot image. -See //zircon/docs/kernel_cmdline.md and -[`zedboot_devmgr_config`](#zedboot_devmgr_config). +### target_cpu -**Current value (from the default):** `[]` +**Current value for `target_cpu = "arm64"`:** `"arm64"` -From //build/images/zedboot/BUILD.gn:17 +From //boards/arm64.gni:5 -### zircon_extra_args -[Zircon GN build arguments](../../../zircon/docs/gen/build_arguments.md). -This is included in the default value of [`zircon_args`](#zircon_args) so -you can set this to add things there without wiping out the defaults. -When you set `zircon_args` directly, then this has no effect at all. -Arguments you set here override any arguments in the default -`zircon_args`. There is no way to append to a value from the defaults. -Note that for just setting simple (string-only) values in Zircon GN's -[`variants`](../../../zircon/docs/gen/build_arguments.md#variants), the -default [`zircon_args`](#zircon_args) uses a `variants` value derived from -[`select_variant`](#select_variant) so for simple cases there is no need -to explicitly set Zircon's `variants` here. +**Overridden from the default:** `""` -**Current value (from the default):** `{ }` +**Current value for `target_cpu = "x64"`:** `"x64"` -From //build/config/fuchsia/zircon.gni:27 +From //boards/x64.gni:5 -### bootfs_extra -List of extra manifest entries for files to add to the BOOTFS. -Each entry can be a "TARGET=SOURCE" string, or it can be a scope -with `sources` and `outputs` in the style of a copy() target: -`outputs[0]` is used as `TARGET` (see `gn help source_expansion`). +**Overridden from the default:** `""` -**Current value (from the default):** `[]` +### dart_vm_code_coverage +Whether to enable code coverage for the standalone VM. -From //build/images/BUILD.gn:492 +**Current value (from the default):** `false` -### concurrent_link_jobs -Maximum number of concurrent link jobs. +From //third_party/dart/runtime/runtime_args.gni:39 -We often want to run fewer links at once than we do compiles, because -linking is memory-intensive. The default to use varies by platform and by -the amount of memory available, so we call out to a script to get the right -value. +### data_partition_manifest +Path to manifest file containing data to place into the initial /data +partition. -**Current value (from the default):** `16` +**Current value (from the default):** `""` -From //build/toolchain/BUILD.gn:15 +From //build/images/BUILD.gn:28 ### dart_runtime_mode Set the runtime mode. This affects how the runtime is built and what @@ -686,280 +606,268 @@ dart_debug/dart_product. From //third_party/dart/runtime/runtime_args.gni:28 -### dart_lib_export_symbols -Whether libdart should export the symbols of the Dart API. +### skia_use_opencl -**Current value (from the default):** `true` +**Current value (from the default):** `false` -From //third_party/dart/runtime/runtime_args.gni:91 +From //third_party/skia/BUILD.gn:32 -### host_byteorder +### skia_gl_standard -**Current value (from the default):** `"undefined"` +**Current value (from the default):** `""` -From //build/config/host_byteorder.gni:7 +From //third_party/skia/BUILD.gn:80 -### escher_use_null_vulkan_config_on_host -Using Vulkan on host (i.e. Linux) is an involved affair that involves -downloading the Vulkan SDK, setting environment variables, and so forth... -all things that are difficult to achieve in a CQ environment. Therefore, -by default we use a stub implementation of Vulkan which fails to create a -VkInstance. This allows everything to build, and also allows running Escher -unit tests which don't require Vulkan. +### skia_use_libwebp -**Current value (from the default):** `true` +**Current value for `target_cpu = "arm64"`:** `false` -From //src/ui/lib/escher/BUILD.gn:16 +From //.gn:29 -### icu_use_data_file -Tells icu to load an external data file rather than rely on the icudata -being linked directly into the binary. +**Overridden from the default:** `false` -This flag is a bit confusing. As of this writing, icu.gyp set the value to -0 but common.gypi sets the value to 1 for most platforms (and the 1 takes -precedence). +From //third_party/skia/BUILD.gn:30 -TODO(GYP) We'll probably need to enhance this logic to set the value to -true or false in similar circumstances. +**Current value for `target_cpu = "x64"`:** `false` -**Current value (from the default):** `true` +From //.gn:29 -From [//third_party/icu/config.gni:15](https://fuchsia.googlesource.com/third_party/icu/+/65e4aa3b8cc6b41cf31136b9474a9c97bdc27739/config.gni#15) +**Overridden from the default:** `false` -### msd_arm_enable_cache_coherency -With this flag set the system tries to use cache coherent memory if the -GPU supports it. +From //third_party/skia/BUILD.gn:30 -**Current value (from the default):** `true` +### enable_sketchy_subsystem -From //garnet/drivers/gpu/msd-arm-mali/src/BUILD.gn:13 +**Current value (from the default):** `false` -### prebuilt_framework_name +From //garnet/bin/ui/scenic/BUILD.gn:13 + +### fuchsia_sdk_root +Consumers of the Fuchsia SDK instantiate templates for various SDK parts at +a specific spot within their buildroots. The target name for the specific +part is then derived from the part name as specified in the meta.json +manifest. Different buildroot instantiate the SDK parts at different +locations and then set this variable. GN rules can then prefix this variable +name in SDK builds to the name of the SDK part. This flag is meaningless in +non-SDK buildroots. **Current value (from the default):** `""` -From [//topaz/runtime/flutter_runner/prebuilt_framework.gni:7](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/flutter_runner/prebuilt_framework.gni#7) +From //build/fuchsia/sdk.gni:17 -### add_qemu_to_build_archives -Whether to include images necessary to run Fuchsia in QEMU in build -archives. +### vbmeta_a_partition -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //build/images/BUILD.gn:51 +From //build/images/BUILD.gn:42 -### board_name -Board name used for paving and amber updates. +### zedboot_cmdline_files +Files containing additional kernel command line arguments to bake into +the Zedboot image. The contents of these files (in order) come after any +arguments directly in [`zedboot_cmdline_args`](#zedboot_cmdline_args). +These can be GN `//` source pathnames or absolute system pathnames. -**Current value for `target_cpu = "arm64"`:** `"qemu-arm64"` +**Current value (from the default):** `[]` -From //boards/arm64.gni:7 +From //build/images/zedboot/BUILD.gn:23 -**Overridden from the default:** `""` +### concurrent_go_jobs +Maximum number of Go processes to run in parallel. -From //build/package.gni:21 +**Current value (from the default):** `16` -**Current value for `target_cpu = "x64"`:** `"pc"` +From //build/go/BUILD.gn:11 -From //boards/x64.gni:7 +### dart_debug +Instead of using is_debug, we introduce a different flag for specifying a +Debug build of Dart so that clients can still use a Release build of Dart +while themselves doing a Debug build. -**Overridden from the default:** `""` +**Current value (from the default):** `false` -From //build/package.gni:21 +From //third_party/dart/runtime/runtime_args.gni:9 -### board_packages +### sdk_dirs +The directories to search for parts of the SDK. -**Current value for `target_cpu = "arm64"`:** `[]` +By default, we search the public directories for the various layers. +In the future, we'll search a pre-built SDK as well. -From //boards/arm64.gni:9 +**Current value (from the default):** `["//garnet/public", "//peridot/public", "//topaz/public"]` -**Overridden from the default:** `[]` +From //build/config/fuchsia/sdk.gni:10 -From //BUILD.gn:40 +### skia_use_sfntly -**Current value for `target_cpu = "x64"`:** `[]` +**Current value for `target_cpu = "arm64"`:** `false` -From //boards/x64.gni:9 +From //.gn:30 -**Overridden from the default:** `[]` +**Overridden from the default:** `false` -From //BUILD.gn:40 +From //third_party/skia/BUILD.gn:64 -### fuchsia_sdk_root -Consumers of the Fuchsia SDK instantiate templates for various SDK parts at -a specific spot within their buildroots. The target name for the specific -part is then derived from the part name as specified in the meta.json -manifest. Different buildroot instantiate the SDK parts at different -locations and then set this variable. GN rules can then prefix this variable -name in SDK builds to the name of the SDK part. This flag is meaningless in -non-SDK buildroots. +**Current value for `target_cpu = "x64"`:** `false` -**Current value (from the default):** `""` +From //.gn:30 -From //build/fuchsia/sdk.gni:17 +**Overridden from the default:** `false` -### msd_arm_enable_protected_debug_swap_mode -In protected mode, faults don't return as much information so they're much harder to debug. To -work around that, add a mode where protected atoms are executed in non-protected mode and -vice-versa. +From //third_party/skia/BUILD.gn:64 -NOTE: The memory security ranges should also be set (in TrustZone) to the opposite of normal, so -that non-protected mode accesses can only access protected memory and vice versa. Also, -growable memory faults won't work in this mode, so larger portions of growable memory should -precommitted (which is not done by default). +### wlancfg_config_type +Selects the wlan configuration type to use. Choices: + "client" - client mode + "ap" - access point mode + "" (empty string) - no configuration -**Current value (from the default):** `false` +**Current value (from the default):** `"client"` -From //garnet/drivers/gpu/msd-arm-mali/src/BUILD.gn:23 +From //src/connectivity/wlan/wlancfg/BUILD.gn:15 -### select_variant_shortcuts -List of short names for commonly-used variant selectors. Normally this -is not set as a build argument, but it serves to document the available -set of short-cut names for variant selectors. Each element of this list -is a scope where `.name` is the short name and `.select_variant` is a -a list that can be spliced into [`select_variant`](#select_variant). +### enable_mdns_trace +Enables the tracing feature of mdns, which can be turned on using +"mdns-util verbose". -**Current value (from the default):** -``` -[{ - name = "host_asan" - select_variant = [{ - dir = ["//third_party/yasm", "//third_party/vboot_reference", "//garnet/tools/vboot_reference", "//third_party/shaderc/third_party/spirv-tools"] - host = true - variant = "asan_no_detect_leaks" -}, { - host = true - variant = "asan" -}] -}, { - name = "asan" - select_variant = [{ - target_type = ["driver_module"] - variant = false -}, { - host = false - variant = "asan" -}] -}] -``` +**Current value (from the default):** `false` -From //build/config/BUILDCONFIG.gn:449 +From //src/connectivity/network/mdns/service/BUILD.gn:15 -### skia_use_fonthost_mac +### host_os -**Current value (from the default):** `false` +**Current value (from the default):** `"linux"` -From //third_party/skia/BUILD.gn:25 +### prebuilt_framework_name -### clang_prefix -The default clang toolchain provided by the buildtools. This variable is -additionally consumed by the Go toolchain. +**Current value (from the default):** `""` -**Current value (from the default):** `"../buildtools/linux-x64/clang/bin"` +From [//topaz/runtime/flutter_runner/prebuilt_framework.gni:7](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/flutter_runner/prebuilt_framework.gni#7) -From //build/config/clang/clang.gni:11 +### zircon_build_root -### skia_use_zlib +**Current value (from the default):** `"//zircon"` + +From //garnet/lib/magma/gnbuild/magma.gni:12 + +### use_thinlto +Use ThinLTO variant of LTO if use_lto = true. **Current value (from the default):** `true` -From //third_party/skia/BUILD.gn:35 +From //build/config/lto/config.gni:10 -### use_prebuilt_ffmpeg -Use a prebuilt ffmpeg binary rather than building it locally. See -//src/media/lib/ffmpeg/README.md for details. This is ignored when -building in variant builds for which there is no prebuilt. In that -case, ffmpeg is always built from source so as to be built with the -selected variant's config. When this is false (either explicitly or in -a variant build) then //third_party/ffmpeg must be in the source tree, -which requires: -`jiri import -name integration third_party/ffmpeg https://fuchsia.googlesource.com/integration` +### goma_dir +Absolute directory containing the Goma source code. -**Current value (from the default):** `true` +**Current value (from the default):** `"/home/swarming/goma"` -From //src/media/lib/ffmpeg/BUILD.gn:14 +From //build/toolchain/goma.gni:12 -### zircon_asserts +### skia_enable_nvpr -**Current value (from the default):** `true` +**Current value (from the default):** `false` -From //build/config/fuchsia/BUILD.gn:205 +From //third_party/skia/BUILD.gn:43 -### zircon_build_root +### using_fuchsia_sdk +Only set in buildroots where targets configure themselves for use with the +Fuchsia SDK -**Current value (from the default):** `"//zircon"` +**Current value (from the default):** `false` -From //garnet/lib/magma/gnbuild/magma.gni:12 +From //build/fuchsia/sdk.gni:8 -### is_debug -Debug build. +### debian_guest_qcow +Package the rootfs as a QCOW image (as opposed to a flat file). **Current value (from the default):** `true` -From //build/config/BUILDCONFIG.gn:11 +From //src/virtualization/packages/debian_guest/BUILD.gn:9 -### skia_enable_fontmgr_custom_empty +### sdk_id +Identifier for the Core SDK. -**Current value (from the default):** `true` +**Current value (from the default):** `""` -From //third_party/skia/BUILD.gn:69 +From //sdk/config.gni:7 -### skia_enable_skshaper +### extra_manifest_args +Extra args to globally apply to the manifest generation script. -**Current value (from the default):** `true` +**Current value (from the default):** `[]` -From //third_party/skia/modules/skshaper/BUILD.gn:9 +From //build/images/manifest.gni:22 -### skia_enable_fontmgr_empty +### target_sysroot +The absolute path of the sysroot that is used with the target toolchain. -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //third_party/skia/BUILD.gn:66 +From //build/config/sysroot.gni:7 -### skia_enable_pdf +### zircon_b_partition -**Current value for `target_cpu = "arm64"`:** `false` +**Current value (from the default):** `""` -From //.gn:25 +From //build/images/BUILD.gn:40 -**Overridden from the default:** `true` +### add_qemu_to_build_archives +Whether to include images necessary to run Fuchsia in QEMU in build +archives. -From //third_party/skia/BUILD.gn:46 +**Current value (from the default):** `false` -**Current value for `target_cpu = "x64"`:** `false` +From //build/images/BUILD.gn:51 -From //.gn:25 +### dart_version -**Overridden from the default:** `true` +**Current value (from the default):** `""` -From //third_party/skia/BUILD.gn:46 +From //third_party/flutter/shell/version/version.gni:10 -### always_zedboot -Build boot images that prefer Zedboot over local boot (only for EFI). +### scudo_default_options +Default [Scudo](https://llvm.org/docs/ScudoHardenedAllocator.html) +options (before the `SCUDO_OPTIONS` environment variable is read at +runtime). *NOTE:* This affects only components using the `scudo` +variant (see GN build argument `select_variant`), and does not affect +anything when the `use_scudo` build flag is set instead. -**Current value (from the default):** `false` +**Current value (from the default):** `["abort_on_error=1", "QuarantineSizeKb=0", "ThreadLocalQuarantineSizeKb=0", "DeallocationTypeMismatch=false", "DeleteSizeMismatch=false", "allocator_may_return_null=true"]` -From //build/images/BUILD.gn:809 +From //build/config/scudo/scudo.gni:17 -### enable_gfx_subsystem +### skia_use_libjpeg_turbo **Current value (from the default):** `true` -From //garnet/bin/ui/scenic/BUILD.gn:12 +From //third_party/skia/BUILD.gn:28 -### go_vet_enabled - go_vet_enabled - [bool] if false, go vet invocations are disabled for all builds. +### create_kernel_service_snapshot **Current value (from the default):** `false` -From //build/go/go_build.gni:20 +From //third_party/dart/runtime/runtime_args.gni:101 -### fastboot_product +### dart_snapshot_kind -**Current value (from the default):** `""` +**Current value (from the default):** `"kernel"` -From //build/images/BUILD.gn:47 +From //third_party/dart/utils/application_snapshot.gni:14 + +### vk_loader_debug + +**Current value (from the default):** `"warn,error"` + +From [//third_party/vulkan_loader_and_validation_layers/loader/BUILD.gn:26](https://fuchsia.googlesource.com/third_party/vulkan_loader_and_validation_layers/+/5aa2763f1d0a436644207f3ab56f40cfbf9bb760/loader/BUILD.gn#26) + +### crashpad_use_boringssl_for_http_transport_socket +TODO(scottmg): https://crbug.com/crashpad/266 fuchsia:DX-690: BoringSSL +was removed from the Fuchsia SDK. Re-enable it when we have a way to acquire +a BoringSSL lib again. + +**Current value (from the default):** `true` + +From [//third_party/crashpad/util/net/tls.gni:21](https://chromium.googlesource.com/crashpad/crashpad/+/d221b7cadab5f00c6999f060a5bcb0896e25c7b7/util/net/tls.gni#21) ### known_variants List of variants that will form the basis for variant toolchains. @@ -1075,606 +983,703 @@ Each element of the list is one variant, which is a scope defining: From //build/config/BUILDCONFIG.gn:338 -### rust_toolchain_triple_suffix -Sets the fuchsia toolchain target triple suffix (after arch) +### flutter_default_app -**Current value (from the default):** `"fuchsia"` +**Current value (from the default):** `"flutter_jit_app"` -From //build/rust/config.gni:23 +From [//topaz/runtime/dart/dart_component.gni:12](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#12) -### skia_enable_atlas_text +### skia_android_serial -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //third_party/skia/BUILD.gn:65 +From //third_party/skia/BUILD.gn:41 -### zxcrypt_key_source -This argument specifies from where the system should obtain the zxcrypt -master key to the system data partition. +### skia_enable_fontmgr_android -This value be reified as /boot/config/zxcrypt in both the zircon boot image -and the zedboot boot image, for consumption by fshost and the paver, -respectively. +**Current value (from the default):** `false` -Acceptable values are: -* "null": the device should use an all-0's master key, as we lack support -for any secure on-device storage. -* "tee": the device is required to have a Trusted Execution Environment -(TEE) which includes the "keysafe" Trusted Application (associated with the -KMS service). The zxcrypt master key should be derived from a per-device -key accessible only to trusted apps running in the TEE. -* "tee-opportunistic": the device will attempt to use keys from the TEE if -available, but will fall back to using the null key if the key from the TEE -does not work, or if the TEE is not functional on this device. -* "tee-transitional": the device will require the use of a key from the TEE -for new volume creation, but will continue to try both a TEE-sourced key and -the null key when unsealing volumes. +From //third_party/skia/BUILD.gn:70 -In the future, we may consider adding support for TPMs, or additional logic -to explicitly support other fallback behavior. +### skia_enable_fontmgr_empty -**Current value (from the default):** `"null"` +**Current value (from the default):** `false` -From //build/images/zxcrypt.gni:29 +From //third_party/skia/BUILD.gn:66 -### build_libvulkan_qcom_adreno -Targets that will be built as qualcomm vulkan ICDS. +### zedboot_cmdline_args +List of kernel command line arguments to bake into the Zedboot image. +See //zircon/docs/kernel_cmdline.md and +[`zedboot_devmgr_config`](#zedboot_devmgr_config). **Current value (from the default):** `[]` -From //garnet/lib/magma/gnbuild/magma.gni:44 +From //build/images/zedboot/BUILD.gn:17 -### dart_debug_optimization_level -The optimization level to use for debug builds. Defaults to 0 for builds with -code coverage enabled. +### build_info_version +Logical version of the current build. If not set, defaults to the timestamp +of the most recent update. -**Current value (from the default):** `"2"` +**Current value (from the default):** `""` -From //third_party/dart/runtime/runtime_args.gni:36 +From //garnet/BUILD.gn:28 -### experimental_wlan_client_mlme -Selects the SoftMAC client implementation to use. Choices: - false (default) - C++ Client MLME implementation - true - Rust Client MLME implementation -This argument is temporary until Rust MLME is ready to be used. +### extra_authorized_keys_file +Additional SSH authorized_keys file to include in the build. +For example: + extra_authorized_keys_file=\"$HOME/.ssh/id_rsa.pub\" -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //src/connectivity/wlan/lib/mlme/cpp/BUILD.gn:10 +From [//third_party/openssh-portable/fuchsia/developer-keys/BUILD.gn:11](https://fuchsia.googlesource.com/third_party/openssh-portable/+/62f4ca0d82fa50a3405703837031a15c36dccdd4/fuchsia/developer-keys/BUILD.gn#11) -### build_info_board -Board configuration of the current build +### skia_enable_skottie -**Current value (from the default):** `"qemu-arm64"` +**Current value (from the default):** `true` -From //garnet/BUILD.gn:24 +From //third_party/skia/modules/skottie/BUILD.gn:9 -### host_tools_dir -This is the directory where host tools intended for manual use by -developers get installed. It's something a developer might put -into their shell's $PATH. Host tools that are just needed as part -of the build do not get copied here. This directory is only for -things that are generally useful for testing or debugging or -whatnot outside of the GN build itself. These are only installed -by an explicit install_host_tools() rule (see //build/host.gni). +### zircon_asserts -**Current value (from the default):** `"//root_build_dir/tools"` +**Current value (from the default):** `true` -From //build/host.gni:13 +From //build/config/fuchsia/BUILD.gn:205 -### zircon_b_partition +### glm_build_root -**Current value (from the default):** `""` +**Current value (from the default):** `"//third_party/glm"` -From //build/images/BUILD.gn:40 +From //garnet/lib/magma/gnbuild/magma.gni:11 -### skia_use_xps +### meta_package_labels +A list of labels for meta packages to be included in the monolith. + +**Current value for `target_cpu = "arm64"`:** `["//build/images:config-data", "//build/images:shell-commands", "//src/sys/component_index:component_index"]` + +From //products/core.gni:12 + +**Overridden from the default:** `[]` + +From //build/images/BUILD.gn:36 + +**Current value for `target_cpu = "x64"`:** `["//build/images:config-data", "//build/images:shell-commands", "//src/sys/component_index:component_index"]` + +From //products/core.gni:12 + +**Overridden from the default:** `[]` + +From //build/images/BUILD.gn:36 + +### host_cpu + +**Current value (from the default):** `"x64"` + +### magma_enable_tracing +Enable this to include fuchsia tracing capability **Current value (from the default):** `true` -From //third_party/skia/BUILD.gn:39 +From //garnet/lib/magma/gnbuild/magma.gni:17 -### vbmeta_b_partition +### skia_enable_pdf + +**Current value for `target_cpu = "arm64"`:** `false` + +From //.gn:25 + +**Overridden from the default:** `true` + +From //third_party/skia/BUILD.gn:46 + +**Current value for `target_cpu = "x64"`:** `false` + +From //.gn:25 + +**Overridden from the default:** `true` + +From //third_party/skia/BUILD.gn:46 + +### use_ccache +Set to true to enable compiling with ccache + +**Current value (from the default):** `false` + +From //build/toolchain/ccache.gni:9 + +### dart_core_snapshot_kind +Controls the kind of core snapshot linked into the standalone VM. Using a +core-jit snapshot breaks the ability to change various flags that affect +code generation. + +**Current value (from the default):** `"core"` + +From //third_party/dart/runtime/runtime_args.gni:56 + +### debian_guest_earlycon + +**Current value (from the default):** `false` + +From //src/virtualization/packages/debian_guest/BUILD.gn:10 + +### ledger_sync_credentials_file **Current value (from the default):** `""` -From //build/images/BUILD.gn:43 +From //src/ledger/bin/testing/sync_params.gni:6 -### skia_use_libjpeg_turbo +### skia_lex -**Current value (from the default):** `true` +**Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:28 +From //third_party/skia/BUILD.gn:53 -### sdk_dirs -The directories to search for parts of the SDK. +### target_os -By default, we search the public directories for the various layers. -In the future, we'll search a pre-built SDK as well. +**Current value (from the default):** `""` -**Current value (from the default):** `["//garnet/public", "//peridot/public", "//topaz/public"]` +### auto_login_to_guest +Whether basemgr should automatically login as a persistent guest user. -From //build/config/fuchsia/sdk.gni:10 +**Current value (from the default):** `false` -### skia_enable_gpu +From //peridot/bin/basemgr/BUILD.gn:13 -**Current value (from the default):** `true` +### blobfs_minimum_data_bytes +Number of bytes to reserve for data in the fs. This is in addition +to what is reserved, if any, for the inodes. Data bytes constitutes +"usable" space of the fs. +An empty string does not reserve any additional space than minimum +required for the filesystem. -From //third_party/skia/gn/skia.gni:11 +**Current value (from the default):** `""` -### skia_use_fontconfig +From //build/images/fvm.gni:36 -**Current value for `target_cpu = "arm64"`:** `false` +### skia_use_fonthost_mac -From //.gn:28 +**Current value (from the default):** `false` -**Overridden from the default:** `false` +From //third_party/skia/BUILD.gn:25 -From //third_party/skia/BUILD.gn:24 +### fastboot_product -**Current value for `target_cpu = "x64"`:** `false` +**Current value (from the default):** `""` -From //.gn:28 +From //build/images/BUILD.gn:47 -**Overridden from the default:** `false` +### linux_guest_extras_path -From //third_party/skia/BUILD.gn:24 +**Current value (from the default):** `""` -### scenic_enable_vulkan_validation -Include the vulkan validation layers in scenic. +From //src/virtualization/packages/linux_guest/BUILD.gn:13 + +### skia_use_libpng **Current value (from the default):** `true` -From //garnet/bin/ui/BUILD.gn:40 +From //third_party/skia/BUILD.gn:29 -### skia_use_metal +### linux_runner_ip +Default values for the guest network configuration. + +These are currently hard-coded to match what is setup in the virtio-net +device. + +See //src/virtualization/bin/vmm/device/virtio_net.cc for more details. + +**Current value (from the default):** `"10.0.0.2"` + +From //src/virtualization/packages/biscotti_guest/linux_runner/BUILD.gn:17 + +### shell_enable_vulkan **Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:36 +From //third_party/flutter/shell/config.gni:6 -### crashpad_dependencies +### skia_use_icu -**Current value (from the default):** `"fuchsia"` +**Current value (from the default):** `false` -From [//third_party/crashpad/build/crashpad_buildconfig.gni:22](https://chromium.googlesource.com/crashpad/crashpad/+/d221b7cadab5f00c6999f060a5bcb0896e25c7b7/build/crashpad_buildconfig.gni#22) +From //third_party/skia/gn/skia.gni:13 -### extra_variants -Additional variant toolchain configs to support. -This is just added to [`known_variants`](#known_variants). +### board_packages + +**Current value for `target_cpu = "arm64"`:** `[]` + +From //boards/arm64.gni:9 + +**Overridden from the default:** `[]` + +From //BUILD.gn:40 + +**Current value for `target_cpu = "x64"`:** `[]` + +From //boards/x64.gni:9 + +**Overridden from the default:** `[]` + +From //BUILD.gn:40 + +### select_variant_canonical +*This should never be set as a build argument.* +It exists only to be set in `toolchain_args`. +See //build/toolchain/clang_toolchain.gni for details. **Current value (from the default):** `[]` -From //build/config/BUILDCONFIG.gn:403 +From //build/config/BUILDCONFIG.gn:631 -### full_dart_sdk +### dart_use_crashpad +Whether to link Crashpad library for crash handling. Only supported on +Windows for now. **Current value (from the default):** `false` -From //third_party/flutter/BUILD.gn:14 +From //third_party/dart/runtime/runtime_args.gni:51 -### host_os +### fuchsia_use_vulkan +Consolidated build toggle for use of Vulkan across Fuchsia -**Current value (from the default):** `"linux"` +**Current value (from the default):** `true` -### clang_lib_dir -Path to Clang lib directory. +From //build/vulkan/config.gni:7 -**Current value (from the default):** `"../build/buildtools/linux-x64/clang/lib"` +### fvm_image_size +The size in bytes of the FVM partition image to create. Normally this is +computed to be just large enough to fit the blob and data images. The +default value is "", which means to size based on inputs. Specifying a size +that is too small will result in build failure. -From //build/images/manifest.gni:19 +**Current value (from the default):** `""` -### dart_component_kind -Allow for deduping the VM between standalone, flutter_runner and dart_runner. +From //build/images/fvm.gni:12 + +### cache_package_labels +If you add package labels to this variable, the packages will be included +in the 'cache' package set, which represents an additional set of software +that is made available on disk immediately after paving and in factory +flows. These packages are not updated with an OTA, but instead are updated +ephemerally. This cache of software can be evicted by the system if storage +pressure arises or other policies indicate. -**Current value (from the default):** `"shared_library"` +**Current value for `target_cpu = "arm64"`:** `[]` -From //third_party/dart/runtime/runtime_args.gni:78 +From //products/core.gni:25 -### enable_input_subsystem +**Overridden from the default:** `[]` -**Current value (from the default):** `true` +From //BUILD.gn:22 -From //garnet/bin/ui/scenic/BUILD.gn:14 +**Current value for `target_cpu = "x64"`:** `[]` -### select_variant_canonical -*This should never be set as a build argument.* -It exists only to be set in `toolchain_args`. -See //build/toolchain/clang_toolchain.gni for details. +From //products/core.gni:25 -**Current value (from the default):** `[]` +**Overridden from the default:** `[]` -From //build/config/BUILDCONFIG.gn:631 +From //BUILD.gn:22 -### support_insecure_wep -Enable WEP support. -Use temporarily for testing driver WEP support. -This build flag will be replaced by providing -dedicated WEP specific WLAN targets which products -can depend on. +### current_os -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //src/connectivity/wlan/lib/wep_deprecated/BUILD.gn:15 +### allow_layer_guesswork +Does nothing. -### use_ccache -Set to true to enable compiling with ccache +Will be removed after 30 April 2019. **Current value (from the default):** `false` -From //build/toolchain/ccache.gni:9 +From //BUILD.gn:39 -### using_fuchsia_sdk -Only set in buildroots where targets configure themselves for use with the -Fuchsia SDK +### dart_space_dart +Whether experimental space dart mode is enabled for Dart applications. **Current value (from the default):** `false` -From //build/fuchsia/sdk.gni:8 - -### blobfs_maximum_bytes -In addition to reserving space for inodes and data, fs needs additional -space for maintaining some internal data structures. So the -space required to reserve inodes and data may exceed sum of the space -needed for inodes and data. -maximum_bytes puts an upper bound on the total bytes reserved for inodes, -data bytes and reservation for all other internal fs metadata. -An empty string does not put any upper bound. A filesystem may -reserve few blocks required for its operations. - -**Current value (from the default):** `""` +From [//topaz/runtime/dart/dart_component.gni:41](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#41) -From //build/images/fvm.gni:47 +### enable_frame_pointers +Controls whether the compiler emits full stack frames for function calls. +This reduces performance but increases the ability to generate good +stack traces, especially when we have bugs around unwind table generation. +It applies only for Fuchsia targets (see below where it is unset). -### extra_authorized_keys_file -Additional SSH authorized_keys file to include in the build. -For example: - extra_authorized_keys_file=\"$HOME/.ssh/id_rsa.pub\" +TODO(ZX-2361): Theoretically unwind tables should be good enough so we can +remove this option when the issues are addressed. -**Current value (from the default):** `""` +**Current value (from the default):** `true` -From [//third_party/openssh-portable/fuchsia/developer-keys/BUILD.gn:11](https://fuchsia.googlesource.com/third_party/openssh-portable/+/62f4ca0d82fa50a3405703837031a15c36dccdd4/fuchsia/developer-keys/BUILD.gn#11) +From //build/config/BUILD.gn:19 -### magma_build_root +### skia_use_fixed_gamma_text -**Current value (from the default):** `"//garnet/lib/magma"` +**Current value (from the default):** `false` -From //garnet/lib/magma/gnbuild/magma.gni:8 +From //third_party/skia/BUILD.gn:27 -### skia_enable_discrete_gpu +### auto_update_packages +Whether the component loader should automatically update packages. **Current value (from the default):** `true` -From //third_party/skia/BUILD.gn:44 +From //garnet/bin/sysmgr/BUILD.gn:10 -### skia_enable_fontmgr_win_gdi +### blobfs_minimum_inodes +minimum_inodes is the number of inodes to reserve for the fs +An empty string does not reserve any additional space than minimum +required for the filesystem. -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //third_party/skia/BUILD.gn:73 +From //build/images/fvm.gni:28 -### zircon_r_partition +### exclude_kernel_service +Whether the VM includes the kernel service in all modes (debug, release, +product). -**Current value (from the default):** `""` +**Current value (from the default):** `false` -From //build/images/BUILD.gn:41 +From //third_party/dart/runtime/runtime_args.gni:88 -### dart_force_product -Forces all Dart and Flutter apps to build in a specific configuration that -we use to build products. +### have_secmem_ta +The secmem TA must be obtained elsewhere and put into the firmware +directory. **Current value (from the default):** `false` -From [//topaz/runtime/dart/config.gni:10](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/config.gni#10) +From //garnet/bin/sysmem-assistant/BUILD.gn:44 -### expat_build_root +### rust_warnings +Sets whether Rust compiler warnings cause errors or not. +"deny" will make all warnings into errors, while "allow" will ignore warnings -**Current value (from the default):** `"//third_party/expat"` +**Current value (from the default):** `"deny"` -From //garnet/lib/magma/gnbuild/magma.gni:9 +From //build/rust/config.gni:27 -### gocache_dir - gocache_dir - Directory GOCACHE environment variable will be set to. This directory - will have build and test results cached, and is safe to be written to - concurrently. If overridden, this directory must be a full path. +### thinlto_cache_dir +ThinLTO cache directory path. -**Current value (from the default):** `"/b/s/w/ir/k/root_build_dir/.gocache"` +**Current value (from the default):** `"linux_x64/thinlto-cache"` -From //build/go/go_build.gni:16 +From //build/config/lto/config.gni:16 -### linux_guest_extras_path +### base_package_labels +If you add package labels to this variable, the packages will be included in +the 'base' package set, which represents the set of packages that are part +of an OTA. These pacakages are updated as an atomic unit during an OTA +process and are immutable and are a superset of the TCB (Trusted Computing +Base) for a product. These packages are never evicted by the system. -**Current value (from the default):** `""` +**Current value for `target_cpu = "arm64"`:** `["//garnet/packages/config:kernel_crash_checker", "//garnet/packages/prod:crashpad_agent", "//garnet/packages/prod:feedback_agent", "//garnet/packages/prod:kernel_crash_checker", "//garnet/packages/products:base", "//bundles:kitchen_sink"]` -From //src/virtualization/packages/linux_guest/BUILD.gn:13 +From //root_build_dir/args.gn:3 -### skia_qt_path +**Overridden from the default:** `[]` -**Current value (from the default):** `""` +From //BUILD.gn:14 -From //third_party/skia/BUILD.gn:50 +**Current value for `target_cpu = "x64"`:** `["//garnet/packages/config:kernel_crash_checker", "//garnet/packages/prod:crashpad_agent", "//garnet/packages/prod:feedback_agent", "//garnet/packages/prod:kernel_crash_checker", "//garnet/packages/products:base", "//bundles:kitchen_sink"]` -### cloudkms_key_dir +From //root_build_dir/args.gn:3 -**Current value (from the default):** `"projects/fuchsia-infra/locations/global/keyRings/test-secrets/cryptoKeys"` +**Overridden from the default:** `[]` -From //build/testing/secret_spec.gni:8 +From //BUILD.gn:14 -### crashpad_use_boringssl_for_http_transport_socket -TODO(scottmg): https://crbug.com/crashpad/266 fuchsia:DX-690: BoringSSL -was removed from the Fuchsia SDK. Re-enable it when we have a way to acquire -a BoringSSL lib again. +### blobfs_maximum_bytes +In addition to reserving space for inodes and data, fs needs additional +space for maintaining some internal data structures. So the +space required to reserve inodes and data may exceed sum of the space +needed for inodes and data. +maximum_bytes puts an upper bound on the total bytes reserved for inodes, +data bytes and reservation for all other internal fs metadata. +An empty string does not put any upper bound. A filesystem may +reserve few blocks required for its operations. -**Current value (from the default):** `true` +**Current value (from the default):** `""` -From [//third_party/crashpad/util/net/tls.gni:21](https://chromium.googlesource.com/crashpad/crashpad/+/d221b7cadab5f00c6999f060a5bcb0896e25c7b7/util/net/tls.gni#21) +From //build/images/fvm.gni:47 -### dart_version_git_info -Whether the Dart binary version string should include the git hash and -git commit time. +### skia_tools_require_resources -**Current value (from the default):** `true` +**Current value (from the default):** `false` -From //third_party/dart/runtime/runtime_args.gni:60 +From //third_party/skia/BUILD.gn:60 -### current_cpu +### skia_version **Current value (from the default):** `""` -### max_fvm_size -Maximum allowable size for the FVM in a release mode build -Zero means no limit +From //third_party/flutter/shell/version/version.gni:8 -**Current value (from the default):** `"0"` +### use_prebuilt_dart_sdk +Whether to use the prebuilt Dart SDK for everything. +When setting this to false, the preubilt Dart SDK will not be used in +situations where the version of the SDK matters, but may still be used as an +optimization where the version does not matter. -From //build/images/max_fvm_size.gni:8 +**Current value (from the default):** `true` -### scenic_ignore_vsync +From //build/dart/dart.gni:15 + +### dart_use_fallback_root_certificates +Whether to fall back to built-in root certificates when they cannot be +verified at the operating system level. **Current value (from the default):** `false` -From //garnet/lib/ui/gfx/BUILD.gn:8 +From //third_party/dart/runtime/runtime_args.gni:43 -### use_goma -Set to true to enable distributed compilation using Goma. +### rustc_prefix +Sets a custom base directory for `rustc` and `cargo`. +This can be used to test custom Rust toolchains. -**Current value (from the default):** `false` +**Current value (from the default):** `"//buildtools/linux-x64/rust/bin"` -From //build/toolchain/goma.gni:9 +From //build/rust/config.gni:17 -### skia_use_freetype +### skia_enable_fontmgr_custom -**Current value (from the default):** `true` +**Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:26 +From //third_party/skia/BUILD.gn:68 -### build_info_version -Logical version of the current build. If not set, defaults to the timestamp -of the most recent update. +### skia_use_angle -**Current value (from the default):** `""` +**Current value (from the default):** `false` -From //garnet/BUILD.gn:28 +From //third_party/skia/BUILD.gn:21 -### kernel_cmdline_args -List of kernel command line arguments to bake into the boot image. -See also //zircon/docs/kernel_cmdline.md and -[`devmgr_config`](#devmgr_config). +### skia_use_expat -**Current value (from the default):** `[]` +**Current value for `target_cpu = "arm64"`:** `false` -From //build/images/BUILD.gn:480 +From //.gn:27 -### skia_enable_vulkan_debug_layers +**Overridden from the default:** `true` -**Current value (from the default):** `false` +From //third_party/skia/BUILD.gn:23 -From //third_party/skia/BUILD.gn:49 +**Current value for `target_cpu = "x64"`:** `false` -### skia_use_piex +From //.gn:27 -**Current value (from the default):** `true` +**Overridden from the default:** `true` -From //third_party/skia/BUILD.gn:33 +From //third_party/skia/BUILD.gn:23 -### use_prebuilt_dart_sdk -Whether to use the prebuilt Dart SDK for everything. -When setting this to false, the preubilt Dart SDK will not be used in -situations where the version of the SDK matters, but may still be used as an -optimization where the version does not matter. +### skia_use_fontconfig -**Current value (from the default):** `true` +**Current value for `target_cpu = "arm64"`:** `false` -From //build/dart/dart.gni:15 +From //.gn:28 -### zircon_a_partition -arguments to fx flash script +**Overridden from the default:** `false` -**Current value (from the default):** `""` +From //third_party/skia/BUILD.gn:24 -From //build/images/BUILD.gn:39 +**Current value for `target_cpu = "x64"`:** `false` -### minfs_maximum_bytes +From //.gn:28 -**Current value (from the default):** `""` +**Overridden from the default:** `false` -From //build/images/fvm.gni:48 +From //third_party/skia/BUILD.gn:24 -### skia_enable_nvpr +### skia_use_wuffs **Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:43 - -### skia_use_fixed_gamma_text +From //third_party/skia/BUILD.gn:34 -**Current value (from the default):** `false` +### universal_variants -From //third_party/skia/BUILD.gn:27 +**Current value (from the default):** +``` +[{ + configs = [] + name = "release" + toolchain_args = { + is_debug = false +} +}] +``` -### universe_package_labels -If you add package labels to this variable, the packages will be included -in the 'universe' package set, which represents all software that is -produced that is to be published to a package repository or to the SDK by -the build. The build system ensures that the universe package set includes -the base and cache package sets, which means you do not need to redundantly -include those labels in this variable. +From //build/config/BUILDCONFIG.gn:423 -**Current value for `target_cpu = "arm64"`:** `["//garnet/packages/prod:vboot_reference", "//bundles:tools"]` +### icu_use_data_file +Tells icu to load an external data file rather than rely on the icudata +being linked directly into the binary. -From //products/core.gni:27 +This flag is a bit confusing. As of this writing, icu.gyp set the value to +0 but common.gypi sets the value to 1 for most platforms (and the 1 takes +precedence). -**Overridden from the default:** `[]` +TODO(GYP) We'll probably need to enhance this logic to set the value to +true or false in similar circumstances. -From //BUILD.gn:30 +**Current value (from the default):** `true` -**Current value for `target_cpu = "x64"`:** `["//garnet/packages/prod:vboot_reference", "//bundles:tools"]` +From [//third_party/icu/config.gni:15](https://fuchsia.googlesource.com/third_party/icu/+/65e4aa3b8cc6b41cf31136b9474a9c97bdc27739/config.gni#15) -From //products/core.gni:27 +### rust_toolchain_triple_suffix +Sets the fuchsia toolchain target triple suffix (after arch) -**Overridden from the default:** `[]` +**Current value (from the default):** `"fuchsia"` -From //BUILD.gn:30 +From //build/rust/config.gni:23 -### linux_runner_gateway +### skia_enable_skpicture -**Current value (from the default):** `"10.0.0.1"` +**Current value (from the default):** `true` -From //src/virtualization/packages/biscotti_guest/linux_runner/BUILD.gn:18 +From //third_party/skia/BUILD.gn:48 -### skia_enable_fontmgr_android +### vbmeta_b_partition -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //third_party/skia/BUILD.gn:70 +From //build/images/BUILD.gn:43 -### system_package_key -The package key to use for signing Fuchsia packages made by the -`package()` template (and the `system_image` package). If this -doesn't exist yet when it's needed, it will be generated. New -keys can be generated with the `pm -k FILE genkey` host command. +### zircon_args +[Zircon GN build arguments](../../../zircon/docs/gen/build_arguments.md). +The default passes through GOMA settings and +[`select_variant`](#select_variant) shorthand selectors. +**Only set this if you want to wipe out all the defaults that +propagate from Fuchsia GN to Zircon GN.** The default value +folds in [`zircon_extra_args`](#zircon_extra_args), so usually +it's better to just set `zircon_extra_args` and leave `zircon_args` alone. +Any individual Zircon build argument set in `zircon_extra_args` will +silently clobber the default value shown here. -**Current value (from the default):** `"//build/development.key"` +**Current value (from the default):** +``` +{ + default_deps = [":legacy-arm64"] + enable_kernel_debugging_features = false + enable_netsvc_debugging_features = false + goma_dir = "/home/swarming/goma" + use_goma = false + variants = [] +} +``` -From //build/package.gni:18 +From //build/config/fuchsia/zircon.gni:46 -### create_kernel_service_snapshot +### active_partition -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //third_party/dart/runtime/runtime_args.gni:101 +From //build/images/BUILD.gn:45 -### dart_use_fallback_root_certificates -Whether to fall back to built-in root certificates when they cannot be -verified at the operating system level. +### skia_enable_particles -**Current value (from the default):** `false` +**Current value (from the default):** `true` -From //third_party/dart/runtime/runtime_args.gni:43 +From //third_party/skia/modules/particles/BUILD.gn:7 -### have_secmem_ta -The secmem TA must be obtained elsewhere and put into the firmware -directory. +### skia_generate_workarounds **Current value (from the default):** `false` -From //garnet/bin/sysmem-assistant/BUILD.gn:44 +From //third_party/skia/BUILD.gn:52 -### prebuilt_dart_sdk -Directory containing prebuilt Dart SDK. -This must have in its `bin/` subdirectory `gen_snapshot.OS-CPU` binaries. -Set to empty for a local build. +### skia_skqp_global_error_tolerance -**Current value (from the default):** `"//topaz/tools/prebuilt-dart-sdk/linux-x64"` +**Current value (from the default):** `0` -From //build/dart/dart.gni:9 +From //third_party/skia/BUILD.gn:55 -### skia_enable_nima +### warn_on_sdk_changes +Whether to only warn when an SDK has been modified. +If false, any unacknowledged SDK change will cause a build failure. **Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:45 +From //build/sdk/config.gni:8 -### use_vbmeta -If true, then the paving script will pave vbmeta images to the target device. -It is assumed that the vbmeta image will be created by the custom_signing_script. +### zircon_enable_kernel_debugging_features +Whether to include various features (non-shipping, insecure, etc.) in the +kernel or netsvc builds. -**Current value (from the default):** `false` +**Current value for `target_cpu = "arm64"`:** `false` -From //build/images/custom_signing.gni:16 +From //products/core.gni:9 -### flutter_aot_sharing_basis -When AOT compiling, an app will reference objects in the sharing basis's -snapshot when available instead of writing the objects in its own snapshot. -The snapshot of the sharing basis app will be included in every other app's -package and deduplicated by blobfs. +**Overridden from the default:** `false` -**Current value (from the default):** `""` +From //build/config/fuchsia/zircon.gni:32 -From [//topaz/runtime/dart/dart_component.gni:27](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#27) +**Current value for `target_cpu = "x64"`:** `false` -### flutter_space_dart -Whether experimental space dart mode is enabled for Flutter applications. +From //products/core.gni:9 -**Current value (from the default):** `false` +**Overridden from the default:** `false` -From [//topaz/runtime/dart/dart_component.gni:38](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#38) +From //build/config/fuchsia/zircon.gni:32 -### linux_runner_netmask +### concurrent_rust_jobs +Maximum number of Rust processes to run in parallel. -**Current value (from the default):** `"255.255.255.0"` +We run multiple rustc jobs in parallel, each of which can cause significant +amount of memory, especially when using LTO. To avoid out-of-memory errors +we explicitly reduce the number of jobs. -From //src/virtualization/packages/biscotti_guest/linux_runner/BUILD.gn:19 +**Current value (from the default):** `14` -### skia_use_icu +From //build/rust/BUILD.gn:15 -**Current value (from the default):** `false` +### framework_packages -From //third_party/skia/gn/skia.gni:13 +**Current value (from the default):** `["collection", "flutter", "meta", "typed_data", "vector_math"]` -### warn_on_sdk_changes -Whether to only warn when an SDK has been modified. -If false, any unacknowledged SDK change will cause a build failure. +From [//topaz/runtime/flutter_runner/prebuilt_framework.gni:8](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/flutter_runner/prebuilt_framework.gni#8) -**Current value (from the default):** `false` +### universe_package_labels +If you add package labels to this variable, the packages will be included +in the 'universe' package set, which represents all software that is +produced that is to be published to a package repository or to the SDK by +the build. The build system ensures that the universe package set includes +the base and cache package sets, which means you do not need to redundantly +include those labels in this variable. -From //build/sdk/config.gni:8 +**Current value for `target_cpu = "arm64"`:** `["//garnet/packages/prod:vboot_reference", "//bundles:tools"]` -### concurrent_dart_jobs -Maximum number of Dart processes to run in parallel. +From //products/core.gni:27 -Dart analyzer uses a lot of memory which may cause issues when building -with many parallel jobs e.g. when using goma. To avoid out-of-memory -errors we explicitly reduce the number of jobs. +**Overridden from the default:** `[]` -**Current value (from the default):** `16` +From //BUILD.gn:30 -From //build/dart/BUILD.gn:15 +**Current value for `target_cpu = "x64"`:** `["//garnet/packages/prod:vboot_reference", "//bundles:tools"]` -### embedder_for_target -By default, the dynamic library target exposing the embedder API is only -built for the host. The reasoning is that platforms that have target -definitions would not need an embedder API because an embedder -implementation is already provided for said target. This flag allows tbe -builder to obtain a shared library exposing the embedder API for alternative -embedder implementations. +From //products/core.gni:27 -**Current value (from the default):** `false` +**Overridden from the default:** `[]` -From //third_party/flutter/shell/platform/embedder/embedder.gni:12 +From //BUILD.gn:30 -### skia_use_harfbuzz +### dart_debug_optimization_level +The optimization level to use for debug builds. Defaults to 0 for builds with +code coverage enabled. -**Current value (from the default):** `true` +**Current value (from the default):** `"2"` -From //third_party/skia/gn/skia.gni:14 +From //third_party/dart/runtime/runtime_args.gni:36 -### flutter_profile +### minfs_maximum_bytes + +**Current value (from the default):** `""` + +From //build/images/fvm.gni:48 + +### skia_enable_skshaper **Current value (from the default):** `true` -From [//topaz/runtime/dart/dart_component.gni:32](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#32) +From //third_party/skia/modules/skshaper/BUILD.gn:9 ### symbol_level How many symbols to include in the build. This affects the performance of @@ -1689,310 +1694,342 @@ appear when using this level. From //build/config/compiler.gni:13 -### crash_diagnostics_dir -Clang crash reports directory path. Use empty path to disable altogether. - -**Current value (from the default):** `"//root_build_dir/clang-crashreports"` - -From //build/config/BUILD.gn:9 - -### dart_core_snapshot_kind -Controls the kind of core snapshot linked into the standalone VM. Using a -core-jit snapshot breaks the ability to change various flags that affect -code generation. - -**Current value (from the default):** `"core"` +### thinlto_jobs +Number of parallel ThinLTO jobs. -From //third_party/dart/runtime/runtime_args.gni:56 +**Current value (from the default):** `8` -### enable_mdns_trace -Enables the tracing feature of mdns, which can be turned on using -"mdns-util verbose". +From //build/config/lto/config.gni:13 -**Current value (from the default):** `false` +### fuchsia_vulkan_sdk +Path to Fuchsia Vulkan SDK -From //src/connectivity/network/mdns/service/BUILD.gn:15 +**Current value (from the default):** `"//third_party/vulkan_loader_and_validation_layers"` -### zedboot_devmgr_config -List of arguments to populate /boot/config/devmgr in the Zedboot image. +From //build/vulkan/config.gni:10 -**Current value (from the default):** `["netsvc.netboot=true"]` +### magma_python_path -From //build/images/zedboot/BUILD.gn:26 +**Current value (from the default):** `"/b/s/w/ir/k/third_party/mako"` -### enable_netboot -Whether to build the netboot zbi by default. +From //garnet/lib/magma/gnbuild/magma.gni:14 -You can still build //build/images:netboot explicitly even if enable_netboot is false. +### enable_gfx_subsystem -**Current value for `target_cpu = "arm64"`:** `false` +**Current value (from the default):** `true` -From //products/core.gni:7 +From //garnet/bin/ui/scenic/BUILD.gn:12 -**Overridden from the default:** `false` +### msd_arm_enable_cache_coherency +With this flag set the system tries to use cache coherent memory if the +GPU supports it. -From //build/images/BUILD.gn:33 +**Current value (from the default):** `true` -**Current value for `target_cpu = "x64"`:** `false` +From //garnet/drivers/gpu/msd-arm-mali/src/BUILD.gn:13 -From //products/core.gni:7 +### use_scudo +TODO(davemoore): Remove this entire mechanism once standalone scudo is the +default (DNO-442) +Enable the [Scudo](https://llvm.org/docs/ScudoHardenedAllocator.html) +memory allocator. -**Overridden from the default:** `false` +**Current value (from the default):** `false` -From //build/images/BUILD.gn:33 +From //build/config/scudo/scudo.gni:10 -### minfs_minimum_data_bytes +### build_libvulkan_img_rgx +Targets that will be built as IMG vulkan ICDS. -**Current value (from the default):** `""` +**Current value (from the default):** `[]` -From //build/images/fvm.gni:37 +From //garnet/lib/magma/gnbuild/magma.gni:47 -### signed_image +### dart_version_git_info +Whether the Dart binary version string should include the git hash and +git commit time. -**Current value (from the default):** `false` +**Current value (from the default):** `true` -From //build/images/BUILD.gn:46 +From //third_party/dart/runtime/runtime_args.gni:60 -### zircon_enable_netsvc_debugging_features +### enable_input_subsystem -**Current value for `target_cpu = "arm64"`:** `false` +**Current value (from the default):** `true` -From //products/core.gni:10 +From //garnet/bin/ui/scenic/BUILD.gn:14 -**Overridden from the default:** `false` +### scenic_enable_vulkan_validation +Include the vulkan validation layers in scenic. -From //build/config/fuchsia/zircon.gni:33 +**Current value (from the default):** `true` -**Current value for `target_cpu = "x64"`:** `false` +From //garnet/bin/ui/BUILD.gn:40 -From //products/core.gni:10 +### skia_enable_tools -**Overridden from the default:** `false` +**Current value (from the default):** `false` -From //build/config/fuchsia/zircon.gni:33 +From //third_party/skia/gn/skia.gni:12 -### meta_package_labels -A list of labels for meta packages to be included in the monolith. +### clang_lib_dir +Path to Clang lib directory. -**Current value for `target_cpu = "arm64"`:** `["//build/images:config-data", "//build/images:shell-commands", "//src/sys/component_index:component_index"]` +**Current value (from the default):** `"../build/buildtools/linux-x64/clang/lib"` -From //products/core.gni:12 +From //build/images/manifest.gni:19 -**Overridden from the default:** `[]` +### crashpad_dependencies -From //build/images/BUILD.gn:36 +**Current value (from the default):** `"fuchsia"` -**Current value for `target_cpu = "x64"`:** `["//build/images:config-data", "//build/images:shell-commands", "//src/sys/component_index:component_index"]` +From [//third_party/crashpad/build/crashpad_buildconfig.gni:22](https://chromium.googlesource.com/crashpad/crashpad/+/d221b7cadab5f00c6999f060a5bcb0896e25c7b7/build/crashpad_buildconfig.gni#22) -From //products/core.gni:12 +### use_mock_magma -**Overridden from the default:** `[]` +**Current value (from the default):** `false` -From //build/images/BUILD.gn:36 +From [//third_party/mesa/src/intel/vulkan/BUILD.gn:25](https://fuchsia.googlesource.com/third_party/mesa/+/232bf12b10899d335a3fe69d947a738541ace7d3/src/intel/vulkan/BUILD.gn#25) -### base_package_labels -If you add package labels to this variable, the packages will be included in -the 'base' package set, which represents the set of packages that are part -of an OTA. These pacakages are updated as an atomic unit during an OTA -process and are immutable and are a superset of the TCB (Trusted Computing -Base) for a product. These packages are never evicted by the system. +### always_zedboot +Build boot images that prefer Zedboot over local boot (only for EFI). -**Current value for `target_cpu = "arm64"`:** `["//garnet/packages/config:kernel_crash_checker", "//garnet/packages/prod:crashpad_agent", "//garnet/packages/prod:feedback_agent", "//garnet/packages/prod:kernel_crash_checker", "//garnet/packages/products:base", "//bundles:kitchen_sink"]` +**Current value (from the default):** `false` -From //root_build_dir/args.gn:3 +From //build/images/BUILD.gn:809 -**Overridden from the default:** `[]` +### skia_use_piex -From //BUILD.gn:14 +**Current value (from the default):** `true` -**Current value for `target_cpu = "x64"`:** `["//garnet/packages/config:kernel_crash_checker", "//garnet/packages/prod:crashpad_agent", "//garnet/packages/prod:feedback_agent", "//garnet/packages/prod:kernel_crash_checker", "//garnet/packages/products:base", "//bundles:kitchen_sink"]` +From //third_party/skia/BUILD.gn:33 -From //root_build_dir/args.gn:3 +### magma_enable_developer_build +Enable this to have the msd include a suite of tests and invoke them +automatically when the driver starts. -**Overridden from the default:** `[]` +**Current value (from the default):** `false` -From //BUILD.gn:14 +From //garnet/lib/magma/gnbuild/magma.gni:21 -### build_libvulkan_img_rgx -Targets that will be built as IMG vulkan ICDS. +### skia_use_x11 -**Current value (from the default):** `[]` +**Current value for `target_cpu = "arm64"`:** `false` -From //garnet/lib/magma/gnbuild/magma.gni:47 +From //.gn:31 -### debian_guest_earlycon +**Overridden from the default:** `false` -**Current value (from the default):** `false` +From //third_party/skia/BUILD.gn:38 -From //src/virtualization/packages/debian_guest/BUILD.gn:10 +**Current value for `target_cpu = "x64"`:** `false` -### minfs_minimum_inodes +From //.gn:31 -**Current value (from the default):** `""` +**Overridden from the default:** `false` -From //build/images/fvm.gni:29 +From //third_party/skia/BUILD.gn:38 -### skia_enable_tools +### support_insecure_wep +Enable WEP support. +Use temporarily for testing driver WEP support. +This build flag will be replaced by providing +dedicated WEP specific WLAN targets which products +can depend on. **Current value (from the default):** `false` -From //third_party/skia/gn/skia.gni:12 +From //src/connectivity/wlan/lib/wep_deprecated/BUILD.gn:15 -### build_libvulkan_arm_mali -Targets that will be built as mali vulkan ICDS. +### update_kernels +(deprecated) List of kernel images to include in the update (OTA) package. +If no list is provided, all built kernels are included. The names in the +list are strings that must match the filename to be included in the update +package. **Current value (from the default):** `[]` -From //garnet/lib/magma/gnbuild/magma.gni:38 +From //build/images/BUILD.gn:498 -### data_partition_manifest -Path to manifest file containing data to place into the initial /data -partition. +### use_vboot +Use vboot images -**Current value (from the default):** `""` +**Current value (from the default):** `false` -From //build/images/BUILD.gn:28 +From //build/images/boot.gni:11 -### devmgr_config -List of arguments to add to /boot/config/devmgr. -These come after synthesized arguments to configure blobfs and pkgfs. +### clang_prefix +The default clang toolchain provided by the buildtools. This variable is +additionally consumed by the Go toolchain. -**Current value (from the default):** `[]` +**Current value (from the default):** `"../buildtools/linux-x64/clang/bin"` -From //build/images/BUILD.gn:475 +From //build/config/clang/clang.gni:11 -### magma_enable_developer_build -Enable this to have the msd include a suite of tests and invoke them -automatically when the driver starts. +### enable_value_subsystem **Current value (from the default):** `false` -From //garnet/lib/magma/gnbuild/magma.gni:21 +From //garnet/bin/ui/scenic/BUILD.gn:11 -### skia_enable_flutter_defines +### skia_use_egl -**Current value for `target_cpu = "arm64"`:** `true` +**Current value (from the default):** `false` -From //.gn:24 +From //third_party/skia/BUILD.gn:22 -**Overridden from the default:** `false` +### skia_use_metal -From //third_party/skia/BUILD.gn:17 +**Current value (from the default):** `false` -**Current value for `target_cpu = "x64"`:** `true` +From //third_party/skia/BUILD.gn:36 -From //.gn:24 +### log_startup_sleep -**Overridden from the default:** `false` +**Current value (from the default):** `"30000"` -From //third_party/skia/BUILD.gn:17 +From //garnet/bin/log_listener/BUILD.gn:14 -### board_package_labels -A list of package labels to include in the 'base' package set. Used by the -board definition rather than the product definition. +### skia_compile_processors -**Current value for `target_cpu = "arm64"`:** `["//garnet/packages/prod:drivers", "//garnet/packages/prod:sysmem-assistant"]` +**Current value (from the default):** `false` -From //boards/arm64.gni:11 +From //third_party/skia/BUILD.gn:51 -**Overridden from the default:** `[]` +### toolchain_variant +*This should never be set as a build argument.* +It exists only to be set in `toolchain_args`. +See //build/toolchain/clang_toolchain.gni for details. +This variable is a scope giving details about the current toolchain: + `toolchain_variant.base` + [label] The "base" toolchain for this variant, *often the + right thing to use in comparisons, not `current_toolchain`.* + This is the toolchain actually referenced directly in GN + source code. If the current toolchain is not + `shlib_toolchain` or a variant toolchain, this is the same + as `current_toolchain`. In one of those derivative + toolchains, this is the toolchain the GN code probably + thought it was in. This is the right thing to use in a test + like `toolchain_variant.base == target_toolchain`, rather + rather than comparing against `current_toolchain`. + `toolchain_variant.name` + [string] The name of this variant, as used in `variant` fields + in [`select_variant`](#select_variant) clauses. In the base + toolchain and its `shlib_toolchain`, this is `""`. + `toolchain_variant.suffix` + [string] This is "-${toolchain_variant.name}", "" if name is empty. + `toolchain_variant.is_pic_default` + [bool] This is true in `shlib_toolchain`. +The other fields are the variant's effects as defined in +[`known_variants`](#known_variants). -From //BUILD.gn:34 +**Current value (from the default):** +``` +{ + base = "//build/toolchain/fuchsia:arm64" +} +``` -**Current value for `target_cpu = "x64"`:** `["//garnet/packages/prod:drivers"]` +From //build/config/BUILDCONFIG.gn:74 -From //boards/x64.gni:13 +### escher_use_null_vulkan_config_on_host +Using Vulkan on host (i.e. Linux) is an involved affair that involves +downloading the Vulkan SDK, setting environment variables, and so forth... +all things that are difficult to achieve in a CQ environment. Therefore, +by default we use a stub implementation of Vulkan which fails to create a +VkInstance. This allows everything to build, and also allows running Escher +unit tests which don't require Vulkan. -**Overridden from the default:** `[]` +**Current value (from the default):** `true` -From //BUILD.gn:34 +From //src/ui/lib/escher/BUILD.gn:16 -### dart_debug -Instead of using is_debug, we introduce a different flag for specifying a -Debug build of Dart so that clients can still use a Release build of Dart -while themselves doing a Debug build. +### toolchain_manifests +Manifest files describing target libraries from toolchains. +Can be either // source paths or absolute system paths. -**Current value (from the default):** `false` +**Current value (from the default):** `["/b/s/w/ir/k/buildtools/linux-x64/clang/lib/aarch64-fuchsia.manifest"]` -From //third_party/dart/runtime/runtime_args.gni:9 +From //build/images/manifest.gni:11 -### enable_sketchy_subsystem +### flutter_profile -**Current value (from the default):** `false` +**Current value (from the default):** `true` -From //garnet/bin/ui/scenic/BUILD.gn:13 +From [//topaz/runtime/dart/dart_component.gni:32](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#32) -### zedboot_cmdline_files -Files containing additional kernel command line arguments to bake into -the Zedboot image. The contents of these files (in order) come after any -arguments directly in [`zedboot_cmdline_args`](#zedboot_cmdline_args). -These can be GN `//` source pathnames or absolute system pathnames. +### skia_enable_fontmgr_custom_empty -**Current value (from the default):** `[]` +**Current value (from the default):** `true` -From //build/images/zedboot/BUILD.gn:23 +From //third_party/skia/BUILD.gn:69 -### enable_value_subsystem +### skia_use_zlib -**Current value (from the default):** `false` +**Current value (from the default):** `true` -From //garnet/bin/ui/scenic/BUILD.gn:11 +From //third_party/skia/BUILD.gn:35 -### fvm_image_size -The size in bytes of the FVM partition image to create. Normally this is -computed to be just large enough to fit the blob and data images. The -default value is "", which means to size based on inputs. Specifying a size -that is too small will result in build failure. +### use_prebuilt_ffmpeg +Use a prebuilt ffmpeg binary rather than building it locally. See +//src/media/lib/ffmpeg/README.md for details. This is ignored when +building in variant builds for which there is no prebuilt. In that +case, ffmpeg is always built from source so as to be built with the +selected variant's config. When this is false (either explicitly or in +a variant build) then //third_party/ffmpeg must be in the source tree, +which requires: +`jiri import -name integration third_party/ffmpeg https://fuchsia.googlesource.com/integration` -**Current value (from the default):** `""` +**Current value (from the default):** `true` -From //build/images/fvm.gni:12 +From //src/media/lib/ffmpeg/BUILD.gn:14 -### skia_use_lua +### enable_netboot +Whether to build the netboot zbi by default. -**Current value (from the default):** `false` +You can still build //build/images:netboot explicitly even if enable_netboot is false. -From //third_party/skia/BUILD.gn:31 +**Current value for `target_cpu = "arm64"`:** `false` -### dart_snapshot_kind +From //products/core.gni:7 -**Current value (from the default):** `"kernel"` +**Overridden from the default:** `false` -From //third_party/dart/utils/application_snapshot.gni:14 +From //build/images/BUILD.gn:33 -### skia_enable_fontmgr_custom +**Current value for `target_cpu = "x64"`:** `false` -**Current value (from the default):** `false` +From //products/core.gni:7 -From //third_party/skia/BUILD.gn:68 +**Overridden from the default:** `false` -### dart_use_crashpad -Whether to link Crashpad library for crash handling. Only supported on -Windows for now. +From //build/images/BUILD.gn:33 + +### skia_enable_spirv_validation **Current value (from the default):** `false` -From //third_party/dart/runtime/runtime_args.gni:51 +From //third_party/skia/BUILD.gn:47 -### fuchsia_use_vulkan -Consolidated build toggle for use of Vulkan across Fuchsia +### skia_llvm_lib -**Current value (from the default):** `true` +**Current value (from the default):** `"LLVM"` -From //build/vulkan/config.gni:7 +From //third_party/skia/BUILD.gn:58 -### skia_use_vulkan +### use_goma +Set to true to enable distributed compilation using Goma. -**Current value (from the default):** `true` +**Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:86 +From //build/toolchain/goma.gni:9 -### auto_login_to_guest -Whether basemgr should automatically login as a persistent guest user. +### use_lto +Use link time optimization (LTO). **Current value (from the default):** `false` -From //peridot/bin/basemgr/BUILD.gn:13 +From //build/config/lto/config.gni:7 ### build_info_product Product configuration of the current build @@ -2001,202 +2038,188 @@ Product configuration of the current build From //garnet/BUILD.gn:21 -### concurrent_go_jobs -Maximum number of Go processes to run in parallel. - -**Current value (from the default):** `16` - -From //build/go/BUILD.gn:11 - -### skia_use_expat - -**Current value for `target_cpu = "arm64"`:** `false` - -From //.gn:27 - -**Overridden from the default:** `true` - -From //third_party/skia/BUILD.gn:23 - -**Current value for `target_cpu = "x64"`:** `false` +### prebuilt_framework_path -From //.gn:27 +**Current value (from the default):** `""` -**Overridden from the default:** `true` +From [//topaz/runtime/flutter_runner/prebuilt_framework.gni:6](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/flutter_runner/prebuilt_framework.gni#6) -From //third_party/skia/BUILD.gn:23 +### gocache_dir + gocache_dir + Directory GOCACHE environment variable will be set to. This directory + will have build and test results cached, and is safe to be written to + concurrently. If overridden, this directory must be a full path. -### thinlto_jobs -Number of parallel ThinLTO jobs. +**Current value (from the default):** `"/b/s/w/ir/k/root_build_dir/host_x64/.gocache"` -**Current value (from the default):** `8` +From //build/go/go_build.gni:16 -From //build/config/lto/config.gni:13 +### linux_runner_netmask -### build_libvulkan_vsl_gc -Targets that will be built as verisilicon vulkan ICDS. +**Current value (from the default):** `"255.255.255.0"` -**Current value (from the default):** `[]` +From //src/virtualization/packages/biscotti_guest/linux_runner/BUILD.gn:19 -From //garnet/lib/magma/gnbuild/magma.gni:41 +### skia_enable_gpu -### linux_runner_ip -Default values for the guest network configuration. +**Current value (from the default):** `true` -These are currently hard-coded to match what is setup in the virtio-net -device. +From //third_party/skia/gn/skia.gni:11 -See //src/virtualization/bin/vmm/device/virtio_net.cc for more details. +### engine_version -**Current value (from the default):** `"10.0.0.2"` +**Current value (from the default):** `""` -From //src/virtualization/packages/biscotti_guest/linux_runner/BUILD.gn:17 +From //third_party/flutter/shell/version/version.gni:6 -### sdk_id -Identifier for the Core SDK. +### full_dart_sdk -**Current value (from the default):** `""` +**Current value (from the default):** `false` -From //sdk/config.gni:7 +From //third_party/flutter/BUILD.gn:14 -### zircon_args -[Zircon GN build arguments](../../../zircon/docs/gen/build_arguments.md). -The default passes through GOMA settings and -[`select_variant`](#select_variant) shorthand selectors. -**Only set this if you want to wipe out all the defaults that -propagate from Fuchsia GN to Zircon GN.** The default value -folds in [`zircon_extra_args`](#zircon_extra_args), so usually -it's better to just set `zircon_extra_args` and leave `zircon_args` alone. -Any individual Zircon build argument set in `zircon_extra_args` will -silently clobber the default value shown here. +### enable_dart_analysis +Enable all dart analysis -**Current value (from the default):** -``` -{ - default_deps = [":legacy-arm64"] - enable_kernel_debugging_features = false - enable_netsvc_debugging_features = false - goma_dir = "/home/swarming/goma" - use_goma = false - variants = [] -} -``` +**Current value (from the default):** `true` -From //build/config/fuchsia/zircon.gni:46 +From //build/dart/dart_library.gni:15 -### dart_target_arch -Explicitly set the target architecture to use a simulator. -Available options are: arm, arm64, x64, ia32, and dbc. +### rust_lto +Sets the default LTO type for rustc bulids. -**Current value (from the default):** `"arm64"` +**Current value (from the default):** `"unset"` -From //third_party/dart/runtime/runtime_args.gni:32 +From //build/rust/config.gni:20 -### skia_llvm_lib +### cloudkms_key_dir -**Current value (from the default):** `"LLVM"` +**Current value (from the default):** `"projects/fuchsia-infra/locations/global/keyRings/test-secrets/cryptoKeys"` -From //third_party/skia/BUILD.gn:58 +From //build/testing/secret_spec.gni:8 -### skia_use_sfntly +### dart_platform_bytecode +Whether the VM's platform dill file contains bytecode. -**Current value for `target_cpu = "arm64"`:** `false` +**Current value (from the default):** `false` -From //.gn:30 +From //third_party/dart/runtime/runtime_args.gni:84 -**Overridden from the default:** `false` +### prebuilt_dart_sdk +Directory containing prebuilt Dart SDK. +This must have in its `bin/` subdirectory `gen_snapshot.OS-CPU` binaries. +Set to empty for a local build. -From //third_party/skia/BUILD.gn:64 +**Current value (from the default):** `"//topaz/tools/prebuilt-dart-sdk/linux-x64"` -**Current value for `target_cpu = "x64"`:** `false` +From //build/dart/dart.gni:9 -From //.gn:30 +### persist_logs -**Overridden from the default:** `false` +**Current value (from the default):** `true` -From //third_party/skia/BUILD.gn:64 +From //build/persist_logs.gni:13 -### framework_packages +### dart_default_app +Controls whether dart_app() targets generate JIT or AOT Dart snapshots. +This defaults to JIT, use `fx set <ARCH> --args +'dart_default_app="dart_aot_app"' to switch to AOT. -**Current value (from the default):** `["collection", "flutter", "meta", "typed_data", "vector_math"]` +**Current value (from the default):** `"dart_jit_app"` -From [//topaz/runtime/flutter_runner/prebuilt_framework.gni:8](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/flutter_runner/prebuilt_framework.gni#8) +From [//topaz/runtime/dart/dart_component.gni:19](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#19) -### skia_enable_fontmgr_fuchsia +### zircon_a_partition +arguments to fx flash script -**Current value (from the default):** `true` +**Current value (from the default):** `""` -From //third_party/skia/BUILD.gn:71 +From //build/images/BUILD.gn:39 -### skia_generate_workarounds +### experimental_wlan_client_mlme +Selects the SoftMAC client implementation to use. Choices: + false (default) - C++ Client MLME implementation + true - Rust Client MLME implementation +This argument is temporary until Rust MLME is ready to be used. **Current value (from the default):** `false` -From //third_party/skia/BUILD.gn:52 +From //src/connectivity/wlan/lib/mlme/cpp/BUILD.gn:10 -### magma_enable_tracing -Enable this to include fuchsia tracing capability +### max_log_disk_usage +Controls how many bytes of space on disk are used to persist device logs. +Should be a string value that only contains digits. -**Current value (from the default):** `true` +**Current value (from the default):** `"0"` -From //garnet/lib/magma/gnbuild/magma.gni:17 +From //garnet/bin/log_listener/BUILD.gn:13 -### skia_use_wuffs +### vbmeta_r_partition -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //third_party/skia/BUILD.gn:34 +From //build/images/BUILD.gn:44 -### log_startup_sleep +### zedboot_devmgr_config +List of arguments to populate /boot/config/devmgr in the Zedboot image. -**Current value (from the default):** `"30000"` +**Current value (from the default):** `["netsvc.netboot=true"]` -From //garnet/bin/log_listener/BUILD.gn:14 +From //build/images/zedboot/BUILD.gn:26 -### skia_enable_ccpr +### dart_target_arch +Explicitly set the target architecture to use a simulator. +Available options are: arm, arm64, x64, ia32, and dbc. -**Current value (from the default):** `true` +**Current value (from the default):** `"arm64"` -From //third_party/skia/BUILD.gn:42 +From //third_party/dart/runtime/runtime_args.gni:32 -### skia_use_egl +### flutter_aot_sharing_basis +When AOT compiling, an app will reference objects in the sharing basis's +snapshot when available instead of writing the objects in its own snapshot. +The snapshot of the sharing basis app will be included in every other app's +package and deduplicated by blobfs. -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //third_party/skia/BUILD.gn:22 +From [//topaz/runtime/dart/dart_component.gni:27](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#27) -### zircon_enable_kernel_debugging_features -Whether to include various features (non-shipping, insecure, etc.) in the -kernel or netsvc builds. +### skia_use_dng_sdk **Current value for `target_cpu = "arm64"`:** `false` -From //products/core.gni:9 +From //.gn:26 **Overridden from the default:** `false` -From //build/config/fuchsia/zircon.gni:32 +From //third_party/skia/BUILD.gn:63 **Current value for `target_cpu = "x64"`:** `false` -From //products/core.gni:9 +From //.gn:26 **Overridden from the default:** `false` -From //build/config/fuchsia/zircon.gni:32 +From //third_party/skia/BUILD.gn:63 -### current_os +### custom_signing_script +If non-empty, the given script will be invoked to produce a signed ZBI +image. The given script must accept -z for the input zbi path, and -o for +the output signed zbi path. The path must be in GN-label syntax (i.e. +starts with //). **Current value (from the default):** `""` -### dart_default_app -Controls whether dart_app() targets generate JIT or AOT Dart snapshots. -This defaults to JIT, use `fx set <ARCH> --args -'dart_default_app="dart_aot_app"' to switch to AOT. +From //build/images/custom_signing.gni:12 -**Current value (from the default):** `"dart_jit_app"` +### devmgr_config +List of arguments to add to /boot/config/devmgr. +These come after synthesized arguments to configure blobfs and pkgfs. -From [//topaz/runtime/dart/dart_component.gni:19](https://fuchsia.googlesource.com/topaz/+/e815667d2e8f06051f242e52f04785428bd8e743/runtime/dart/dart_component.gni#19) +**Current value (from the default):** `[]` + +From //build/images/BUILD.gn:475 ### kernel_cmdline_files Files containing additional kernel command line arguments to bake into @@ -2208,177 +2231,145 @@ These can be GN `//` source pathnames or absolute system pathnames. From //build/images/BUILD.gn:486 -### auto_update_packages -Whether the component loader should automatically update packages. +### skia_enable_fontmgr_win_gdi -**Current value (from the default):** `true` +**Current value (from the default):** `false` -From //garnet/bin/sysmgr/BUILD.gn:10 +From //third_party/skia/BUILD.gn:73 -### dart_use_tcmalloc -Whether to link the standalone VM against tcmalloc. The standalone build of -the VM enables this only for Linux builds. +### skia_use_libheif **Current value (from the default):** `false` -From //third_party/dart/runtime/runtime_args.gni:47 +From //third_party/skia/BUILD.gn:37 -### prebuilt_libvulkan_arm_path +### dart_custom_version_for_pub +When this argument is a non-empty string, the version repoted by the +Dart VM will be one that is compatible with pub's interpretation of +semantic version strings. The version string will also include the values +of the argument. In particular the version string will read: -**Current value (from the default):** `""` + "M.m.p-dev.x.x-$(dart_custom_version_for_pub)-$(short_git_hash)" -From //garnet/lib/magma/gnbuild/magma.gni:23 +Where 'M', 'm', and 'p' are the major, minor and patch version numbers, +and 'dev.x.x' is the dev version tag most recently preceeding the current +revision. The short git hash can be omitted by setting +dart_version_git_info=false -### max_log_disk_usage -Controls how many bytes of space on disk are used to persist device logs. -Should be a string value that only contains digits. +**Current value (from the default):** `""` -**Current value (from the default):** `"0"` +From //third_party/dart/runtime/runtime_args.gni:73 -From //garnet/bin/log_listener/BUILD.gn:13 +### host_byteorder -### target_cpu +**Current value (from the default):** `"undefined"` -**Current value for `target_cpu = "arm64"`:** `"arm64"` +From //build/config/host_byteorder.gni:7 -From //boards/arm64.gni:5 +### skia_enable_atlas_text -**Overridden from the default:** `""` +**Current value (from the default):** `false` -**Current value for `target_cpu = "x64"`:** `"x64"` +From //third_party/skia/BUILD.gn:65 -From //boards/x64.gni:5 +### skia_enable_nima -**Overridden from the default:** `""` +**Current value (from the default):** `false` -### universal_variants +From //third_party/skia/BUILD.gn:45 -**Current value (from the default):** -``` -[{ - configs = [] - name = "release" - toolchain_args = { - is_debug = false -} -}] -``` +### zircon_enable_netsvc_debugging_features -From //build/config/BUILDCONFIG.gn:423 +**Current value for `target_cpu = "arm64"`:** `false` -### use_mock_magma +From //products/core.gni:10 -**Current value (from the default):** `false` +**Overridden from the default:** `false` -From [//third_party/mesa/src/intel/vulkan/BUILD.gn:25](https://fuchsia.googlesource.com/third_party/mesa/+/232bf12b10899d335a3fe69d947a738541ace7d3/src/intel/vulkan/BUILD.gn#25) +From //build/config/fuchsia/zircon.gni:33 -### vbmeta_r_partition +**Current value for `target_cpu = "x64"`:** `false` -**Current value (from the default):** `""` +From //products/core.gni:10 -From //build/images/BUILD.gn:44 +**Overridden from the default:** `false` -### concurrent_rust_jobs -Maximum number of Rust processes to run in parallel. +From //build/config/fuchsia/zircon.gni:33 -We run multiple rustc jobs in parallel, each of which can cause significant -amount of memory, especially when using LTO. To avoid out-of-memory errors -we explicitly reduce the number of jobs. +### zircon_extra_args +[Zircon GN build arguments](../../../zircon/docs/gen/build_arguments.md). +This is included in the default value of [`zircon_args`](#zircon_args) so +you can set this to add things there without wiping out the defaults. +When you set `zircon_args` directly, then this has no effect at all. +Arguments you set here override any arguments in the default +`zircon_args`. There is no way to append to a value from the defaults. +Note that for just setting simple (string-only) values in Zircon GN's +[`variants`](../../../zircon/docs/gen/build_arguments.md#variants), the +default [`zircon_args`](#zircon_args) uses a `variants` value derived from +[`select_variant`](#select_variant) so for simple cases there is no need +to explicitly set Zircon's `variants` here. -**Current value (from the default):** `14` +**Current value (from the default):** `{ }` -From //build/rust/BUILD.gn:15 +From //build/config/fuchsia/zircon.gni:27 -### exclude_kernel_service -Whether the VM includes the kernel service in all modes (debug, release, -product). +### export_x64_sdk_images **Current value (from the default):** `false` -From //third_party/dart/runtime/runtime_args.gni:88 +From //sdk/BUILD.gn:13 -### toolchain_variant -*This should never be set as a build argument.* -It exists only to be set in `toolchain_args`. -See //build/toolchain/clang_toolchain.gni for details. -This variable is a scope giving details about the current toolchain: - `toolchain_variant.base` - [label] The "base" toolchain for this variant, *often the - right thing to use in comparisons, not `current_toolchain`.* - This is the toolchain actually referenced directly in GN - source code. If the current toolchain is not - `shlib_toolchain` or a variant toolchain, this is the same - as `current_toolchain`. In one of those derivative - toolchains, this is the toolchain the GN code probably - thought it was in. This is the right thing to use in a test - like `toolchain_variant.base == target_toolchain`, rather - rather than comparing against `current_toolchain`. - `toolchain_variant.name` - [string] The name of this variant, as used in `variant` fields - in [`select_variant`](#select_variant) clauses. In the base - toolchain and its `shlib_toolchain`, this is `""`. - `toolchain_variant.suffix` - [string] This is "-${toolchain_variant.name}", "" if name is empty. - `toolchain_variant.is_pic_default` - [bool] This is true in `shlib_toolchain`. -The other fields are the variant's effects as defined in -[`known_variants`](#known_variants). +### magma_build_root -**Current value (from the default):** -``` -{ - base = "//build/toolchain/fuchsia:arm64" -} -``` +**Current value (from the default):** `"//garnet/lib/magma"` -From //build/config/BUILDCONFIG.gn:74 +From //garnet/lib/magma/gnbuild/magma.gni:8 -### cache_package_labels -If you add package labels to this variable, the packages will be included -in the 'cache' package set, which represents an additional set of software -that is made available on disk immediately after paving and in factory -flows. These packages are not updated with an OTA, but instead are updated -ephemerally. This cache of software can be evicted by the system if storage -pressure arises or other policies indicate. +### skia_use_lua -**Current value for `target_cpu = "arm64"`:** `[]` +**Current value (from the default):** `false` -From //products/core.gni:25 +From //third_party/skia/BUILD.gn:31 -**Overridden from the default:** `[]` +### go_vet_enabled + go_vet_enabled + [bool] if false, go vet invocations are disabled for all builds. -From //BUILD.gn:22 +**Current value (from the default):** `false` -**Current value for `target_cpu = "x64"`:** `[]` +From //build/go/go_build.gni:20 -From //products/core.gni:25 +### skia_enable_ccpr -**Overridden from the default:** `[]` +**Current value (from the default):** `true` -From //BUILD.gn:22 +From //third_party/skia/BUILD.gn:42 -### shell_enable_vulkan +### skia_enable_fontmgr_fuchsia -**Current value (from the default):** `false` +**Current value (from the default):** `true` -From //third_party/flutter/shell/config.gni:6 +From //third_party/skia/BUILD.gn:71 -### skia_skqp_global_error_tolerance +### skia_use_harfbuzz -**Current value (from the default):** `0` +**Current value (from the default):** `true` -From //third_party/skia/BUILD.gn:55 +From //third_party/skia/gn/skia.gni:14 -## `target_cpu = "arm64"` +### expat_build_root -### arm_float_abi -The ARM floating point mode. This is either the string "hard", "soft", or -"softfp". An empty string means to use the default one for the -arm_version. +**Current value (from the default):** `"//third_party/expat"` + +From //garnet/lib/magma/gnbuild/magma.gni:9 + +### minfs_minimum_inodes **Current value (from the default):** `""` -From //build/config/arm.gni:20 +From //build/images/fvm.gni:29 + +## `target_cpu = "arm64"` ### arm_optionally_use_neon Whether to enable optional NEON code paths. @@ -2415,6 +2406,15 @@ From //build/config/arm.gni:12 From //garnet/drivers/video/amlogic-decoder/BUILD.gn:11 +### arm_float_abi +The ARM floating point mode. This is either the string "hard", "soft", or +"softfp". An empty string means to use the default one for the +arm_version. + +**Current value (from the default):** `""` + +From //build/config/arm.gni:20 + ## `target_cpu = "x64"` ### msd_intel_enable_mapping_cache diff --git a/zircon/docs/gen/build_arguments.md b/zircon/docs/gen/build_arguments.md index 49ef4fa4fef7308262516e5fc67446ec16a43b98..e12ee6ace77d629b641118b7b7f032c0be031613 100644 --- a/zircon/docs/gen/build_arguments.md +++ b/zircon/docs/gen/build_arguments.md @@ -2,22 +2,30 @@ ## All builds -### enable_kernel_debugging_features -Whether to include various features (non-shipping, insecure, etc.) in the -kernel or netsvc builds. +### assert_level +* 0 means no assertions, not even standard C `assert()`. +* 1 means `ZX_ASSERT` but not `ZX_DEBUG_ASSERT`. +* 2 means both `ZX_ASSERT` and `ZX_DEBUG_ASSERT`. -**Current value (from the default):** `false` +**Current value (from the default):** `2` -From //public/gn/config/product_parameters.gni:12 +From //public/gn/config/levels.gni:9 -### symbol_level -* 0 means no debugging information. -* 1 means minimal debugging information sufficient to symbolize backtraces. -* 2 means full debugging information for use with a symbolic debugger. +### kernel_version_string +Version string embedded in the kernel for `zx_system_get_version`. +If set to the default "", a string is generated based on the +Zircon git revision of the checkout. -**Current value (from the default):** `2` +**Current value (from the default):** `""` -From //public/gn/config/levels.gni:20 +From //kernel/lib/version/BUILD.gn:9 + +### thinlto_jobs +Number of parallel ThinLTO jobs. + +**Current value (from the default):** `8` + +From //public/gn/config/lto/BUILD.gn:19 ### zx *This must never be set as a build argument*. @@ -32,42 +40,27 @@ file that uses `default_args` to set "$zx/" to "//zircon/". From //public/gn/BUILDCONFIG.gn:13 -### enable_acpi_debug -Enable debug output in the ACPI library (used by the ACPI bus driver). +### detailed_scheduler_tracing +Enable detailed scheduler traces. **Current value (from the default):** `false` -From //third_party/lib/acpica/BUILD.gn:9 - -### default_deps -Defines the `//:default` target: what `ninja` with no arguments does. - -**Current value (from the default):** `[":build-tests", ":ids", ":images", ":tools"]` - -From //BUILD.gn:19 - -### host_os - -**Current value (from the default):** `"linux"` +From //kernel/params.gni:39 -### kernel_version_string -Version string embedded in the kernel for `zx_system_get_version`. -If set to the default "", a string is generated based on the -Zircon git revision of the checkout. +### enable_acpi_debug +Enable debug output in the ACPI library (used by the ACPI bus driver). -**Current value (from the default):** `""` +**Current value (from the default):** `false` -From //kernel/lib/version/BUILD.gn:9 +From //third_party/lib/acpica/BUILD.gn:9 -### opt_level -* -1 means really unoptimized (-O0), usually only build-tested and not run. -* 0 means "optimized for debugging" (-Og), light enough to avoid confusion. - 1, 2, and 3 are increasing levels of optimization. -* 4 is optimized for space rather than purely for speed. +### enable_fair_scheduler +Disable fair scheduler by default on all architectures. +ZX-3959: Disable by default until E2E tests stabilize. -**Current value (from the default):** `2` +**Current value (from the default):** `false` -From //public/gn/config/levels.gni:15 +From //kernel/params.gni:36 ### use_prebuilt_clang If $clang_tool_dir is "", then this controls how the Clang toolchain @@ -78,56 +71,56 @@ Otherwise the tools are just expected to be found by the shell via `PATH`. From //public/gn/toolchain/clang.gni:9 -### use_prebuilt_gcc -If $gcc_tool_dir is "", then this controls how the GCC toolchain -binaries are found. If true, the standard prebuilt is used. If false, -the tools are just expected to be found in PATH. - -**Current value (from the default):** `true` - -From //public/gn/toolchain/gcc.gni:9 - -### crash_diagnostics_dir -Clang crash reports directory path. Use empty path to disable altogether. +### symbol_level +* 0 means no debugging information. +* 1 means minimal debugging information sufficient to symbolize backtraces. +* 2 means full debugging information for use with a symbolic debugger. -**Current value (from the default):** `"/b/s/w/ir/k/out/build-zircon/clang-crashreports"` +**Current value (from the default):** `2` -From //public/gn/config/BUILD.gn:11 +From //public/gn/config/levels.gni:20 -### clang_tool_dir -Directory where the Clang toolchain binaries ("clang", "llvm-nm", etc.) are -found. If this is "", then the behavior depends on $use_prebuilt_clang. -This toolchain is expected to support both Fuchsia targets and the host. +### asan_default_options +Default [AddressSanitizer](https://llvm.org/docs/AddressSanitizer.html) +options (before the `ASAN_OPTIONS` environment variable is read at +runtime). This can be set as a build argument to affect most "asan" +variants in $variants (which see), or overridden in $toolchain_args in +one of those variants. Note that setting this nonempty may conflict +with programs that define their own `__asan_default_options` C +function. **Current value (from the default):** `""` -From //public/gn/toolchain/clang.gni:14 +From //public/gn/config/instrumentation/BUILD.gn:15 -### detailed_scheduler_tracing -Enable detailed scheduler traces. +### enable_kernel_debugging_features +Whether to include various features (non-shipping, insecure, etc.) in the +kernel or netsvc builds. **Current value (from the default):** `false` -From //kernel/params.gni:39 - -### goma_dir -Absolute directory containing the Goma source code. +From //public/gn/config/product_parameters.gni:12 -**Current value (from the default):** `"/home/swarming/goma"` +### enable_lock_dep +Enable kernel lock dependency tracking. -From //public/gn/toolchain/goma.gni:12 +**Current value (from the default):** `false` -### kernel_base +From //kernel/params.gni:32 -**Current value (from the default):** `"0xffffffff00000000"` +### opt_level +* -1 means really unoptimized (-O0), usually only build-tested and not run. +* 0 means "optimized for debugging" (-Og), light enough to avoid confusion. + 1, 2, and 3 are increasing levels of optimization. +* 4 is optimized for space rather than purely for speed. -From //kernel/params.gni:18 +**Current value (from the default):** `2` -### malloc +From //public/gn/config/levels.gni:15 -**Current value (from the default):** `"scudo"` +### target_os -From //third_party/ulib/musl/BUILD.gn:6 +**Current value (from the default):** `""` ### use_ccache Set to true to enable compiling with ccache. @@ -136,28 +129,10 @@ Set to true to enable compiling with ccache. From //public/gn/toolchain/ccache.gni:9 -### asan_default_options -Default [AddressSanitizer](https://llvm.org/docs/AddressSanitizer.html) -options (before the `ASAN_OPTIONS` environment variable is read at -runtime). This can be set as a build argument to affect most "asan" -variants in $variants (which see), or overridden in $toolchain_args in -one of those variants. Note that setting this nonempty may conflict -with programs that define their own `__asan_default_options` C -function. +### current_cpu **Current value (from the default):** `""` -From //public/gn/config/instrumentation/BUILD.gn:15 - -### assert_level -* 0 means no assertions, not even standard C `assert()`. -* 1 means `ZX_ASSERT` but not `ZX_DEBUG_ASSERT`. -* 2 means both `ZX_ASSERT` and `ZX_DEBUG_ASSERT`. - -**Current value (from the default):** `2` - -From //public/gn/config/levels.gni:9 - ### enable_user_pci Enable userspace PCI and disable kernel PCI. @@ -165,21 +140,33 @@ Enable userspace PCI and disable kernel PCI. From //kernel/params.gni:42 -### kernel_aspace_base +### gcc_tool_dir +Directory where the GCC toolchain binaries ("gcc", "nm", etc.) are +found. If this is "", then the behavior depends on $use_prebuilt_gcc. +This directory is expected to contain `aarch64-elf-*` and `x86_64-elf-*` +tools used to build for the Fuchsia targets. This directory will not +be used for host tools; if GCC is selected for host builds, only the +system-installed tools found by the shell via `PATH` will be used. -**Current value (from the default):** `"0xffff000000000000"` +**Current value (from the default):** `""` -From //kernel/params.gni:26 +From //public/gn/toolchain/gcc.gni:17 -### smp_max_cpus +### malloc + +**Current value (from the default):** `"scudo"` -**Current value (from the default):** `16` +From //third_party/ulib/musl/BUILD.gn:6 -From //kernel/params.gni:10 +### tests_in_image +Whether to include all the Zircon tests in the main standalone ZBI. +TODO(mcgrathr): This will be replaced by a more sophisticated plan for +what images to build rather than a single "everything" image that needs +to be pared down. -### target_cpu +**Current value (from the default):** `true` -**Current value (from the default):** `""` +From //BUILD.gn:16 ### toolchain *This must never be set as a build argument.* @@ -198,60 +185,16 @@ See environment() for more information. From //public/gn/BUILDCONFIG.gn:20 -### use_goma -Set to true to enable distributed compilation using Goma. - -**Current value (from the default):** `false` - -From //public/gn/toolchain/goma.gni:9 - -### build_id_dir -Directory to populate with `xx/yyy` and `xx/yyy.debug` links to ELF -files. For every ELF binary built, with build ID `xxyyy` (lowercase -hexadecimal of any length), `xx/yyy` is a hard link to the stripped -file and `xx/yyy.debug` is a hard link to the unstripped file. -Symbolization tools and debuggers find symbolic information this way. - -**Current value (from the default):** `"/b/s/w/ir/k/out/build-zircon/.build-id"` - -From //public/gn/toolchain/c_toolchain.gni:17 - -### enable_fair_scheduler -Disable fair scheduler by default on all architectures. -ZX-3959: Disable by default until E2E tests stabilize. - -**Current value (from the default):** `false` - -From //kernel/params.gni:36 - -### enable_lock_dep_tests -Enable kernel lock dependency tracking tests. By default this is -enabled when tracking is enabled, but can also be eanbled independently -to assess whether the tests build and *fail correctly* when lockdep is -disabled. - -**Current value (from the default):** `false` - -From //kernel/params.gni:54 - -### target_os +### current_os **Current value (from the default):** `""` -### thinlto_cache_dir -ThinLTO cache directory path. - -**Current value (from the default):** `"host-arm64-linux-lto/thinlto-cache"` - -From //public/gn/config/lto/BUILD.gn:22 - -### current_cpu - -**Current value (from the default):** `""` +### default_deps +Defines the `//:default` target: what `ninja` with no arguments does. -### host_cpu +**Current value (from the default):** `[":build-tests", ":ids", ":images", ":tools"]` -**Current value (from the default):** `"x64"` +From //BUILD.gn:19 ### kernel_extra_defines Extra macro definitions for kernel code, e.g. "DISABLE_KASLR", @@ -282,26 +225,42 @@ The empty list (or empty string) means don't use `--sysroot` at all. From //public/gn/config/BUILD.gn:17 -### tests_in_image -Whether to include all the Zircon tests in the main standalone ZBI. -TODO(mcgrathr): This will be replaced by a more sophisticated plan for -what images to build rather than a single "everything" image that needs -to be pared down. +### thinlto_cache_dir +ThinLTO cache directory path. + +**Current value (from the default):** `"user-x64-thinlto/thinlto-cache"` + +From //public/gn/config/lto/BUILD.gn:22 + +### use_prebuilt_gcc +If $gcc_tool_dir is "", then this controls how the GCC toolchain +binaries are found. If true, the standard prebuilt is used. If false, +the tools are just expected to be found in PATH. **Current value (from the default):** `true` -From //BUILD.gn:16 +From //public/gn/toolchain/gcc.gni:9 -### thinlto_jobs -Number of parallel ThinLTO jobs. +### build_id_dir +Directory to populate with `xx/yyy` and `xx/yyy.debug` links to ELF +files. For every ELF binary built, with build ID `xxyyy` (lowercase +hexadecimal of any length), `xx/yyy` is a hard link to the stripped +file and `xx/yyy.debug` is a hard link to the unstripped file. +Symbolization tools and debuggers find symbolic information this way. -**Current value (from the default):** `8` +**Current value (from the default):** `"/b/s/w/ir/k/out/build-zircon/.build-id"` -From //public/gn/config/lto/BUILD.gn:19 +From //public/gn/toolchain/c_toolchain.gni:17 -### current_os +### enable_lock_dep_tests +Enable kernel lock dependency tracking tests. By default this is +enabled when tracking is enabled, but can also be eanbled independently +to assess whether the tests build and *fail correctly* when lockdep is +disabled. -**Current value (from the default):** `""` +**Current value (from the default):** `false` + +From //kernel/params.gni:54 ### enable_netsvc_debugging_features @@ -309,17 +268,42 @@ From //public/gn/config/lto/BUILD.gn:19 From //public/gn/config/product_parameters.gni:13 -### gcc_tool_dir -Directory where the GCC toolchain binaries ("gcc", "nm", etc.) are -found. If this is "", then the behavior depends on $use_prebuilt_gcc. -This directory is expected to contain `aarch64-elf-*` and `x86_64-elf-*` -tools used to build for the Fuchsia targets. This directory will not -be used for host tools; if GCC is selected for host builds, only the -system-installed tools found by the shell via `PATH` will be used. +### host_os -**Current value (from the default):** `""` +**Current value (from the default):** `"linux"` -From //public/gn/toolchain/gcc.gni:17 +### use_goma +Set to true to enable distributed compilation using Goma. + +**Current value (from the default):** `false` + +From //public/gn/toolchain/goma.gni:9 + +### crash_diagnostics_dir +Clang crash reports directory path. Use empty path to disable altogether. + +**Current value (from the default):** `"/b/s/w/ir/k/out/build-zircon/clang-crashreports"` + +From //public/gn/config/BUILD.gn:11 + +### goma_dir +Absolute directory containing the Goma source code. + +**Current value (from the default):** `"/home/swarming/goma"` + +From //public/gn/toolchain/goma.gni:12 + +### kernel_aspace_base + +**Current value (from the default):** `"0xffffff8000000000UL"` + +From //kernel/params.gni:28 + +### kernel_base + +**Current value (from the default):** `"0xffffffff80100000"` + +From //kernel/params.gni:20 ### variants List of "selectors" to request variant builds of certain targets. Each @@ -543,10 +527,27 @@ Variant scope parameters From //public/gn/toolchain/variants.gni:222 -### enable_lock_dep -Enable kernel lock dependency tracking. +### clang_tool_dir +Directory where the Clang toolchain binaries ("clang", "llvm-nm", etc.) are +found. If this is "", then the behavior depends on $use_prebuilt_clang. +This toolchain is expected to support both Fuchsia targets and the host. -**Current value (from the default):** `false` +**Current value (from the default):** `""` -From //kernel/params.gni:32 +From //public/gn/toolchain/clang.gni:14 + +### host_cpu + +**Current value (from the default):** `"x64"` + +### smp_max_cpus +Maximum number of CPUs the kernel will run on (others will be ignored). + +**Current value (from the default):** `32` + +From //kernel/params.gni:7 + +### target_cpu + +**Current value (from the default):** `""`