Draft
Conversation
1f08a96 to
b655169
Compare
63301ba to
c3e4f83
Compare
c3e4f83 to
4f1a991
Compare
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 <l.anderweit@phytec.de>
Add function pu_flash_validate_config(). Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
Validate the parsed config before initializing the device. The validation currently includes checking for file existence and checksum validation. Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
The property for dry run, which indicates that no changes are made on the device. Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
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 <l.anderweit@phytec.de>
Passing this parameter enables dry run mode which disables all changes to the device. Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
4f1a991 to
985355a
Compare
a97a710 to
ed48627
Compare
9ab6f72 to
41bf69f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.