| # 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("$zx/public/gn/config/standard.gni") |
| import("$zx/public/gn/toolchain/select_toolchain.gni") |
| |
| # $zx/public/kernel:$cpu is a target to build the standard bootloader for $cpu. |
| # Build configuration will select the variant to use for the bootloader. |
| foreach(cpu, standard_fuchsia_cpus) { |
| if (cpu == "x64") { |
| select_toolchain(cpu) { |
| cpu = target_name |
| environment_label = "$zx/bootloader:efi" |
| deps = [ |
| "$zx/bootloader", |
| ] |
| } |
| } else { |
| # We don't have our own bootloader for other machines. |
| group(cpu) { |
| } |
| } |
| } |