Skip to content

fwmanager: Add device-table schema; declare a mock board in target/mock#367

Open
chrysh wants to merge 1 commit into
OpenPRoT:mainfrom
9elements:add-config
Open

fwmanager: Add device-table schema; declare a mock board in target/mock#367
chrysh wants to merge 1 commit into
OpenPRoT:mainfrom
9elements:add-config

Conversation

@chrysh

@chrysh chrysh commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

fwmanager-api gains the schema for the per-board device table: DeviceConfig (name, reset line, boot timeout), CommitPolicy, and a const validate() so a bad table fails the build. All values are board config and live in the new target/mock/devices.rs — a mock board with one device per archetype (direct-flash SPI "bmc", PLDM "nic") whose declaration order is the boot order; hardware targets declare their own tables later. Kept out of config.rs, which belongs to the kernel.

Part of 9elements#1 (the downstream device definitions; partitioning schemes and verification keys remain open there).

@chrysh
chrysh force-pushed the add-config branch 2 times, most recently from 836b01b to f9b8233 Compare July 24, 2026 18:05
@chrysh

chrysh commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

@FerralCoder @rusty1968 @embediver @leongross Can you have a look at a possible target config for the attached downstream and upstream devices?

@chrysh
chrysh marked this pull request as ready for review July 24, 2026 18:10
fwmanager-api gains the schema for the per-board device table:
DeviceConfig (name, reset line, boot timeout), CommitPolicy, and a
const validate() so a bad table fails the build. All values are board
config and live in the new target/mock/devices.rs — a mock board with
one device per archetype (direct-flash SPI "bmc", PLDM "nic") whose
declaration order is the boot order; hardware targets declare their
own tables later. Kept out of config.rs, which belongs to the kernel.

Assisted-by: Claude:claude-fable-5
Signed-off-by: Christina Quast <christina.quast@9elements.com>
Refs: #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant