blob: 15bc0183f6add5302644a4064446151ac0b41318 [file] [log] [blame] [edit]
# Copyright 2021 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/assembly/assembly_input_bundle.gni")
import("//build/assembly/legacy.gni")
import("//build/security.gni")
if (is_fuchsia) {
qemu_kernel_file = ""
qemu_kernel_target = ""
if (target_cpu == "x64") {
qemu_kernel_file = "$root_build_dir/multiboot.bin"
qemu_kernel_target =
"//zircon/kernel/arch/x86/phys/boot-shim:multiboot-shim"
} else if (target_cpu == "arm64") {
qemu_kernel_file = "$root_build_dir/qemu-boot-shim.bin"
qemu_kernel_target = "//zircon/kernel/target/arm64/boot-shim:qemu"
} else {
assert(false, "Unsupported target cpu: $target_cpu")
}
assembly_input_bundle("emulator_support") {
qemu_kernel = qemu_kernel_file
deps = [ qemu_kernel_target ]
}
group("assembly") {
public_deps = [
":emulator_support",
"scripts:assembly_input_bundle_tool_install($host_toolchain)",
]
}
}
if (is_host) {
group("host_tests") {
testonly = true
deps = [ "scripts:tests($host_toolchain)" ]
}
}