~ruther/guix-local

c6da50437d967874162cd88ef66a8469649c1fbb — Efraim Flashner 8 months ago 24a16d7
gnu: Add grub-uboot.

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

Change-Id: Ib923c66723f6250a7505b14f9d4a4dc0bad528ea
1 files changed, 11 insertions(+), 0 deletions(-)

M gnu/packages/bootloaders.scm
M gnu/packages/bootloaders.scm => gnu/packages/bootloaders.scm +11 -0
@@ 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