| # Copyright 2023 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| load( |
| "@fuchsia_sdk//fuchsia:assembly.bzl", |
| "PARTITION_TYPE", |
| "SLOT", |
| "fuchsia_bootloader_partition", |
| "fuchsia_partition", |
| "fuchsia_partitions_configuration", |
| ) |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| fuchsia_partition( |
| name = "zircon-a", |
| partition_name = "zircon-a", |
| slot = SLOT.A, |
| type = PARTITION_TYPE.ZBI, |
| ) |
| |
| fuchsia_partition( |
| name = "zircon-b", |
| partition_name = "zircon-b", |
| slot = SLOT.B, |
| type = PARTITION_TYPE.ZBI, |
| ) |
| |
| fuchsia_partition( |
| name = "zircon-r", |
| partition_name = "zircon-r", |
| slot = SLOT.R, |
| type = PARTITION_TYPE.ZBI, |
| ) |
| |
| fuchsia_partition( |
| name = "zircon_a", |
| partition_name = "zircon_a", |
| slot = SLOT.A, |
| type = PARTITION_TYPE.ZBI, |
| ) |
| |
| fuchsia_partition( |
| name = "zircon_b", |
| partition_name = "zircon_b", |
| slot = SLOT.B, |
| type = PARTITION_TYPE.ZBI, |
| ) |
| |
| fuchsia_partition( |
| name = "zircon_r", |
| partition_name = "zircon_r", |
| slot = SLOT.R, |
| type = PARTITION_TYPE.ZBI, |
| ) |
| |
| fuchsia_partition( |
| name = "vbmeta_a", |
| partition_name = "vbmeta_a", |
| slot = SLOT.A, |
| type = PARTITION_TYPE.VBMETA, |
| ) |
| |
| fuchsia_partition( |
| name = "vbmeta_b", |
| partition_name = "vbmeta_b", |
| slot = SLOT.B, |
| type = PARTITION_TYPE.VBMETA, |
| ) |
| |
| fuchsia_partition( |
| name = "vbmeta_r", |
| partition_name = "vbmeta_r", |
| slot = SLOT.R, |
| type = PARTITION_TYPE.VBMETA, |
| ) |
| |
| fuchsia_partition( |
| name = "fvm", |
| partition_name = "fvm", |
| type = PARTITION_TYPE.FVM, |
| ) |
| |
| fuchsia_partition( |
| name = "fxfs", |
| partition_name = "fvm", |
| type = PARTITION_TYPE.FXFS, |
| ) |
| |
| fuchsia_bootloader_partition( |
| name = "fuchsia_esp", |
| image = "@gn_targets//build/images/flash:fuchsia_esp", |
| partition_name = "fuchsia-esp", |
| # For x64 platform there is only one bootloader and thus there is no need |
| # for multiple types and default empty string is used. |
| type = "", |
| ) |
| |
| standard_partitions = [ |
| ":zircon_a", |
| ":zircon_b", |
| ":zircon_r", |
| ":vbmeta_a", |
| ":vbmeta_b", |
| ":vbmeta_r", |
| ":fvm", |
| ":fxfs", |
| ] |
| |
| fuchsia_partitions_configuration( |
| name = "x64", |
| bootloader_partitions = [ |
| ":fuchsia_esp", |
| ], |
| hardware_revision = "x64", |
| # x64 uses "zircon-a" instead of "zircon_a". |
| partitions = [ |
| ":zircon-a", |
| ":zircon-b", |
| ":zircon-r", |
| ":vbmeta_a", |
| ":vbmeta_b", |
| ":vbmeta_r", |
| ":fvm", |
| ":fxfs", |
| ], |
| ) |
| |
| fuchsia_partitions_configuration( |
| name = "qemu-x64", |
| bootloader_partitions = [ |
| ":fuchsia_esp", |
| ], |
| hardware_revision = "qemu-x64", |
| # x64 uses "zircon-a" instead of "zircon_a". |
| partitions = [ |
| ":zircon-a", |
| ":zircon-b", |
| ":zircon-r", |
| ":vbmeta_a", |
| ":vbmeta_b", |
| ":vbmeta_r", |
| ":fvm", |
| ":fxfs", |
| ], |
| ) |
| |
| fuchsia_partitions_configuration( |
| name = "arm64", |
| bootloader_partitions = [ |
| ":fuchsia_esp", |
| ], |
| hardware_revision = "arm64", |
| partitions = standard_partitions, |
| ) |
| |
| alias( |
| name = "vim3", |
| actual = "//boards/partitions/vim3", |
| ) |
| |
| fuchsia_partitions_configuration( |
| name = "riscv64", |
| hardware_revision = "riscv64", |
| ) |