From patchwork Wed Jan 23 00:03:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danny Milosavljevic X-Patchwork-Id: 796 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 317C416A89; Wed, 23 Jan 2019 00:04:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id E05C916A86 for ; Wed, 23 Jan 2019 00:04:31 +0000 (GMT) Received: from localhost ([127.0.0.1]:52507 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm61v-0005CL-FT for patchwork@mira.cbaines.net; Tue, 22 Jan 2019 19:04:31 -0500 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 X-Loop: help-debbugs@gnu.org Subject: [bug#34175] [PATCH 4/4] gnu: Add efilinux. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Jan 2019 00:04:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34175 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34175@debbugs.gnu.org Received: via spool by 34175-submit@debbugs.gnu.org id=B34175.15482018004153 (code B ref 34175); Wed, 23 Jan 2019 00:04:03 +0000 Received: (at 34175) by debbugs.gnu.org; 23 Jan 2019 00:03:20 +0000 Received: from localhost ([127.0.0.1]:41808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gm60m-00014u-9m for submit@debbugs.gnu.org; Tue, 22 Jan 2019 19:03:20 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:56000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gm60j-00014Y-Id for 34175@debbugs.gnu.org; Tue, 22 Jan 2019 19:03:17 -0500 Received: from dayas.3.home (178.113.238.145.wireless.dyn.drei.com [178.113.238.145]) by dd26836.kasserver.com (Postfix) with ESMTPSA id A941033614C3; Wed, 23 Jan 2019 01:03:16 +0100 (CET) From: Danny Milosavljevic Date: Wed, 23 Jan 2019 01:03:04 +0100 Message-Id: <20190123000304.11385-4-dannym@scratchpost.org> X-Mailer: git-send-email 2.20.1 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 Tags: patch X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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)))