Nikita Karetnikov <nik...@karetnikov.org> skribis:

>> Actually, even better would be do that in host code, as done with
>> ‘glibc-dynamic-linker’:
>
> What do you mean by "host code"?

I mean code that runs in your ‘guix-build’ process, as opposed to
builder code running in the chroot (search the manual for “strata”.)

> The attached recipe raises the following:
>
> make: *** No rule to make target `defconfig'.  Stop.
>
> [...]
>
> starting phase `build'

You have a parenthesis issue here:

         (build-phase
          (lambda (arch)
            `(lambda _
               (setenv "ARCH" ,(system->linux-architecture arch))
               (format #t "`ARCH' set to `~a'~%" (getenv "ARCH")))

             (and (zero? (system* "make" "defconfig"))
                  (zero? (system* "make" "mrproper" "headers_check")))))

“make defconfig” & co. should be done in the quoted lambda expression,
as was the case before.

HTH,
Ludo’.

Reply via email to