Skip to content

Commit ee742f1

Browse files
committed
feat: refactor for polyhal-v2
1 parent 55dd3cb commit ee742f1

File tree

44 files changed

+614
-685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+614
-685
lines changed

.cargo/config.toml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,2 @@
1-
# 编译的目标平台
2-
[build]
3-
target = 'riscv64gc-unknown-none-elf'
4-
# target = 'x86_64-unknown-none'
5-
# target = 'aarch64-unknown-none-softfloat'
6-
# target = 'loongarch64-unknown-none'
7-
8-
# This flags also can be set from every target.
9-
rustflags = [
10-
'-Cforce-frame-pointers=yes',
11-
'-Clink-arg=-no-pie',
12-
'--cfg=board="qemu"',
13-
'--cfg=root_fs="fat32"',
14-
'-Zunstable-options',
15-
'-Ztls-model=local-exec',
16-
# '--cfg=driver="kvirtio,kgoldfish-rtc,ns16550a"',
17-
# '--extern=force:kernel'
18-
# '-Zunstable-options',
19-
# '--check-cfg=values(board, "qemu","k210","cv1811h", "knvme", "")',
20-
# '--cfg=kernel_base="0xffffffc080200000"', # riscv64imac-unknown-none-elf
21-
# '--cfg=kernel_base="0xffffff8000200000"', # x86_64-unknown-none
22-
]
23-
241
[env]
252
ROOT_MANIFEST_DIR = "../"
26-
27-
[target.riscv64imac-unknown-none-elf]
28-
[target.x86_64-unknown-none]
29-
[target.aarch64-unknown-none-softfloat]
30-
[target.loongarch64-unknown-none]
31-
32-
[unstable]
33-
features = ['dev_dep','host_dep']

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,13 @@
22
"rust-analyzer.check.allTargets": false,
33
"rust-analyzer.check.extraArgs": [],
44
"rust-analyzer.procMacro.enable": true,
5+
"rust-analyzer.cargo.target": "riscv64gc-unknown-none-elf",
6+
// "rust-analyzer.cargo.target": "x86_64-unknown-none",
7+
// "rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
8+
// "rust-analyzer.cargo.target": "loongarch64-unknown-none",
9+
"rust-analyzer.cargo.extraEnv": {
10+
"RUSTFLAGS": "-Clink-arg=-no-pie --cfg=root_fs=\"ext4_rs\"",
11+
"BOARD": "qemu"
12+
},
513
"deno.enable": true
614
}

0 commit comments

Comments
 (0)