Skip to content

document everything involved in building an image #796

@orangecms

Description

@orangecms

platform directory

binary crate

  • manifest: Cargo.toml; name must be unique; convention tbd
  • target config: .cargo/config.toml; linker script and optimizations
  • build.rs for generating linker script (tbd via build system)

building, flashing and running images

  • done in oreboot build system (currently xtask/)
  • instrument building binary crates with configured features
    • objcopy to target/$arch/release/$elfname.bin
  • stitch together stage binaries
    • depending on layout declaration (DTFS) and storage (SPI flash, SD card, ...)
    • offer passing custom declaration
    • needs solid validation, error handling and feedback
    • must not leak build system internals to the end user
  • commonly, add vendor specific header(s), possibly signatures for secure boot
  • per-platform functions/libraries to
    • flash an image
    • provision fuses (secure boot)
    • run bt0 (and possibly more) directly
    • debug (gdb, OpenOCD, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions