mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
cbfstool: fix option parsing
"cbfstool create -B bootblock -s size" (in this order) would break bootblock selection. Change-Id: I9a9f5660827c8bf60dae81b519c6f026f3aaa0f3 Found-by: Coverity Scan Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/6564 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
a0a019698d
commit
e887ca5a74
1 changed files with 1 additions and 0 deletions
|
@ -671,6 +671,7 @@ int main(int argc, char **argv)
|
||||||
if (tolower(suffix[0])=='m') {
|
if (tolower(suffix[0])=='m') {
|
||||||
param.size *= 1024 * 1024;
|
param.size *= 1024 * 1024;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 'B':
|
case 'B':
|
||||||
param.bootblock = optarg;
|
param.bootblock = optarg;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue