A hobby operating system from scratch.
The build system used for zerOS is cargo-make
1.
To build and test zerOS, the only things you need to do are :
- For now, modify
zerOS/kconfig.toml
if you want to change default config options. - Then type
cargo make zerOS build profile=... arch=... cpu=...
to build zerOS. The following options are accepted :profile
: one ofdev
,dev-lto
,release
orrelease-lto
arch
: for now, onlyamd64
or an alias of it (e.g.x64-64
,x86_64
). Options likely to be the next ones I would choose to develop areaarch64
,riscv64
, andx86
.cpu
: The optional target CPU/MCU, e.g.skylake
or evennative
- And finally, to run through QEMU, type
cargo make zerOS run arch=... cpu=... accel=...
, witharch
andcpu
being the same options as in the previous command, andaccel
being the optional name for a QEMU-supported accelerator (e.g.kvm
). Note that debugging with GDB while running through an accelerator such as Linux's KVM is not supported/not possible at all.
Footnotes
-
TODO: add a link to either the github or website of cargo-make ↩