Skip to main content

generate

Function generate 

Source
pub fn generate(
    card: &CardModel,
    spec: &PanelSpec,
    label: &str,
    format: &str,
    load: Loader<'_>,
) -> Result<GenOutputs>
Expand description

Generate a spec’s configuration in memory.

The .rcvbp, the basic pack, the boot image laid out for card and the sources report. label names the spec in the report; format names a codec in rcvbp::formats(); load resolves [chip].library.

§Errors

Fails on an unknown format, an invalid spec or chip library. A boot-image build failure is not an error here: block7 is None and the reason is the last note.