From 73f5bda01dbb1f6726593ab7a6139a1a8a1afb5a Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sun, 19 Oct 2014 07:53:45 +0000 Subject: 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 Signed-off-by: Carl-Daniel Hailfinger Acked-by: Stefan Tauner --- flash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flash.h') diff --git a/flash.h b/flash.h index 03b26e7..ff4b06b 100644 --- a/flash.h +++ b/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 */ -- cgit v1.1