summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorVagrant Cascadian <vagrant@debian.org>2018-05-07 14:34:43 +0000
committerDanny Milosavljevic <dannym@scratchpost.org>2018-05-11 12:25:25 +0200
commitfd5536e32b7896e46daf55a52805ea020e43b088 (patch)
tree2f8ec1ee899ca1e16d9ed0c4d9ada59823d91e52 /gnu
parent07ca90458f34e425416f37bc7fcd5b178ab6734a (diff)
downloadpatches-fd5536e32b7896e46daf55a52805ea020e43b088.tar
patches-fd5536e32b7896e46daf55a52805ea020e43b088.tar.gz
system: Add wandboard installer.
* gnu/bootloader/u-boot.scm (u-boot-wandboard-bootloader): New exported variable. * gnu/system/install.scm (wandboard-installation-os): New exported variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/bootloader/u-boot.scm8
-rw-r--r--gnu/system/install.scm8
2 files changed, 14 insertions, 2 deletions
diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm
index 58ee528a21..9a62a166f9 100644
--- a/gnu/bootloader/u-boot.scm
+++ b/gnu/bootloader/u-boot.scm
@@ -34,7 +34,8 @@
u-boot-banana-pi-m2-ultra-bootloader
u-boot-beaglebone-black-bootloader
u-boot-mx6cuboxi-bootloader
- u-boot-nintendo-nes-classic-edition-bootloader))
+ u-boot-nintendo-nes-classic-edition-bootloader
+ u-boot-wandboard-bootloader))
(define install-u-boot
#~(lambda (bootloader device mount-point)
@@ -130,3 +131,8 @@
(bootloader
(inherit u-boot-imx-bootloader)
(package u-boot-mx6cuboxi)))
+
+(define u-boot-wandboard-bootloader
+ (bootloader
+ (inherit u-boot-imx-bootloader)
+ (package u-boot-wandboard)))
diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 7580d981ba..9bb1d8145f 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -50,7 +50,8 @@
banana-pi-m2-ultra-installation-os
beaglebone-black-installation-os
mx6cuboxi-installation-os
- nintendo-nes-classic-edition-installation-os))
+ nintendo-nes-classic-edition-installation-os
+ wandboard-installation-os))
;;; Commentary:
;;;
@@ -440,6 +441,11 @@ The bootloader BOOTLOADER is installed to BOOTLOADER-TARGET."
"/dev/mmcblk0" ; SD card (solder it yourself)
"ttyS0"))
+(define wandboard-installation-os
+ (embedded-installation-os u-boot-wandboard-bootloader
+ "/dev/mmcblk0" ; SD card storage
+ "ttymxc0"))
+
;; Return the default os here so 'guix system' can consume it directly.
installation-os