system: vm: Support cross-compilation.
authorMathieu Othacehe <m.othacehe@gmail.com>
Wed, 21 Aug 2019 07:19:58 +0000 (09:19 +0200)
committerMathieu Othacehe <m.othacehe@gmail.com>
Sun, 1 Dec 2019 15:51:40 +0000 (16:51 +0100)
commitd4ddf22d54f9374715c651aaebda2315e9f89272
tree51438303a495f8319417d481454229d5f6005552
parent39c746f08148d5f7e84d00c8cda98ad310baa4ca
system: vm: Support cross-compilation.

* gnu/system.scm (system-linux-image-file-name): Add support for cross-built
systems. Remove system argument that was ignored,
(operating-system-kernel-file): adapt by removing ignored os argument.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Add target
argument and turn inputs into native-inputs. Pass target to qemu-command
and gexp->derivation calls.
(iso9660-image): Add target argument and pass it to
expression->derivation-in-linux-vm. Remove qemu from inputs as it
is not necessary.
(qemu-image): Add target argument, also remove qemu from inputs. Pass
target argument to expression->derivation-in-linux-vm call.
gnu/system.scm
gnu/system/vm.scm