u-boot.scm 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2017 David Craven <david@craven.ch>
  3. ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
  4. ;;;
  5. ;;; This file is part of GNU Guix.
  6. ;;;
  7. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  8. ;;; under the terms of the GNU General Public License as published by
  9. ;;; the Free Software Foundation; either version 3 of the License, or (at
  10. ;;; your option) any later version.
  11. ;;;
  12. ;;; GNU Guix is distributed in the hope that it will be useful, but
  13. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;;; GNU General Public License for more details.
  16. ;;;
  17. ;;; You should have received a copy of the GNU General Public License
  18. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. (define-module (gnu bootloader u-boot)
  20. #:use-module (gnu bootloader extlinux)
  21. #:use-module (gnu bootloader)
  22. #:use-module (gnu system)
  23. #:use-module (gnu packages bootloaders)
  24. #:use-module (guix gexp)
  25. #:use-module (guix monads)
  26. #:use-module (guix records)
  27. #:use-module (guix utils)
  28. #:export (u-boot-bootloader))
  29. (define install-u-boot
  30. #~(lambda (bootloader device mount-point)
  31. (if bootloader
  32. (error "Failed to install U-Boot"))))
  33. ;;;
  34. ;;; Bootloader definitions.
  35. ;;;
  36. (define u-boot-bootloader
  37. (bootloader
  38. (inherit extlinux-bootloader)
  39. (name 'u-boot)
  40. (package #f)
  41. (installer install-u-boot)))