mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-20 15:01:16 +00:00
To debug the FDT (Flattened Device Tree), we usually need to modify source code to save the generted DTB data to disk, and use 'dtc' command to decode the binary file into a text file to analyze. It would be ideal if the FDT content can be seen in log. This commit makes it real by: - Introducing 'fdt' crate for parsing FDT. - Printing the content of the FDT in tree view. The parsing and printing only happen when Debug level logging enabled. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
30 lines
832 B
TOML
30 lines
832 B
TOML
[package]
|
|
name = "arch"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
default = []
|
|
acpi = ["acpi_tables"]
|
|
tdx = []
|
|
|
|
[dependencies]
|
|
acpi_tables = { path = "../acpi_tables", optional = true }
|
|
anyhow = "1.0"
|
|
byteorder = "1.4.3"
|
|
hypervisor = { path = "../hypervisor" }
|
|
libc = "0.2.97"
|
|
linux-loader = { version = "0.3.0", features = ["elf", "bzimage", "pe"] }
|
|
log = "0.4.14"
|
|
serde = {version = ">=1.0.27", features = ["rc"] }
|
|
thiserror = "1.0"
|
|
versionize = "0.1.6"
|
|
versionize_derive = "0.1.4"
|
|
vm-memory = { version = "0.5.0", features = ["backend-mmap", "backend-bitmap"] }
|
|
vm-migration = { path = "../vm-migration" }
|
|
|
|
[target.'cfg(target_arch = "aarch64")'.dependencies]
|
|
fdt_parser = { version = "0.1.3", package = 'fdt'}
|
|
vm-fdt = { git = "https://github.com/rust-vmm/vm-fdt", branch = "master" }
|