From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:39479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm61V-00050K-Uh for guix-patches@gnu.org; Tue, 22 Jan 2019 19:04:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gm61V-0001xT-00 for guix-patches@gnu.org; Tue, 22 Jan 2019 19:04:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42532) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gm61U-0001wy-S5 for guix-patches@gnu.org; Tue, 22 Jan 2019 19:04:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gm61T-00016A-Ga for guix-patches@gnu.org; Tue, 22 Jan 2019 19:04:03 -0500 Subject: [bug#34175] [PATCH 4/4] gnu: Add efilinux. Resent-Message-ID: From: Danny Milosavljevic Date: Wed, 23 Jan 2019 01:03:04 +0100 Message-Id: <20190123000304.11385-4-dannym@scratchpost.org> In-Reply-To: <20190123000304.11385-1-dannym@scratchpost.org> References: <20190123000035.11320-1-dannym@scratchpost.org> <20190123000304.11385-1-dannym@scratchpost.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 34175@debbugs.gnu.org * gnu/packages/efi.scm (efilinux): New variable. --- gnu/packages/efi.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/efi.scm b/gnu/packages/efi.scm index cef37b62a..3ef06dd22 100644 --- a/gnu/packages/efi.scm +++ b/gnu/packages/efi.scm @@ -177,3 +177,42 @@ and EFI variable management.") ;; Compiling/linking/using OpenSSL is permitted. (license (list license:gpl2 license:lgpl2.1)))) + +(define-public efilinux + (package + (name "efilinux") + (version "1.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mfleming/efilinux.git") + (commit (string-append "efilinux-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b4nxzr3wl5v4b52r79iw1arfgasz26xb38r2blw9v2qz2s1q9w2")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list "CC=gcc" + (string-append "INCDIR=" (assoc-ref %build-inputs "gnu-efi") + "/include") + (string-append "LIBDIR=" (assoc-ref %build-inputs "gnu-efi") + "/lib")) + #:tests? #f ; No tests exist. + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (install-file "efilinux.efi" + (string-append (assoc-ref outputs "out") + "/libexec")) + #t))))) + (inputs + `(("gnu-efi" ,gnu-efi))) + (synopsis "Minimal Linux loader for UEFI") + (description "This package provides a minimal Linux loader as an UEFI +program.") + (home-page "https://github.com/mfleming/efilinux") + (license license:bsd-2)))