1 unstable release

new 0.1.0 Apr 25, 2024

#578 in Unix APIs

Download history 114/week @ 2024-04-22

114 downloads per month
Used in cargo-osdk

MPL-2.0 license

27KB
569 lines

The linux bzImage builder.

This crate is responsible for building the bzImage. It contains methods to build the setup binary (with source provided in another crate) and methods to build the bzImage from the setup binary and the kernel ELF.

We should build the asterinas kernel as an ELF file, and feed it to the builder to generate the bzImage. The builder will generate the PE/COFF header for the setup code and concatenate it to the ELF file to make the bzImage.

The setup code should be built into the ELF target and we convert it to a flat binary in the builder.

Dependencies

~0.7–1.3MB
~30K SLoC