Description platform directory
binary crates for stages bt0 + main
default declarative image layout and boot flow (currently DTFS in board.dts)
final image (tbd: oreboot-$platform-$features.bin)
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, ...)
Reactions are currently unavailable
You can’t perform that action at this time.
platform directory
bt0+mainboard.dts)oreboot-$platform-$features.bin)binary crate
Cargo.toml; name must be unique; convention tbd.cargo/config.toml; linker script and optimizationsbuild.rsfor generating linker script (tbd via build system)building, flashing and running images
xtask/)objcopytotarget/$arch/release/$elfname.binbt0(and possibly more) directlygdb, OpenOCD, ...)