aboutsummaryrefslogtreecommitdiff
path: root/misc-utils
diff options
context:
space:
mode:
authorBrandon Maier <brandon.maier@collins.com>2022-11-02 17:47:57 -0500
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-11-07 08:24:45 +0100
commit5ed8f1b0b72b22754e3025f9c74b37feac6fd720 (patch)
tree4dbc2832deda94e75ddb81cca4da6b0d0d4d1669 /misc-utils
parent7b5557499a5f2ef612a54014c4f4e8d368d35bd6 (diff)
misc-utils: flashcp: abort on --partition and --erase-all
Signed-off-by: Brandon Maier <brandon.maier@collins.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/flashcp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc-utils/flashcp.c b/misc-utils/flashcp.c
index f4acba5..2e8d4c1 100644
--- a/misc-utils/flashcp.c
+++ b/misc-utils/flashcp.c
@@ -282,6 +282,9 @@ int main (int argc,char *argv[])
if (flags & FLAG_HELP || device == NULL)
showusage(flags != FLAG_HELP);
+ if (flags & FLAG_PARTITION && flags & FLAG_ERASE_ALL)
+ log_failure("Option --partition does not support --erase-all\n");
+
atexit (cleanup);
/* get some info about the flash device */