diff options
author | Mathieu Othacehe <m.othacehe@gmail.com> | 2017-12-05 11:34:01 +0100 |
---|---|---|
committer | Mathieu Othacehe <m.othacehe@gmail.com> | 2017-12-15 11:44:29 +0100 |
commit | acf54bca225b63f5b06e335a55045421c47bbd09 (patch) | |
tree | 5b103e6bdc84afe5c290b585d0dfb83b0eb0e9c5 /gnu/system | |
parent | dfb403b053eb0ea5e7c052855ba419e6a9968442 (diff) | |
download | guix-acf54bca225b63f5b06e335a55045421c47bbd09.tar.gz |
vm: Adapt qemu command to ARM.
* gnu/build/vm.scm (load-in-linux-vm): New argument #:target-arm32. Use it to adapt command for qemu-system-arm. This implies to choose a machine ("virt"), use the correct console port "ttyAMA0", disable KVM use that is buggy on some ARM boards (Odroid XU4 for example) and use user mode network stack instead of NIC. Gather all those options in a new variable "arch-specific-flags". * gnu/system/vm.scm (expression->derivation-in-linux-vm): Pass to load-in-linux-vm "#:target-arm32?" argument.
Diffstat (limited to 'gnu/system')
-rw-r--r-- | gnu/system/vm.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index d754ac76f0..b376337c8d 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -175,6 +175,10 @@ made available under the /xchg CIFS share." #:memory-size #$memory-size #:make-disk-image? #$make-disk-image? #:single-file-output? #$single-file-output? + ;; FIXME: ‘target-arm32?’ may not operate on + ;; the right system/target values. Rewrite + ;; using ‘let-system’ when available. + #:target-arm32? #$(target-arm32?) #:disk-image-format #$disk-image-format #:disk-image-size size #:references-graphs graphs))))) |