Paste number 313284: avr-toolchain

Paste number 313284: avr-toolchain
Pasted by: phant0mas
When:5 years, 7 months ago
Share:Tweet this! |
Paste contents:
Raw Source | XML | Display As
(define-public avr-binutils
    (inherit (cross-binutils "avr"))
    (name "avr-binutils")
     '(#:configure-flags '("--target=avr"

(define-public avr-gcc
    (inherit (cross-gcc "avr" avr-binutils))
    (name "avr-gcc")
     `(,@(substitute-keyword-arguments (package-arguments (cross-gcc "avr" avr-binutils))
           ((#:phases phases)
            `(modify-phases ,phases
               (add-after 'unpack 'fix-genmultilib
                 (lambda _
                   (substitute* "gcc/genmultilib"
                     (("#!/bin/sh") (string-append "#!" (which "sh"))))
           ((#:configure-flags flags)
            `(cons* "--target=avr"
                   (delete "--disable-multilib" ,flags))))))))

(define-public avr-libc
    (name "avr-libc")
    (version "1.8.1")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    version ".tar.bz2"))
    (build-system gnu-build-system)
     `(#:out-of-source? #t
       #:configure-flags '("--host=avr")))

    (native-inputs `(("avr-binutils" ,avr-binutils)
                     ("avr-gcc" ,avr-gcc)
                     ("libc" ,(cross-libc "i686-linux"))))
    (home-page "")
    (synopsis "The AVR C Library")
     "AVR Libc is a project whose goal is to provide a high quality C library
for use with GCC on Atmel AVR microcontrollers.")
    (license (license:non-copyleft ""))))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.