|
|
|
@ -10,12 +10,12 @@
|
|
|
|
|
scripts = let
|
|
|
|
|
flashromScript = moreFlags: ''
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
${final.flashrom}/bin/flashrom -p linux_mtd ${moreFlags}
|
|
|
|
|
${final.flashrom}/bin/flashrom -p linux_mtd ${moreFlags} $@
|
|
|
|
|
'';
|
|
|
|
|
flashromWriteScript = moreFlags:
|
|
|
|
|
flashromScript "-w ${final.image}/coreboot.rom ${moreFlags}";
|
|
|
|
|
in prev.scripts // {
|
|
|
|
|
flashrom = flashromScript "$@";
|
|
|
|
|
flashrom = flashromScript "";
|
|
|
|
|
flash-write-fallback = flashromWriteScript "--fmap -i FALLBACK";
|
|
|
|
|
flash-write-normal = flashromWriteScript "--fmap -i NORMAL";
|
|
|
|
|
flash-write-all = flashromWriteScript "";
|
|
|
|
|