forked from arceos-org/arceos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
63 lines (56 loc) · 2.11 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[package]
name = "axhal"
version = "0.1.0"
edition = "2021"
authors = ["Yuekai Jia <[email protected]>"]
description = "ArceOS hardware abstraction layer, provides unified APIs for platform-specific operations"
license = "GPL-3.0-or-later OR Apache-2.0"
homepage = "https://github.com/rcore-os/arceos"
repository = "https://github.com/rcore-os/arceos/tree/main/modules/axhal"
documentation = "https://rcore-os.github.io/arceos/axhal/index.html"
[features]
smp = []
fp_simd = []
paging = ["axalloc", "page_table"]
irq = []
platform-pc-x86 = ["axconfig/platform-pc-x86", "dep:ratio"]
platform-qemu-virt-riscv = ["axconfig/platform-qemu-virt-riscv"]
platform-qemu-virt-aarch64 = [
"axconfig/platform-qemu-virt-aarch64",
"dep:page_table_entry", "dep:ratio",
]
default = []
[dependencies]
log = "0.4"
cfg-if = "1.0"
bitflags = "2.2"
static_assertions = "1.1.0"
axlog = { path = "../axlog" }
axconfig = { path = "../axconfig" }
axalloc = { path = "../axalloc", optional = true }
kernel_guard = { path = "../../crates/kernel_guard" }
spinlock = { path = "../../crates/spinlock" }
ratio = { path = "../../crates/ratio", optional = true }
lazy_init = { path = "../../crates/lazy_init" }
page_table = { path = "../../crates/page_table", optional = true }
page_table_entry = { path = "../../crates/page_table_entry", optional = true }
percpu = { path = "../../crates/percpu" }
memory_addr = { path = "../../crates/memory_addr" }
handler_table = { path = "../../crates/handler_table" }
crate_interface = { path = "../../crates/crate_interface" }
[target.'cfg(target_arch = "x86_64")'.dependencies]
x86 = "0.52"
x86_64 = "0.14"
x2apic = "0.4"
raw-cpuid = "11.0"
[target.'cfg(any(target_arch = "riscv32", target_arch = "riscv64"))'.dependencies]
riscv = "0.10"
sbi-rt = { version = "0.0.2", features = ["legacy"] }
[target.'cfg(target_arch = "aarch64")'.dependencies]
aarch64-cpu = "9.3"
tock-registers = "0.8"
arm_gic = { path = "../../crates/arm_gic" }
[target.'cfg(any(target_arch = "riscv32", target_arch = "riscv64", target_arch = "aarch64"))'.dependencies]
dtb = {path = "../../crates/dtb" }
[build-dependencies]
axconfig = { path = "../axconfig" }