From patchwork Sun Apr 12 17:59:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 21207 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 537FE27BBE4; Sun, 12 Apr 2020 19:00:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 9072727BBE1 for ; Sun, 12 Apr 2020 19:00:11 +0100 (BST) Received: from localhost ([::1]:35700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNgtv-0002eW-43 for patchwork@mira.cbaines.net; Sun, 12 Apr 2020 14:00:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51976) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNgtn-0002e5-Ru for guix-patches@gnu.org; Sun, 12 Apr 2020 14:00:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNgtm-0005cW-HP for guix-patches@gnu.org; Sun, 12 Apr 2020 14:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47276) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNgtm-0005c2-Ck for guix-patches@gnu.org; Sun, 12 Apr 2020 14:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jNgtm-00079Z-DL for guix-patches@gnu.org; Sun, 12 Apr 2020 14:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40579] [RFC PATCH] add iPXE. Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Apr 2020 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40579 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40579@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158671436027415 (code B ref -1); Sun, 12 Apr 2020 18:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Apr 2020 17:59:20 +0000 Received: from localhost ([127.0.0.1]:58822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNgt6-000787-8F for submit@debbugs.gnu.org; Sun, 12 Apr 2020 13:59:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:50372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNgt0-00077t-1G for submit@debbugs.gnu.org; Sun, 12 Apr 2020 13:59:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51765) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNgsx-00021P-Us for guix-patches@gnu.org; Sun, 12 Apr 2020 13:59:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNgsw-0004r2-DO for guix-patches@gnu.org; Sun, 12 Apr 2020 13:59:11 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:54770) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNgsw-0004pX-4Q for guix-patches@gnu.org; Sun, 12 Apr 2020 13:59:10 -0400 Received: by mail-wm1-x32e.google.com with SMTP id h2so7513734wmb.4 for ; Sun, 12 Apr 2020 10:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=IwAMjfmJXktGXrnTD5nTxL1QLMMHDe4AtgL7b2VGpNo=; b=LPWwYliZlVhitfMM5v89Sl6n5A3Vb9RiiXxv2ItlYLexU1tdGw6kAugosQ33NOAikg kHFigaQTMjQhRDq9KtZgyb3UuujGHY9ZMATvrZqLhzEM+GnjhaUWA7DSGMQg+3tiodKL BRLst9AX1YaP30Z4rjLSVHCXE/yYse3JNT+sHWvyMnAU7uTd7pv872YCKCPh+uJhXh+1 PbwF18hV+kl6IqQrzn0TrW6lb0ejTIdabwtqSaUXvBmNqRjQO0zdHLX2HWYr/DC25wUz RlBXJ0e6VD4PCGJlLu3qqi1lPZ5FPMh3WuF3yqopv5C+H8j1Q8sEuzdOXiyT1UKm6xt2 umQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=IwAMjfmJXktGXrnTD5nTxL1QLMMHDe4AtgL7b2VGpNo=; b=ghztM2sHmhidFfw1cm1OKjBP56ATmUqsJTMJ2CFpp3BLjfh34R6j8PiyPFvwwcTluo Pjhjw6xD3s6f82Ie3sp5LYaI+h5omlu2B0mc6e5r2dSl7Yc0sxeYGeM1ygBanSyF3vsn Jf32ZF/Eb1swQD4oRgPAxegH57VsRbGBNjb7p/FiKdbWTAu6reNcKkeQJ+waYyccMeeF ngY/B3SZdFLA3IooQBICP8PUP3Leaso2x0t3mm2KkpE0d3eD+/n5xs/NMfMluhH2YDxe iRetGLUBMxxJpY+IY2+ZBQBGn0UiHctN6X5aL/vQYxy3qzaPSD3u2jsczuwMruSpoAB6 APOQ== X-Gm-Message-State: AGi0PuaWJxXL+J/iJwZ3Weqy9bGHneyYYdAlBdne/AjYFd5UIx11Cwfj dmeyPlaYxETCD1y1WwjjKziHMoBB X-Google-Smtp-Source: APiQypKSkdqZ1y2AdlqBss5GyCYIfgSSWMFq5WT0Et71A25v4VSpdY2kiQ4r9jIVwWY6vd3/jUt+/A== X-Received: by 2002:a1c:492:: with SMTP id 140mr15839823wme.9.1586714347927; Sun, 12 Apr 2020 10:59:07 -0700 (PDT) Received: from [10.0.0.2] (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1]) by smtp.gmail.com with ESMTPSA id y20sm12101659wra.79.2020.04.12.10.59.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Apr 2020 10:59:06 -0700 (PDT) From: Vincent Legoll Message-ID: Date: Sun, 12 Apr 2020 19:59:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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 Here is a patch for review that adds iPXE. The licensing is "interesting", see: https://ipxe.org/licensing Is that a problem ? There was no real install target in makefile, so I added one, any hints on how to write that in a cleaner way ? I've put all firmware & rom images in $(out)/bin Is there a better subdirectory to put such files ? The double with-directory-excursion could be handled with a single phase cd'ing into src, but I can't find where I've seen that... WDYT ? From d0fcf7a69a7503e8fb5b61a4c1109ebfed208a40 Mon Sep 17 00:00:00 2001 From: Vincent Legoll Date: Sun, 12 Apr 2020 19:54:47 +0200 Subject: [PATCH] gnu: Add iPXE. * gnu/packages/bootloaders.scm (ipxe): New variable. --- gnu/packages/bootloaders.scm | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index cadcc937e1..4b1f209540 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2019 nee ;;; Copyright © 2019 Mathieu Othacehe ;;; Copyright © 2020 Björn Höfling +;;; Copyright © 2020 Vincent Legoll ;;; ;;; This file is part of GNU Guix. ;;; @@ -834,6 +835,59 @@ to Novena upstream, does not load u-boot.img from the first partition.") `(("firmware" ,arm-trusted-firmware-rk3399) ,@(package-native-inputs base)))))) +(define-public ipxe + (package + (name "ipxe") + (version "1.20.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ipxe/ipxe") + (commit (string-append "v" version)))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "0w7h7y97gj9nqvbmsg1zp6zj5mpbbpckqbbx7bpp6k3ahy5fk8zp")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'add-real-make-install + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "src/Makefile" + (("^install :") + (string-append "install :" + "\n\t@$(MKDIR) -p " + (assoc-ref outputs "out") "/bin" + "\n\t@$(CP) $(ALL) " + (assoc-ref outputs "out") "/bin" + "\n\n__old_install :"))) + #t)) + (delete 'configure) + (replace 'build + (lambda _ (with-directory-excursion "src" + (invoke "make" "-j" (number->string + (parallel-job-count)))))) + (replace 'install + (lambda _ (with-directory-excursion "src" + (invoke "make" "install"))))) + #:tests? #f)) + (native-inputs + `(("perl" ,perl) + ("syslinux" ,syslinux) + ("cdrtools" ,cdrtools) + ("mtools" ,mtools) + ("xz" ,xz))) + (home-page "https://ipxe.org") + (synopsis "PXE-compliant network boot firmware") + (description "iPXE is a network boot firmware. It provides a full PXE +implementation enhanced with additional features such as booting from: a web +server via HTTP, an iSCSI SAN, a Fibre Channel SAN via FCoE, an AoE SAN, a +wireless network, a wide-area network, an Infiniband network. It allows to +control the boot process with a script. You can use iPXE to replace the +existing PXE ROM on your network card, or you can chainload into iPXE to obtain +the features of iPXE without the hassle of reflashing.") + (license license:gpl2+))) + (define-public vboot-utils (package (name "vboot-utils") -- 2.26.0