common/arm64.nix: allow to pass extra flags to flashrom scripts

master
Adam Joseph 1 year ago
parent db21d5d2ac
commit 1b602c7f98

@ -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 "";

Loading…
Cancel
Save