You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
问题
随着目前功能的添加,crates 越来越多,对应的 feature 也越来越多,而且,很多 feature 是与硬件平台绑定的,这就导致了构建系统越来越复杂。
目前的构建系统将所有参数全部放到了构建的最上层,导致用户需要关心的参数过多
目前构建与在 QEMU 运行实际掺杂在了一起,两者应该是完全独立的两部分,甚至于 AxVisor 中可以不要 QEMU 运行相关处理(完全独立出去)
优化
目的
通过重构 axvisor.sh 及
scripts/*目录下的各个脚本,来简化构建过程。简化构建过程,AxVisor 理论上应该只对外提供自己的参数(feature),其他依赖(例如 arceos 的参数)或者也其他与特定硬件平台相关的参数应该全部由构建系统内部处理
拆分构建与运行。运行相关处理则调整为完全基于 https://github.com/arceos-hypervisor/axvisor-guest 仓库镜像来实现,以便统一测试及开发过程
源码目录
硬件配置文件
硬件配置文件
config/xxx.toml中记录了硬件平台的所有参数,构建过程
axvisor.sh 硬件配置文件.toml通过执行平台配置文件,生成.hvconfig.toml全局配置文件,其记录了所有必要参数axvisor.sh all执行根据生成的.hvconfig.toml全局配置文件构建过程axvisor.sh clean清理所有构建Beta Was this translation helpful? Give feedback.
All reactions