Add deferred --image processing

The general idea and most of the code are based on the following
commits in the chromiumos flashrom tree:

Corresponding to flashrom svn r1482.

Signed-off-by: Louis Yung-Chieh Lo <>

and the main part:
Signed-off-by: David Hendricks <>

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.

Signed-off-by: Stefan Tauner <>
Acked-by: David Hendricks <>
3 files changed