Crate linux_bzimage_builder

Source
Expand description

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.

Re-exports§

pub use encoder::encode_kernel;
pub use encoder::PayloadEncoding;

Modules§

encoder
This module is used to compress kernel ELF.

Enums§

BzImageType
The type of the bzImage that we are building through make_bzimage.

Functions§

legacy32_rust_target_json
To build the legacy32 bzImage setup header, the OSDK should use this target.
make_bzimage
Making a bzImage given the kernel ELF and setup source.