Skip to content

feat: support shrinking and growing properties#32

Open
m4tx wants to merge 2 commits into
mut-fdtfrom
mut-fdt-features
Open

feat: support shrinking and growing properties#32
m4tx wants to merge 2 commits into
mut-fdtfrom
mut-fdt-features

Conversation

@m4tx
Copy link
Copy Markdown
Collaborator

@m4tx m4tx commented Mar 16, 2026

This expands FdtPropertyMut::set_value with:

  • shrinking the values by padding with NOPs
  • expanding the values if there is a sufficient number of null bytes or NOPs after the original value

This adds `FdtMut` struct and very simple in-place FDT manipulation
functionality, currently only supporting modifying values without
reallocation.

This is mostly to lay out foundation and APIs for this - more
functionality to come in the future PRs.
@m4tx m4tx requested a review from qwandor March 16, 2026 13:11
This expands FdtPropertyMut::set_value with:
- shrinking the values by padding with NOPs
- expanding the values if there is a sufficient number of null bytes or
  NOPs after the original value
@m4tx m4tx force-pushed the mut-fdt-features branch from 74c6249 to fbee71b Compare March 16, 2026 13:29
@m4tx m4tx force-pushed the mut-fdt branch 3 times, most recently from e50bca5 to 9c9ea2e Compare May 18, 2026 14:28
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.

2 participants