Commit 4f10f45
committed
initrd: strip layout flags from flashprog wp invocations
flashprog wp subcommands (status, list, enable, disable, range) do not
accept --ifd, -i <region>, or --image <region> layout flags. Boards
like novacustom-v560tu/v540tu include these in CONFIG_FLASH_OPTIONS,
causing 'unrecognized option' errors from check_spi_wp() and the
config-gui WP status check.
Strip --ifd, --image <region>, and -i <region> alongside --progress
when building wp_opts in both flash.sh and config-gui.sh.
Signed-off-by: Thierry Laurion <insurgo@riseup.net>1 parent 3284a4a commit 4f10f45
2 files changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
711 | | - | |
| 711 | + | |
| 712 | + | |
712 | 713 | | |
713 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
714 | 719 | | |
715 | 720 | | |
716 | 721 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
0 commit comments