diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2016-10-24 15:36:49 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-25 19:53:25 +1100 |
commit | 08d46d4d5eb9e903ed1e84b6b6f0b59a8b690843 (patch) | |
tree | 7ba8ace45ed6823ca1d573a3a2c475a9045636de /external | |
parent | 39fea04c47ab614ddd2c943f5308cc9d873e67a0 (diff) | |
download | skiboot-08d46d4d5eb9e903ed1e84b6b6f0b59a8b690843.zip skiboot-08d46d4d5eb9e903ed1e84b6b6f0b59a8b690843.tar.gz skiboot-08d46d4d5eb9e903ed1e84b6b6f0b59a8b690843.tar.bz2 |
external/pflash: Catch incompatible combination of flags
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/pflash/pflash.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/external/pflash/pflash.c b/external/pflash/pflash.c index 002d0dc..608220f 100644 --- a/external/pflash/pflash.c +++ b/external/pflash/pflash.c @@ -743,6 +743,16 @@ int main(int argc, char *argv[]) exit(1); } + if (flashfilename && bmc_flash) { + fprintf(stderr, "Filename or bmc flash but not both\n"); + exit(1); + } + + if (flashfilename && mtd) { + fprintf(stderr, "Filename or mtd access but not both\n"); + exit(1); + } + /* If file specified but not size, get size from file */ if (write_file && !write_size) { |