mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 23:59:16 +00:00
[Fuchsia] Fix test image creation
R=rmacnak@google.com Review-Url: https://codereview.chromium.org/2897123002 .
This commit is contained in:
parent
a545c5c31f
commit
7f16342577
16
BUILD.gn
16
BUILD.gn
|
@ -118,9 +118,8 @@ group("samples") {
|
|||
]
|
||||
}
|
||||
|
||||
# The rules below build a qemu Fuchsia OS image that includes the Dart tree
|
||||
# under /system/test/dart. Building this image is gated by the GN argument
|
||||
# 'dart_build_fuchsia_test_image' because building the image is slow.
|
||||
# The rules below build a Fuchsia OS image that includes the Dart tree
|
||||
# under /system/test/dart.
|
||||
if (is_fuchsia) {
|
||||
declare_args() {
|
||||
dart_build_fuchsia_test_image = false
|
||||
|
@ -144,14 +143,14 @@ if (is_fuchsia) {
|
|||
}
|
||||
|
||||
mkbootfs_gen = get_label_info("//packages/gn:mkbootfs", "target_gen_dir")
|
||||
user_manifest = "$mkbootfs_gen/user.bootfs.manifest"
|
||||
system_manifest = "$mkbootfs_gen/system.bootfs.manifest"
|
||||
|
||||
script = "tools/gen_fuchsia_test_manifest.py"
|
||||
args = [
|
||||
"-m",
|
||||
mode,
|
||||
"-u",
|
||||
rebase_path(user_manifest),
|
||||
rebase_path(system_manifest),
|
||||
"-o",
|
||||
rebase_path(output_prefix),
|
||||
]
|
||||
|
@ -166,6 +165,9 @@ if (is_fuchsia) {
|
|||
"runtime/bin:run_vm_tests",
|
||||
]
|
||||
|
||||
mkbootfs_gen = get_label_info("//packages/gn:mkbootfs", "target_gen_dir")
|
||||
boot_manifest = "$mkbootfs_gen/boot.bootfs.manifest"
|
||||
|
||||
# Compute path to magenta bootdata.bin
|
||||
if (current_cpu == "arm64") {
|
||||
magenta_bootdata =
|
||||
|
@ -190,7 +192,9 @@ if (is_fuchsia) {
|
|||
|
||||
script = "//packages/gn/make_bootfs.py"
|
||||
args = [
|
||||
"--manifest",
|
||||
"--boot-manifest",
|
||||
rebase_path(boot_manifest),
|
||||
"--system-manifest",
|
||||
rebase_path(input),
|
||||
"--output-file",
|
||||
rebase_path(output),
|
||||
|
|
Loading…
Reference in a new issue