Commit graph

11 commits

Author SHA1 Message Date
Frederik Rietdijk d9fa74ba78 Merge master into staging 2018-08-09 18:28:15 +02:00
Jörg Thalheim cd6d2e2103
Merge pull request #44799 from r-ryantm/auto-update/avr-gcc
avrgcc: 8.1.0 -> 8.2.0
2018-08-09 07:37:12 +01:00
R. RyanTM aaa88f4c7f avrgcc: 8.1.0 -> 8.2.0
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/avr-gcc/versions.
2018-08-08 19:54:24 -07:00
R. RyanTM 1e0f87bfbc avrbinutils: 2.30 -> 2.31.1
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/avr-binutils/versions.
2018-08-08 19:19:08 -07:00
John Ericson db965063b3 treewide: Make configureFlags lists 2018-08-03 17:06:03 -04:00
R. RyanTM d513634e6c avrgcc: 7.3.0 -> 8.1.0
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/avr-gcc/versions.

These checks were done:

- built on NixOS
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-g++ --help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-c++ --help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcc --help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcc-8.1.0 --help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcov -h’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcov --help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcov help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcov-tool -h’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcov-tool --help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcov-dump -h’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcov-dump --help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcov-dump help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-cpp --help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcc-ar -h’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcc-ar --help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcc-nm -h’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcc-nm --help’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcc-ranlib -h’ got 0 exit code
- ran ‘/nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0/bin/avr-gcc-ranlib --help’ got 0 exit code
- found 8.1.0 with grep in /nix/store/kj1gijncvyaz6a0v4fg78420i9xrhzg2-avr-gcc-8.1.0
- directory tree listing: https://gist.github.com/bc5f032e2fae6d464814f0d61feb07dd
2018-05-07 05:59:21 -07:00
Andrew Childs 1e1f66f209 avrgcc: 5.4.0 -> 7.3.0 2018-03-23 00:39:06 +09:00
Matthew Bauer 54e2c28b09 darwin: disable broken packages 2018-03-08 17:21:17 -06:00
Daniel Fullmer 02fee428a2 avrbinutils: 2.26 -> 2.30 2018-03-01 13:30:17 -05:00
Kier Davis 6bfa42218d
avrgcc: bake path to avr-ar into avr-gcc-ar
gcc provides wrappers for binutils' ar, nm and ranlib
executables, which must be used instead when using link-time
optimisation. See also:
http://manpages.ubuntu.com/manpages/zesty/man1/aarch64-linux-gnu-gcc-ar-5.1.html

The upstream version of avr-gcc-ar searches in paths passed to
the configure script for the avr-ar binary that it wraps, falling
back to searching PATH instead. Thus currently avr-gcc-ar works on
Nix, but only if avrbinutils is already in the environment.

This change bakes the path to avr-ar into avr-gcc-ar, since its path
is known at compile time. It also no longer searches PATH, meaning the
user's local environment won't override this path.

Note that avr-gcc-nm and avr-gcc-ranlib are compiled from the same
source file as avr-gcc-ar, just with different compiler flags.

Testing on master (without avrbinutils in the environment):

    $ nix-build -A avrgcc
    $ result/bin/avr-gcc-ar --version
    result/bin/avr-gcc-ar: Cannot find binary 'avr-ar'

Testing on branch with this fix:

    $ nix-build -A avrgcc
    $ result/bin/avr-gcc-ar --version
    GNU ar (GNU Binutils) 2.26.20160125
    ...
2018-01-12 00:48:35 +00:00
Maximilian Güntner 6a458c169b
avr-*: split avr-gcc-libc into separate packages
- avr-gcc 5.3.0 -> 5.4.0

closes #28220

Since the packages do not share a common prefix anymore, you need
to define the current store paths in your project's Makefile.

Example for an atmega644 build:

CFLAGS += -I /nix/store/9rffxzds5crcpm76g3nr03jx0aa657cf-avr-libc-2.0.0/avr/include
CFLAGS += -B /nix/store/9rffxzds5crcpm76g3nr03jx0aa657cf-avr-libc-2.0.0/avr/lib/avr5
CFLAGS += -L /nix/store/9rffxzds5crcpm76g3nr03jx0aa657cf-avr-libc-2.0.0/avr/lib/avr5
CFLAGS += -L /nix/store/8409dj9js4i5901i63275wxdm783l0p6-avr-gcc-5.4.0/lib/gcc/avr/5.4.0/avr5
2017-09-05 05:31:38 +02:00