添加了新开发板的支持库,但支持库没有包含进最终生成的内核里。 #10
-
|
为了排除其它条件的影响,假定要添加的开发板是aarch64-qemu-virt。 对StarryOS进行了如下的修改:
碰到的问题:
希望能有一些建议,不胜感谢! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
参考 Lines 45 to 46 in 066ebdb 和 https://github.com/Starry-OS/arceos/blob/12d6a1e973004806dd378f4424058c8da5783d41/modules/axhal/src/lib.rs#L42-L52 您需要通过 |
Beta Was this translation helpful? Give feedback.
-
|
ArceOS 主线有添加新的硬件平台的测例,测例代码详见 https://github.com/arceos-org/arceos/blob/main/examples/helloworld-myplat/src/main.rs。对应的执行指令详见 https://github.com/arceos-org/arceos/blob/main/.github/workflows/build.yml#L139-L143。 添加新的平台需要如下操作:
对于第一步,我们封装了一个 crate 可以直接完成该操作,可见 https://github.com/arceos-org/arceos/blob/main/.github/workflows/build.yml#L173-L181 |
Beta Was this translation helpful? Give feedback.
参考
StarryOS/src/main.rs
Lines 45 to 46 in 066ebdb
和
https://github.com/Starry-OS/arceos/blob/12d6a1e973004806dd378f4424058c8da5783d41/modules/axhal/src/lib.rs#L42-L52
您需要通过
extern crate axplat_xxx的形式把新的平台支持链接进内核来