From b564f8897f873be22cac512a2c1b6115133f9192 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 14 May 2023 22:06:16 -0700 Subject: [PATCH] arm64: flashrom.forChromebook only for ec In order to write to the chromebook embedded controller flash we need to use Google's fork of flashrom. However for writing to the chromebook CPU firmware flash (which is a different flash chip) we can use mainline flashrom. So let's do that. --- src/platform/kevin/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/platform/kevin/default.nix b/src/platform/kevin/default.nix index 7a56204..35e4962 100644 --- a/src/platform/kevin/default.nix +++ b/src/platform/kevin/default.nix @@ -143,11 +143,9 @@ in { ecfw-scripts = final.nixpkgsOnBuildForHost.callPackage (import ./ecfw/scripts.nix) { inherit (final) ectool ecfw; - flashrom-chromebook = final.flashrom; + flashrom-chromebook = prev.flashrom.override { forChromebook = true; }; }; - flashrom = prev.flashrom.override { forChromebook = true; }; - ectool = final.nixpkgsOnBuildForHost.callPackage (import ../../util/ectool { boardName = "kevin"; }) { }; scripts = let