From b3477234455a555917365b6b4961004e2361c57f Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 27 May 2020 23:04:48 +0200 Subject: vm: 'expression->derivation-in-linux-vm' always returns a native build. * gnu/system/vm.scm (expression->derivation-in-linux-vm): Remove #:target. [builder]: Use #+. Don't pass #:target-arm32? and #:target-aarch64? to 'load-in-linux-vm'. Pass #:target #f to 'gexp->derivation'. (qemu-image): Adjust accordingly. * gnu/build/vm.scm (load-in-linux-vm): Remove #:target-aarch64? and #:target-arm32?. Define them as local variables. --- gnu/build/vm.scm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gnu/build/vm.scm') diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm index 433b5a7e8d..0f0ceae18f 100644 --- a/gnu/build/vm.scm +++ b/gnu/build/vm.scm @@ -84,8 +84,6 @@ linux initrd make-disk-image? single-file-output? - target-arm32? - target-aarch64? (disk-image-size (* 100 (expt 2 20))) (disk-image-format "qcow2") (references-graphs '())) @@ -101,7 +99,14 @@ access it via /dev/hda. REFERENCES-GRAPHS can specify a list of reference-graph files as produced by the #:references-graphs parameter of 'derivation'." - (define target-arm? (or target-arm32? target-aarch64?)) + (define target-arm32? + (string-prefix? "arm-" %host-type)) + + (define target-aarch64? + (string-prefix? "aarch64-" %host-type)) + + (define target-arm? + (or target-arm32? target-aarch64?)) (define arch-specific-flags `(;; On ARM, a machine has to be specified. Use "virt" machine to avoid -- cgit v1.2.3 ion>
path: root/gnu/services.scm
AgeCommit message (Expand)Author
2017-10-12services: cleanup: Remove Shadow lock files from /etc....Ludovic Courtès
2017-09-22services: network-manager: Add support for VPN plug-ins....Ludovic Courtès
2017-09-16services: Add 'fold-service-types'....Ludovic Courtès
2017-09-16services: Add a description and location for each service type....Ludovic Courtès
2017-07-11services: Make error message less scary....Ludovic Courtès
2017-05-03ui: Rename '_' to 'G_'....Ludovic Courtès
2017-04-16services: Service types can now specify a default value for instances....Ludovic Courtès
2017-04-16services: 'service-parameters' becomes 'service-value'....Ludovic Courtès
2017-04-13services: Define '%linux-bare-metal-service' using 'simple-service'....Ludovic Courtès
2017-03-10services: Create /var/log upon activation....Christopher Baines
2017-02-08services: Add 'special-files-service-type'....Ludovic Courtès
2017-01-24services: Create /var/log/wtmp upon activation....Ludovic Courtès
2017-01-19services: Create /var/run/utmpx upon activation....Ludovic Courtès
2017-01-16services: Export 'service-extension' procedures....Christopher Baines
2016-12-11services: Activate system prior to services....Christopher Baines
2016-09-20services: Use 'source-module-closure' for (gnu build activation)....Ludovic Courtès
2016-09-19services: Add 'simple-service'....Ludovic Courtès