diff options
| author | Pali Rohár <[email protected]> | 2021-07-23 11:14:16 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-07-31 09:49:31 +0200 |
| commit | 19a81bdb3ecb4c7dae6794bbee3a1fd4327b6a67 (patch) | |
| tree | e7559c8ad65d110b3870d88c0a907e5f00b8bf13 | |
| parent | a18ae18a59615b1e7ff82bcf2d5740e2adbf6165 (diff) | |
tools: dumpimage: Show error message when trying to extract data from kwbimage
There is no code for extracting data from kwbimage, so show an error
message when user tries this via e.g. dumpimage call:
./tools/dumpimage -T kwbimage -o /tmp/out u-boot-spl.kwb
Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
| -rw-r--r-- | tools/kwbimage.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 5410df63f53..9ecda861e4f 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -1867,6 +1867,11 @@ static int kwbimage_generate(struct image_tool_params *params, */ static int kwbimage_check_params(struct image_tool_params *params) { + if (params->iflag) { + fprintf(stderr, "%s: kwbimage does not support extract operation\n", params->cmdname); + return CFG_INVALID; + } + if (!params->imagename || !strlen(params->imagename)) { char *msg = "Configuration file for kwbimage creation omitted"; |
