PS13 addresses a couple lingering issues from earlier patch sets.
I also came up with a patch to try and implement the original intended behavior for '-w': https://review.coreboot.org/#/c/flashrom/+/23353/
It's a bit hacky though, though it does allow us to keep the policy decision in the CLI code. There might be a better way.
3 comments:
const char *region_file = layout->entries[i].file;
if (first_entry_encountered == 0) {
ms
Should be kept in do_write_buf_to_file() where the actual file handling […]
Done
why? is it necessary? doesn't `file` point into `argv` of main()?
No, I don't think it's necessary. It seems to be a remnant of https://mail.coreboot.org/pipermail/flashrom/2013-October/011729.html, but that may have been based on an even older version of layout.c from CrOS.
removed this as well since we don't need to allocate memory for layout.entries[i].file.
To view, visit change 23021. To unsubscribe, or for help writing mail filters, visit settings.