From b5e55aabb71d196e248a09130e3cbe0a6ae5f285 Mon Sep 17 00:00:00 2001 From: Ingo Reitz <9l@9lo.re> Date: Thu, 13 Nov 2025 12:21:51 +0100 Subject: [PATCH] intelp2m: init at 2.5 --- pkgs/tools/misc/coreboot-utils/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 20 insertions(+) diff --git a/pkgs/tools/misc/coreboot-utils/default.nix b/pkgs/tools/misc/coreboot-utils/default.nix index 2be1c31df515..b7556cc77d09 100644 --- a/pkgs/tools/misc/coreboot-utils/default.nix +++ b/pkgs/tools/misc/coreboot-utils/default.nix @@ -9,6 +9,7 @@ coreutils, acpica-tools, makeWrapper, + go, gnugrep, gnused, file, @@ -182,6 +183,24 @@ let } ''; }; + # buildGoModule for some reason does not generate a binary + intelp2m = generic { + pname = "intelp2m"; + version = "2.5"; + env = { + VERSION = "2.5-${version}"; + GOCACHE = "/tmp/go-cache"; + }; + nativeBuildInputs = [ go ]; + installPhase = '' + runHook preInstall + + install -Dm755 intelp2m $out/bin/intelp2m + + runHook postInstall + ''; + meta.description = "Convert the inteltool register dump to gpio.h with GPIO configuration for porting coreboot"; + }; }; in diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4aedb08df141..200116de03b6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1835,6 +1835,7 @@ with pkgs; inteltool amdfwtool acpidump-all + intelp2m coreboot-utils ;