| # Copyright 2020 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/package.gni") |
| import("//build/rust/rustc_binary.gni") |
| import("//src/sys/build/components.gni") |
| |
| rustc_binary("lspci") { |
| with_unit_tests = true |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.pci:fuchsia.hardware.pci-rustc", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/zerocopy", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:argh", |
| "//third_party/rust_crates:bitfield", |
| ] |
| sources = [ |
| "src/bridge.rs", |
| "src/capability.rs", |
| "src/config.rs", |
| "src/db.rs", |
| "src/device.rs", |
| "src/filter.rs", |
| "src/main.rs", |
| "src/util.rs", |
| ] |
| } |
| |
| resource("database") { |
| sources = [ "//third_party/pciids/pci.ids" ] |
| outputs = [ "data/lspci/{{source_file_part}}" ] |
| } |
| |
| group("bootfs") { |
| deps = [ |
| ":database", |
| ":lspci", |
| ] |
| } |