summaryrefslogtreecommitdiff
path: root/gnu/bootloader
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2017-06-11 12:58:38 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2017-07-15 12:53:37 +0200
commit8d858010b373485dcd999c30ec58bede53bd7ecd (patch)
tree6c8b2db7f90e6c9cb1da8d6f1eea8c8e8de1a37c /gnu/bootloader
parentc3b5b1bb49084ac816750cedc8f03a55884b2dd8 (diff)
bootloader: Add u-boot.
* gnu/bootloader/u-boot.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * doc/guix.texi: Document it.
Diffstat (limited to 'gnu/bootloader')
-rw-r--r--gnu/bootloader/u-boot.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm
new file mode 100644
index 00000000000..963b0d7597e
--- /dev/null
+++ b/gnu/bootloader/u-boot.scm
@@ -0,0 +1,47 @@
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
20(define-module (gnu bootloader u-boot)
21 #:use-module (gnu bootloader extlinux)
22 #:use-module (gnu bootloader)
23 #:use-module (gnu system)
24 #:use-module (gnu packages bootloaders)
25 #:use-module (guix gexp)
26 #:use-module (guix monads)
27 #:use-module (guix records)
28 #:use-module (guix utils)
29 #:export (u-boot-bootloader))
30
31(define install-u-boot
32 #~(lambda (bootloader device mount-point)
33 (if bootloader
34 (error "Failed to install U-Boot"))))
35
36
37
38;;;
39;;; Bootloader definitions.
40;;;
41
42(define u-boot-bootloader
43 (bootloader
44 (inherit extlinux-bootloader)
45 (name 'u-boot)
46 (package #f)
47 (installer install-u-boot)))