From a180b832e722e7dfbd390b7cdb15190c9c527e70 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Mon, 31 Oct 2022 00:52:01 -0700 Subject: [PATCH] kgpe: flashrom.layout no longer needed Since a6cd35, ownerboot includes a patch to flashrom which allows nested (but non-overlapping) fmap regions, so the flashrom.layout file is no longer necessary. --- src/platform/kgpe/default.nix | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/platform/kgpe/default.nix b/src/platform/kgpe/default.nix index b10421e..e870f10 100644 --- a/src/platform/kgpe/default.nix +++ b/src/platform/kgpe/default.nix @@ -22,18 +22,9 @@ config = ./coreboot.config; coreboot-toolchain = with final.coreboot-toolchain; [ x64 i386 ]; }).overrideAttrs (a: { - # KGPE has an FMAP region "BIOS" which overlaps the whole flash; - # this is needed for some kind of protection mechanism in the - # SMBIOS. Unfortunately it causes flashrom to choke. So we have - # to feed flashrom a `flashrom.layout` file instead of letting it - # use the FMAP. postInstall = (a.postInstall or "") + '' cp src/mainboard/asus/kgpe-d16/cmos.layout $out/ cp src/mainboard/asus/kgpe-d16/cmos.default $out/ - cat > $out/flashrom.layout <<\EOF - 00000400:007fffff NORMAL - 00800400:00ffffff FALLBACK - EOF ''; }); });