unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: 37466@debbugs.gnu.org
Subject: [bug#37466] [WIP v2 3/7] gnu: Add heads-linuxboot.
Date: Tue, 24 Sep 2019 16:01:53 +0200	[thread overview]
Message-ID: <20190924140157.23564-4-dannym@scratchpost.org> (raw)
In-Reply-To: <20190924140157.23564-1-dannym@scratchpost.org>

* gnu/packages/heads.scm (heads-linuxboot): New variable.
---
 gnu/packages/heads.scm | 46 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/heads.scm b/gnu/packages/heads.scm
index 94764e9a1f..72565531e3 100644
--- a/gnu/packages/heads.scm
+++ b/gnu/packages/heads.scm
@@ -507,3 +507,49 @@ done
 payload to provide a secure, flexible boot environment for laptops and
 servers.")
     (license license:gpl2+))))
+
+(define-public heads-linuxboot
+  (package
+    (inherit heads)
+    (name "heads-linuxboot")
+    (arguments
+     (substitute-keyword-arguments (package-arguments heads)
+      ((#:phases phases)
+       `(modify-phases ,phases
+          (add-before 'unpack-heads-packages 'unpack-linuxboot
+            (lambda* (#:key inputs #:allow-other-keys)
+               (mkdir-p "build")
+               (copy-recursively (assoc-ref inputs "linuxboot") "build/linuxboot-git")
+               (copy-recursively (assoc-ref inputs "edk2") "build/linuxboot-git/edk2")
+               (invoke "chmod" "-R" "u+w" "build/linuxboot-git")
+               (chmod "build/linuxboot-git/Makefile" #o664)
+               (substitute* "build/linuxboot-git/dxe/Makefile"
+                (("/usr/bin/") ""))
+               #t))))))
+    (native-inputs
+     `(("edk2"
+        ,(origin
+             (method git-fetch)
+             (uri (git-reference
+                   (url "https://github.com/linuxboot/edk2")
+                   (commit "UDK2018")
+                   (recursive? #t))) ; openssl
+             (file-name "edk2-checkout")
+             (sha256
+              (base32 "0crjx1hg1m5mir2qm96dbcc3glrnww3ni0bc9f370qmm337wzlhi"))))
+       ("libuuid" ,util-linux) ; TODO: Move to heads' internal dependencies (for edk2).
+       ("nasm" ,nasm) ; TODO: Move to heads' internal dependencies (for edk2).
+       ("python" ,python-2) ; TODO: Move to heads' internal dependencies (for edk2).
+       ("acpica" ,acpica) ; TODO: Move to heads' internal dependencies (for edk2).
+       ("file" ,file)
+       ("linuxboot"
+        ,(origin
+             (method git-fetch)
+             (uri (git-reference
+                   (url "https://github.com/osresearch/linuxboot.git")
+                   (commit "b5376a441e8e85cbf722e943bb8294958e87c784")
+                   (recursive? #t)))
+             (file-name "linuxboot-checkout")
+             (sha256
+              (base32 "1bdj4m9dvih9fhp5q5c6cp5sphzbpag5gp4bz1p8g9lqi49lb7av"))))
+       ,@(package-native-inputs heads)))))

  parent reply	other threads:[~2019-09-24 14:41 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-20  1:02 [bug#37466] [PATCH 0/4] Add heads Danny Milosavljevic
2019-09-20  7:31 ` [bug#37466] [PATCH 1/4] gnu: Add musl-cross Danny Milosavljevic
2019-09-20  7:31   ` [bug#37466] [PATCH 2/4] gnu: Add heads Danny Milosavljevic
2019-09-20 12:05     ` Björn Höfling
2019-09-20 13:49       ` Danny Milosavljevic
2019-09-20 14:45         ` Julien Lepiller
2019-09-24 14:40         ` Danny Milosavljevic
2019-09-24 14:41           ` Danny Milosavljevic
2019-09-25  0:24             ` Danny Milosavljevic
2019-09-20  7:31   ` [bug#37466] [PATCH 3/4] gnu: Add heads-linuxboot Danny Milosavljevic
2019-09-20  7:31   ` [bug#37466] [PATCH 4/4] gnu: Add heads-qemu-linuxboot Danny Milosavljevic
2019-09-24 14:01 ` [bug#37466] [WIP v2 0/7] Add heads Danny Milosavljevic
2019-09-24 14:01   ` [bug#37466] [WIP v2 1/7] gnu: Add musl-cross Danny Milosavljevic
2019-09-24 14:01   ` [bug#37466] [WIP v2 2/7] gnu: Add heads Danny Milosavljevic
2019-09-24 14:01   ` Danny Milosavljevic [this message]
2019-09-24 14:01   ` [bug#37466] [WIP v2 4/7] gnu: Add heads-qemu-linuxboot Danny Milosavljevic
2019-09-24 14:01   ` [bug#37466] [WIP v2 5/7] gnu: Add heads-coreboot Danny Milosavljevic
2019-09-24 14:01   ` [bug#37466] [WIP v2 6/7] gnu: Add heads-qemu-coreboot Danny Milosavljevic
2019-09-24 14:01   ` [bug#37466] [WIP v2 7/7] gnu: Add heads-kgpe-d16 Danny Milosavljevic
2019-09-29 11:07   ` [bug#37466] [WIP v3 0/7] Add heads Danny Milosavljevic
2019-09-29 11:07     ` [bug#37466] [WIP v3 1/7] gnu: Add musl-cross Danny Milosavljevic
2019-09-29 11:07     ` [bug#37466] [WIP v3 2/7] gnu: Add heads Danny Milosavljevic
2019-09-29 11:07     ` [bug#37466] [WIP v3 3/7] gnu: Add heads-linuxboot Danny Milosavljevic
2019-09-29 11:07     ` [bug#37466] [WIP v3 4/7] gnu: Add heads-qemu-linuxboot Danny Milosavljevic
2019-09-29 11:07     ` [bug#37466] [WIP v3 5/7] gnu: Add heads-coreboot Danny Milosavljevic
2019-09-29 11:07     ` [bug#37466] [WIP v3 6/7] gnu: Add heads-qemu-coreboot Danny Milosavljevic
2019-09-29 11:07     ` [bug#37466] [WIP v3 7/7] gnu: Add heads-kgpe-d16 Danny Milosavljevic
2019-10-02 21:15     ` [bug#37466] [WIP v4 0/7] Add heads Danny Milosavljevic
2019-10-02 21:15       ` [bug#37466] [WIP v4 1/7] gnu: Add musl-cross Danny Milosavljevic
2019-10-07 13:50         ` Danny Milosavljevic
2020-05-02 15:52           ` Danny Milosavljevic
2019-10-02 21:15       ` [bug#37466] [WIP v4 2/7] gnu: Add heads Danny Milosavljevic
2019-10-02 21:15       ` [bug#37466] [WIP v4 3/7] gnu: Add heads-linuxboot Danny Milosavljevic
2019-10-02 21:15       ` [bug#37466] [WIP v4 4/7] gnu: Add heads-qemu-linuxboot Danny Milosavljevic
2019-10-02 21:16       ` [bug#37466] [WIP v4 5/7] gnu: Add heads-coreboot Danny Milosavljevic
2019-10-02 21:16       ` [bug#37466] [WIP v4 6/7] gnu: Add heads-qemu-coreboot Danny Milosavljevic
2019-10-02 21:16       ` [bug#37466] [WIP v4 7/7] gnu: Add heads-kgpe-d16 Danny Milosavljevic
2020-05-02 17:11       ` [bug#37466] [WIP v5 0/8] Add heads Danny Milosavljevic
2020-05-02 17:11         ` [bug#37466] [WIP v5 1/8] gnu: Add elfutils@0.174 Danny Milosavljevic
2020-05-02 17:11         ` [bug#37466] [WIP v5 2/8] gnu: Add heads Danny Milosavljevic
2020-05-02 17:11         ` [bug#37466] [WIP v5 3/8] gnu: Add heads-linuxboot Danny Milosavljevic
2020-05-02 17:11         ` [bug#37466] [WIP v5 4/8] gnu: Add heads-qemu-linuxboot Danny Milosavljevic
2020-05-02 17:11         ` [bug#37466] [WIP v5 5/8] gnu: Add heads-coreboot Danny Milosavljevic
2020-05-02 17:11         ` [bug#37466] [WIP v5 6/8] gnu: Add heads-qemu-coreboot Danny Milosavljevic
2020-05-02 17:11         ` [bug#37466] [WIP v5 7/8] gnu: Add heads-kgpe-d16 Danny Milosavljevic
2020-05-02 17:11         ` [bug#37466] [WIP v5 8/8] gnu: Add heads-diesel Danny Milosavljevic
2020-05-24 22:32         ` [bug#37466] [WIP v6 0/4] Add heads and co Danny Milosavljevic
2020-05-24 22:32           ` [bug#37466] [WIP v6 1/4] gnu: Add elfutils@0.174 Danny Milosavljevic
2020-05-24 22:32           ` [bug#37466] [WIP v6 2/4] gnu: Add heads Danny Milosavljevic
2020-05-24 22:32           ` [bug#37466] [WIP v6 3/4] gnu: Add heads-linuxboot Danny Milosavljevic
2020-05-24 22:32           ` [bug#37466] [WIP v6 4/4] gnu: Add heads-qemu-linuxboot Danny Milosavljevic
2020-06-01 10:54 ` [bug#37466] [WIP v7 0/4] Add heads and co Danny Milosavljevic
2020-06-01 10:54   ` [bug#37466] [WIP v7 1/4] gnu: Add elfutils@0.174 Danny Milosavljevic
2020-06-01 10:54   ` [bug#37466] [WIP v7 2/4] gnu: Add heads Danny Milosavljevic
2020-06-01 10:54   ` [bug#37466] [WIP v7 3/4] gnu: Add heads-linuxboot Danny Milosavljevic
2020-06-01 10:54   ` [bug#37466] [WIP v7 4/4] gnu: Add heads-qemu-linuxboot Danny Milosavljevic
2020-06-01 11:08   ` [bug#37466] [WIP v7 0/4] Add heads and co Danny Milosavljevic
2020-06-02  9:14   ` Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190924140157.23564-4-dannym@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=37466@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).