blob: 68746f3b33b90681cbc965528776abc54738809d [file] [edit]
# Copyright 2019 The Fuchsia Authors
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
import("//build/cpp/library_headers.gni")
import("//zircon/kernel/kernel_rust_mod.gni")
source_set("pc") {
public_deps = [ ":headers" ]
deps = [
":platform_pc",
"//zircon/kernel/dev/hw_rng/intel_rng",
]
}
library_headers("headers") {
headers = [
"platform/pc.h",
"platform/pc/timer.h",
]
public_deps = [ "//zircon/kernel/arch/x86:headers" ]
}
group("kernel-tests") {
testonly = true
deps = []
}
kernel_rust_mod("platform_pc") {
source_root = "mod.rs"
sources = [
"acpi.rs",
"cmos_bootbyte.rs",
"hpet.rs",
"interrupt_manager.rs",
"interrupts.rs",
"keyboard.rs",
"memory.rs",
"mod.rs",
"pic.rs",
"platform.rs",
"power.rs",
"smbios.rs",
"timer.rs",
]
deps = [
"//sdk/rust/zbi",
"//sdk/rust/zx-status",
"//sdk/rust/zx-types",
"//src/lib/kprint",
"//src/lib/ksync",
"//src/lib/lazy_init:lazy_init_rs",
"//src/lib/zr",
"//third_party/rust_crates:zerocopy",
"//zircon/kernel/lib/acpi_lite/rust:acpi_lite",
"//zircon/kernel/lib/acpi_lite/rust/zircon",
"//zircon/kernel/lib/arch:arch-rs",
"//zircon/kernel/lib/boot-options:boot-options-rs",
"//zircon/kernel/lib/debug",
"//zircon/kernel/lib/fixed_point:fixed_point-rs",
"//zircon/kernel/lib/init:init_rust",
"//zircon/kernel/lib/page:page-rs",
"//zircon/kernel/lib/smbios/rust:smbios",
"//zircon/kernel/phys/handoff:handoff-rs",
"//zircon/kernel/phys/lib/memalloc:memalloc-rs",
"//zircon/system/ulib/affine/rust:affine",
"//zircon/system/ulib/bitmap/rust:bitmap",
"//zircon/system/ulib/fbl/rust:fbl",
]
test_deps = [ "//zircon/kernel/lib/unittest:unittest-rs" ]
}