From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eleu8-0000xJ-LD for guix-patches@gnu.org; Tue, 13 Feb 2018 13:02:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eleu2-00053G-Tg for guix-patches@gnu.org; Tue, 13 Feb 2018 13:02:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:33839) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eleu2-000538-QY for guix-patches@gnu.org; Tue, 13 Feb 2018 13:02:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eleu2-0006A2-JR for guix-patches@gnu.org; Tue, 13 Feb 2018 13:02:02 -0500 Subject: [bug#30446] [PATCH 2/3] gnu: Add intelmetool. Resent-Message-ID: From: Danny Milosavljevic Date: Tue, 13 Feb 2018 19:01:44 +0100 Message-Id: <20180213180145.4412-2-dannym@scratchpost.org> In-Reply-To: <20180213180145.4412-1-dannym@scratchpost.org> References: <20180213180001.4339-1-dannym@scratchpost.org> <20180213180145.4412-1-dannym@scratchpost.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30446@debbugs.gnu.org * gnu/packages/flashing-tools.scm (intelmetool): New variable. --- gnu/packages/flashing-tools.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm index c29982551..78981f4b6 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -35,6 +35,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages flex) #:use-module (gnu packages elf) + #:use-module (gnu packages pciutils) #:use-module (gnu packages pkg-config) #:use-module (gnu packages libusb) #:use-module (gnu packages libftdi) @@ -365,3 +366,43 @@ referred to as the \"Odin 3 protocol\".") (description "This package provides @ifdtool}, a program to dump Intel Firmware Descriptor data of an image file.") (license license:gpl2)))) + +(define-public intelmetool + (let ((commit "1b64ae1119fc7891b043d5d29bf93859ef9dbfa1") + (revision "0")) + (package + (name "intelmetool") + (version (git-version "0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://review.coreboot.org/p/coreboot") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0i3h9ns5f0z9ffapmlcj1mcgi5b1kzdlakixs2i8s4mkjn0aidsc")))) + (build-system gnu-build-system) + (inputs + `(("pciutils" ,pciutils) + ("zlib" ,zlib))) + (arguments + `(#:make-flags + (list "CC=gcc" + "INSTALL=install" + (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "util/intelmetool") + #t)) + (delete 'configure) + (delete 'check)))) + (home-page "https://github.com/zamaudio/intelmetool") + (synopsis "Intel ME tools") + (description "This package provides tools for working with Intel +Management Engine (ME). You need to @code{sudo rmmod mei_me} and +@code{sudo rmmod mei} before using this tool. Also pass +@code{iomem=relaxed} to the Linux kernel command line.") + (license license:gpl2))))