diff options
author | Louis Yung-Chieh Lo <yjlou@chromium.org> | 2011-12-25 09:12:16 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2011-12-25 09:12:16 +0000 |
commit | b04f1f40e61500a539ee2532000b7b1f53891000 (patch) | |
tree | 20ffb99db71ee422b2196d82742fdc2197ab40e7 /flash.h | |
parent | 71712bd13ebf7c666e782d2ea40b9d9fd5e70986 (diff) | |
download | flashrom-b04f1f40e61500a539ee2532000b7b1f53891000.zip flashrom-b04f1f40e61500a539ee2532000b7b1f53891000.tar.gz |
Add deferred --image processing
The general idea and most of the code are based on the following
commits in the chromiumos flashrom tree:
8fc0740356ca15d02fb1c65ab43b10844f148c3b
bb9049c66ca55e0dc621dd2c70b5d2cb6e5179bf
and the main part:
d0ea9ed71e7f86bb8e8db2ca7c32a96de25343d8
This implementation does not defer the processing until doit(), but after the
argument parsing loop only (doit() should not contain argument checks).
This allows to specify -i and -l parameters in any order.
Corresponding to flashrom svn r1482.
Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: David Hendricks <dhendrix@google.com>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -289,8 +289,9 @@ int print(int type, const char *fmt, ...) __attribute__((format(printf, 2, 3))); #define msg_cspew(...) print(MSG_BARF, __VA_ARGS__) /* chip debug barf */ /* layout.c */ +int register_include_arg(char *name); +int process_include_args(void); int read_romlayout(char *name); -int find_romentry(char *name); int handle_romentries(struct flashctx *flash, uint8_t *oldcontents, uint8_t *newcontents); /* spi.c */ |