flash.sh: remove last references in code to flashrom, use more generic FLASH_OPTIONS instead, might cchange in the future.

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
Thierry Laurion 2024-09-10 21:12:56 -04:00
parent 697b20ba97
commit 542e1b51b4

View File

@ -1,7 +1,5 @@
#!/bin/ash #!/bin/ash
# #
# based off of flashrom-x230
#
# NOTE: This script is used on legacy-flash boards and runs with busybox ash, # NOTE: This script is used on legacy-flash boards and runs with busybox ash,
# not bash # not bash
set -e -o pipefail set -e -o pipefail
@ -14,7 +12,7 @@ TRACE "Under /bin/flash.sh"
case "$CONFIG_FLASH_OPTIONS" in case "$CONFIG_FLASH_OPTIONS" in
"" ) "" )
die "ERROR: No flash options have been configured!\n\nEach board requires specific flashrom options and it's unsafe to flash without them.\n\nAborting." die "ERROR: No flash options have been configured!\n\nEach board requires specific CONFIG_FLASH_OPTIONS options configured. It's unsafe to flash without them.\n\nAborting."
;; ;;
* ) * )
DEBUG "Flash options detected: $CONFIG_FLASH_OPTIONS" DEBUG "Flash options detected: $CONFIG_FLASH_OPTIONS"