GNU bug report logs -
#45021
[PATCH 1/2] image: Add system field.
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi Mathieu,
On Thu, 3 Dec 2020 11:53:52 +0100
Mathieu Othacehe <othacehe <at> gnu.org> wrote:
> diff --git a/gnu/image.scm b/gnu/image.scm
> index a60d83b175..a56710d540 100644
> --- a/gnu/image.scm
> +++ b/gnu/image.scm
> @@ -33,6 +33,7 @@
> image
> image-name
> image-format
> + image-system
> image-target
> image-size
> image-operating-system
> @@ -613,7 +615,15 @@ it can be used for bootloading."
> "Return the derivation of IMAGE. It can be a raw disk-image or an ISO9660
> image, depending on IMAGE format."
> (define substitutable? (image-substitutable? image))
> - (define target (image-target image))
> +
> + ;; The image definition may provide the appropriate "system" architecture
> + ;; for the image. If we are already running on this system, the image can
> + ;; be built natively. If we are running on a different system, then we need
> + ;; to cross-compile, using the "target" provided by the image definition.
> + (define system (image-system image))
> + (define target (if (eq? system (%current-system))
Should be string=? instead of eq?, otherwise it downloads a cross compiler
for armhf on armhf.
With that change, I tested this patchset on armhf--works fine then.
LGTM!
[Message part 2 (application/pgp-signature, inline)]
This bug report was last modified 3 years and 287 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.