[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/6] gnu: Add efibootmgr.
From: |
Marius Bakke |
Subject: |
[PATCH 5/6] gnu: Add efibootmgr. |
Date: |
Sat, 5 Nov 2016 12:55:10 +0000 |
* gnu/packages/linux.scm (efibootmgr): New variable.
---
gnu/packages/linux.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 86e9ff5..5896410 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3155,3 +3155,49 @@ interface to the UEFI variable facility.")
(list license:lgpl2.1+
(license:non-copyleft "file://src/crc32.c"
"See src/crc32.c in the distribution.")))))
+
+(define-public efibootmgr
+ (package
+ (name "efibootmgr")
+ (version "14")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/rhinstaller/" name
+ "/releases/download/" version "/" name
+ "-" version ".tar.bz2"))
+ (sha256
+ (base32
+ "1n3sydvpr6yl040hhf460k7mrxby7laqd9dqs6pq0js1hijc2zip"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ; No tests.
+ #:make-flags
+ (list (string-append "prefix=" %output)
+ (string-append "libdir=" %output "/lib")
+ ;; Override CFLAGS to add efivar include directory.
+ (string-append "CFLAGS=-O2 -g -flto -I"
+ (assoc-ref %build-inputs "efivar")
+ "/include/efivar"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'branding
+ ;; Replace default loader path with something more familiar.
+ (lambda _
+ (substitute* "src/efibootmgr.c"
+ (("EFI\\\\\\\\redhat") ; Matches 'EFI\\redhat'.
+ "EFI\\\\gnu"))
+ #t))
+ (delete 'configure))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("efivar" ,efivar)
+ ("popt" ,popt)))
+ (home-page "https://github.com/rhinstaller/efibootmgr")
+ (synopsis "Modify the Extensible Firmware Interface (EFI) boot manager")
+ (description
+ "@code{efibootmgr} is a Linux user-space application to modify the
+Intel Extensible Firmware Interface (EFI) Boot Manager. This application
+can create and destroy boot entries, change the boot order, change the next
+running boot option, and more.")
+ (license license:gpl2+)))
--
2.10.2
- [PATCH 2/6] linux-initrd: Support FAT filesystems., (continued)
[PATCH 4/6] gnu: Add efivar., Marius Bakke, 2016/11/05
[PATCH 5/6] gnu: Add efibootmgr.,
Marius Bakke <=
[PATCH 6/6] gnu: Add grub-efi., Marius Bakke, 2016/11/05
- Re: [PATCH 6/6] gnu: Add grub-efi., Leo Famulari, 2016/11/05
- Re: [PATCH 6/6] gnu: Add grub-efi., Marius Bakke, 2016/11/05
- Re: [PATCH 6/6] gnu: Add grub-efi., Ludovic Courtès, 2016/11/06
- Re: [PATCH 6/6] gnu: Add grub-efi., Marius Bakke, 2016/11/06
- Re: [PATCH 6/6] gnu: Add grub-efi., Ludovic Courtès, 2016/11/07
- Re: [PATCH 6/6] gnu: Add grub-efi., Marius Bakke, 2016/11/07