| # Copyright 2022 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| load("@fuchsia_build_info//:args.bzl", "build_info_version") |
| load( |
| "@rules_fuchsia//fuchsia:assembly.bzl", |
| "fuchsia_elf_sizes", |
| "fuchsia_product", |
| "fuchsia_product_bundle", |
| "fuchsia_product_configuration", |
| ) |
| load("//products/minimal:minimal.bzl", "MINIMAL_PLATFORM_BASE", "MINIMAL_PRODUCT_BASE") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| _PRODUCT_CONFIG_BASE_JSON = { |
| "platform": MINIMAL_PLATFORM_BASE, |
| "product": MINIMAL_PRODUCT_BASE, |
| } |
| |
| fuchsia_product_configuration( |
| name = "product_config", |
| product_config_json = _PRODUCT_CONFIG_BASE_JSON, |
| version = build_info_version, |
| ) |
| |
| fuchsia_product( |
| name = "image.x64", |
| board_config = "//boards:x64", |
| platform_artifacts = "//build/bazel/assembly/assembly_input_bundles:platform_eng", |
| product_config = ":product_config", |
| ) |
| |
| fuchsia_elf_sizes( |
| name = "elf_sizes.x64", |
| product = ":image.x64", |
| ) |
| |
| fuchsia_product_bundle( |
| name = "product_bundle.x64", |
| default_virtual_device = "//build/bazel/assembly/virtual_devices:x64-emu-recommended", |
| main = ":image.x64", |
| product_bundle_name = "minimal.x64", |
| product_bundle_version = build_info_version, |
| recovery = "//products/zedboot:x64", |
| repository_keys = "//src/sys/pkg/repositories/devhost/keys", |
| update_epoch = "1", |
| update_version_file = "//build/info:version", |
| virtual_devices = [ |
| "//build/bazel/assembly/virtual_devices:x64-emu-recommended", |
| "//build/bazel/assembly/virtual_devices:x64-emu-min", |
| "//build/bazel/assembly/virtual_devices:x64-emu-large", |
| ], |
| ) |
| |
| fuchsia_product( |
| name = "image.arm64", |
| board_config = "//boards:arm64", |
| platform_artifacts = "//build/bazel/assembly/assembly_input_bundles:platform_eng", |
| product_config = ":product_config", |
| ) |
| |
| fuchsia_elf_sizes( |
| name = "elf_sizes.arm64", |
| product = ":image.arm64", |
| ) |
| |
| fuchsia_product_bundle( |
| name = "product_bundle.arm64", |
| default_virtual_device = "//build/bazel/assembly/virtual_devices:arm64-emu-recommended", |
| main = ":image.arm64", |
| product_bundle_name = "minimal.arm64", |
| product_bundle_version = build_info_version, |
| recovery = "//products/zedboot:arm64", |
| repository_keys = "//src/sys/pkg/repositories/devhost/keys", |
| update_epoch = "1", |
| update_version_file = "//build/info:version", |
| virtual_devices = [ |
| "//build/bazel/assembly/virtual_devices:arm64-emu-recommended", |
| "//build/bazel/assembly/virtual_devices:arm64-emu-min", |
| "//build/bazel/assembly/virtual_devices:arm64-emu-large", |
| ], |
| ) |
| |
| fuchsia_product( |
| name = "image.vim3", |
| board_config = "//boards:vim3", |
| platform_artifacts = "//build/bazel/assembly/assembly_input_bundles:platform_eng", |
| product_config = ":product_config", |
| ) |
| |
| fuchsia_elf_sizes( |
| name = "elf_sizes.vim3", |
| product = ":image.vim3", |
| ) |
| |
| fuchsia_product_bundle( |
| name = "product_bundle.vim3", |
| main = ":image.vim3", |
| product_bundle_name = "minimal.vim3", |
| product_bundle_version = build_info_version, |
| recovery = "//products/zedboot:vim3_recovery", |
| repository_keys = "//src/sys/pkg/repositories/devhost/keys", |
| update_epoch = "1", |
| update_version_file = "//build/info:version", |
| ) |
| |
| fuchsia_product( |
| name = "image.emac", |
| board_config = "//boards/emac", |
| platform_artifacts = "//build/bazel/assembly/assembly_input_bundles:platform_eng", |
| product_config = ":product_config", |
| ) |
| |
| fuchsia_elf_sizes( |
| name = "elf_sizes.emac", |
| product = ":image.emac", |
| ) |
| |
| fuchsia_product_bundle( |
| name = "product_bundle.emac", |
| main = ":image.emac", |
| product_bundle_name = "minimal.emac", |
| product_bundle_version = build_info_version, |
| repository_keys = "//src/sys/pkg/repositories/devhost/keys", |
| update_epoch = "1", |
| update_version_file = "//build/info:version", |
| ) |
| |
| fuchsia_product( |
| name = "image.riscv64", |
| board_config = "//boards:riscv64", |
| platform_artifacts = "//build/bazel/assembly/assembly_input_bundles:platform_eng", |
| product_config = ":product_config", |
| ) |
| |
| fuchsia_elf_sizes( |
| name = "elf_sizes.riscv64", |
| product = ":image.riscv64", |
| ) |
| |
| fuchsia_product_bundle( |
| name = "product_bundle.riscv64", |
| default_virtual_device = "//build/bazel/assembly/virtual_devices:riscv64-emu-recommended", |
| main = ":image.riscv64", |
| product_bundle_name = "minimal.riscv64", |
| product_bundle_version = build_info_version, |
| recovery = "//products/zedboot:riscv64", |
| repository_keys = "//src/sys/pkg/repositories/devhost/keys", |
| update_epoch = "1", |
| update_version_file = "//build/info:version", |
| virtual_devices = [ |
| "//build/bazel/assembly/virtual_devices:riscv64-emu-recommended", |
| "//build/bazel/assembly/virtual_devices:riscv64-emu-min", |
| "//build/bazel/assembly/virtual_devices:riscv64-emu-large", |
| ], |
| ) |