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