mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
Make read before write configurable (infrastructure part)
- Introduce a variable in doit() that allows to influence read-before-write and its consequences. - Modify build_new_image so that it still works even if the old content is not read before. - Add copy_old_content() to ease the pain for future patches. Corresponding to flashrom svn r1851. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
2
flash.h
2
flash.h
@ -341,7 +341,7 @@ int register_include_arg(char *name);
|
||||
int process_include_args(void);
|
||||
int read_romlayout(const char *name);
|
||||
int normalize_romentries(const struct flashctx *flash);
|
||||
int build_new_image(const struct flashctx *flash, uint8_t *oldcontents, uint8_t *newcontents);
|
||||
int build_new_image(struct flashctx *flash, bool oldcontents_valid, uint8_t *oldcontents, uint8_t *newcontents);
|
||||
void layout_cleanup(void);
|
||||
|
||||
/* spi.c */
|
||||
|
Reference in New Issue
Block a user