blob: e8d0e54bfacc5a068f8809ca75c7eb5b421864ef [file] [log] [blame]
# 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/drivers:$cpu is a target to build all drivers for $cpu.
foreach(cpu, standard_fuchsia_cpus) {
select_toolchain(cpu) {
testonly = true
cpu = target_name
environment_label = "$zx/public/gn/toolchain:user"
deps = [
":drivers",
]
}
}
if (current_cpu != "") {
group("drivers") {
testonly = true
deps = [
"$zx/system/dev",
]
if (current_cpu == "x64") {
deps += [ "$zx/third_party/dev/ethernet/e1000" ]
}
}
}