gnu: Add grub-emu.

* gnu/packages/bootloaders.scm (grub-emu): New variable.

Change-Id: Ia70246841e612b1fe1cb70001b9a6420cb7a63ea
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2025-01-02 20:54:13 +01:00 committed by Ludovic Courtès
parent d17cd107f5
commit 12890e2412
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -475,6 +475,15 @@ menu to select one of the installed operating systems.")
(cross-binutils "arm-linux-gnueabihf"))) (cross-binutils "arm-linux-gnueabihf")))
(package-native-inputs grub-efi))))) (package-native-inputs grub-efi)))))
(define-public grub-emu
(package/inherit grub
(name "grub-emu")
(synopsis "GRand Unified Boot loader (Emu version)")
(arguments
(substitute-keyword-arguments (package-arguments grub)
((#:configure-flags flags #~'())
#~(cons* "--with-platform=emu" #$flags))))))
;; Because grub searches hardcoded paths it's easiest to just build grub ;; Because grub searches hardcoded paths it's easiest to just build grub
;; again to make it find both grub-pc and grub-efi. There is a command ;; again to make it find both grub-pc and grub-efi. There is a command
;; line argument which allows you to specify ONE platform - but ;; line argument which allows you to specify ONE platform - but