From c6da50437d967874162cd88ef66a8469649c1fbb Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Fri, 4 Jul 2025 14:57:01 +0300 Subject: [PATCH] gnu: Add grub-uboot. * gnu/packages/bootloaders.scm (grub-uboot): New variable. Change-Id: Ib923c66723f6250a7505b14f9d4a4dc0bad528ea --- gnu/packages/bootloaders.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index 803ebc52e6056b1fd953c46da900a55f887f1beb..6617d6fc8e1e94b86e8d8d380327c89e82382015 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -562,6 +562,17 @@ menu to select one of the installed operating systems.") "i586-gnu" "x86_64-gnu" "powerpc-linux" "powerpc64le-linux")))) +(define-public grub-uboot + (let ((base (make-grub "uboot"))) + (package + (inherit base) + (arguments + (substitute-keyword-arguments (package-arguments base) + ;; Running the tests isn't supported for this grub platform. + ((#:tests? _ #t) #f))) + (synopsis "GRand Unified Boot loader (u-boot version)") + (supported-systems '("armhf-linux"))))) + ;; 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 ;; line argument which allows you to specify ONE platform - but