Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option --dry-run #41

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

landerweit-phytec
Copy link
Collaborator

The option --dry-run disables writing to the device. Only the partitions and input files are validated. If the input files fit inside a partition is not checked.

@landerweit-phytec landerweit-phytec added the enhancement New feature or request label Mar 7, 2023
@mschwan-phytec mschwan-phytec added this to the v0.4.0 milestone Mar 7, 2023
@mschwan-phytec mschwan-phytec removed this from the v0.4.0 milestone May 2, 2023
@landerweit-phytec landerweit-phytec force-pushed the wip-dry-run branch 2 times, most recently from 63301ba to c3e4f83 Compare June 12, 2023 12:12
Add new function validate_file(), which gets the absolute file path,
checks for file existence and validates the file with checksums.

Use this new function before writing the file to the device.

Signed-off-by: Leonard Anderweit <[email protected]>
Add function pu_flash_validate_config().

Signed-off-by: Leonard Anderweit <[email protected]>
Validate the parsed config before initializing the device.
The validation currently includes checking for file existence and
checksum validation.

Signed-off-by: Leonard Anderweit <[email protected]>
The property for dry run, which indicates that no changes are made on
the device.

Signed-off-by: Leonard Anderweit <[email protected]>
Dry run disables writing to the device. This is done by creating the
partition table and the partitions only in memory and not writing them
to the device. The input files are only validated but not written.

Signed-off-by: Leonard Anderweit <[email protected]>
Passing this parameter enables dry run mode which disables all changes
to the device.

Signed-off-by: Leonard Anderweit <[email protected]>
@landerweit-phytec landerweit-phytec added this to the v1.0.0 milestone Jul 11, 2023
@landerweit-phytec landerweit-phytec marked this pull request as draft July 13, 2023 07:40
@mschwan-phytec mschwan-phytec removed this from the v1.0.0 milestone Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants