blob: cafc5d7296486e1b561d8921a6ce21d562b2b03e [file] [log] [blame]
# Copyright 2024 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/bazel/assembly/bazel_product_bundle.gni")
# A GN target to perform system assembly in Bazel exclusively, using
# Ninja-generated inputs.
assert(current_toolchain == default_toolchain,
"Products only make sense in the context of the default toolchain")
assert(target_cpu == "x64" || target_cpu == "arm64",
"Microfuchsia is only support for x64 and arm64")
bazel_product_bundle("microfuchsia_eng.${target_cpu}") {
testonly = true
allow_eng_platform_bundle_use = true
bazel_product_bundle_target =
"//products/microfuchsia:product_bundle_eng.${target_cpu}"
bazel_product_image_target =
"//products/microfuchsia:microfuchsia_eng.${target_cpu}"
bazel_recovery_image_target = "//products/zedboot:${target_cpu}"
bazel_elf_sizes_target = "//products/microfuchsia:elf_sizes.${target_cpu}"
bazel_inputs_from_gn = [
"//build/images/flash:esp.bazel_input",
"//build/images/fuchsia:fuchsia.bazel_legacy_aib",
"//build/images/zedboot:zedboot.bazel_legacy_aib",
# Add the board configuration as a dependency via the GN arg, as vendor-
# repo boards can shadow the ones in //boards.
get_label_info(board_configuration_label, "label_no_toolchain") +
".bazel_input",
]
}