On 2025-05-05, Gabriel Wicki wrote:
> I'm in the process of packaging the UF2 bootloader, for which i am
> heavily inspired by the way Das U-Boot is packaged.  Unfortunately I am
> stuck.  I have the following WIP definition:
...
>> make: arm-none-eabi-gcc: No such file or directory
>
> How can I make that (cross-compilation) toolchain available for the package?

There are a number of packages in guix.git/gnu/packages/firmware.scm
that make use of inputs for arm-none-eabi:

(define-public arm-trusted-firmware-rk3399
  (let ((base (make-arm-trusted-firmware "rk3399")))
    (package
      (inherit base)
      (native-inputs (modify-inputs (package-native-inputs base)
                       (prepend (cross-gcc "arm-none-eabi")
                                (cross-binutils "arm-none-eabi")))))))

At least for that one, the primary gcc is still the "regular" gcc for
aarch64, but the arm-none-eabi ones are available for the parts of the
code that require it.


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to