From 1b602c7f9812e5f3c6662baa7c8c6238fd1de9f9 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 5 Jul 2023 00:31:51 -0700 Subject: [PATCH] common/arm64.nix: allow to pass extra flags to flashrom scripts --- src/platform/common/arm64.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/common/arm64.nix b/src/platform/common/arm64.nix index 8c5c33a..b232974 100644 --- a/src/platform/common/arm64.nix +++ b/src/platform/common/arm64.nix @@ -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 "";