| # Copyright 2019 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/config/fuchsia/zircon.gni") |
| |
| # The `gn gen` stage of the Zircon GN build writes this file. |
| # It's a list of {name=... path=... type=...} scopes. |
| zircon_images = read_file("$zircon_root_build_dir/legacy_images.json", "json") |
| |
| foreach(image, zircon_images) { |
| if (image.name == "kernel" && image.type == "zbi" && |
| image.cpu == target_cpu) { |
| zircon_kernel_zbi = "$zircon_root_build_dir/${image.path}" |
| } |
| } |