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.tomlif 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,releaseorrelease-ltoarch: for now, onlyamd64or 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.skylakeor evennative
- And finally, to run through QEMU, type
cargo make zerOS run arch=... cpu=... accel=..., witharchandcpubeing the same options as in the previous command, andaccelbeing 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 ↩