mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-30 00:33:24 +00:00
riscv: 解析dtb,获取可用内存空间并添加到memblock (#486)
This commit is contained in:
@ -44,6 +44,7 @@ smoltcp = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/smoltcp.g
|
||||
system_error = { path = "crates/system_error" }
|
||||
unified-init = { path = "crates/unified-init" }
|
||||
virtio-drivers = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/virtio-drivers.git", rev = "f1d1cbb" }
|
||||
fdt = "0.1.5"
|
||||
|
||||
# target为x86_64时,使用下面的依赖
|
||||
[target.'cfg(target_arch = "x86_64")'.dependencies]
|
||||
@ -52,6 +53,11 @@ x86 = "0.52.0"
|
||||
x86_64 = "0.14.10"
|
||||
|
||||
|
||||
# target为riscv64时,使用下面的依赖
|
||||
[target.'cfg(target_arch = "riscv64")'.dependencies]
|
||||
|
||||
|
||||
|
||||
# 构建时依赖项
|
||||
[build-dependencies]
|
||||
kernel_build = { path = "../build-scripts/kernel_build" }
|
||||
|
Reference in New Issue
Block a user