[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#37466] [WIP v3 3/7] gnu: Add heads-linuxboot.
From: |
Danny Milosavljevic |
Subject: |
[bug#37466] [WIP v3 3/7] gnu: Add heads-linuxboot. |
Date: |
Sun, 29 Sep 2019 13:07:46 +0200 |
* 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 311eeeb1a1..7d1f70a621 100644
--- a/gnu/packages/heads.scm
+++ b/gnu/packages/heads.scm
@@ -510,3 +510,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)))))
- [bug#37466] [WIP v2 5/7] gnu: Add heads-coreboot., (continued)
- [bug#37466] [WIP v2 5/7] gnu: Add heads-coreboot., Danny Milosavljevic, 2019/09/24
- [bug#37466] [WIP v2 7/7] gnu: Add heads-kgpe-d16., Danny Milosavljevic, 2019/09/24
- [bug#37466] [WIP v2 6/7] gnu: Add heads-qemu-coreboot., Danny Milosavljevic, 2019/09/24
- [bug#37466] [WIP v2 2/7] gnu: Add heads., Danny Milosavljevic, 2019/09/24
- [bug#37466] [WIP v3 0/7] Add heads., Danny Milosavljevic, 2019/09/29
- [bug#37466] [WIP v3 4/7] gnu: Add heads-qemu-linuxboot., Danny Milosavljevic, 2019/09/29
- [bug#37466] [WIP v3 6/7] gnu: Add heads-qemu-coreboot., Danny Milosavljevic, 2019/09/29
- [bug#37466] [WIP v3 1/7] gnu: Add musl-cross., Danny Milosavljevic, 2019/09/29
- [bug#37466] [WIP v3 5/7] gnu: Add heads-coreboot., Danny Milosavljevic, 2019/09/29
- [bug#37466] [WIP v3 7/7] gnu: Add heads-kgpe-d16., Danny Milosavljevic, 2019/09/29
- [bug#37466] [WIP v3 3/7] gnu: Add heads-linuxboot.,
Danny Milosavljevic <=
- [bug#37466] [WIP v3 2/7] gnu: Add heads., Danny Milosavljevic, 2019/09/29