Commit Graph

17 Commits

Author SHA1 Message Date
Julian Stecklina
e600b8b00b newlib: enable parallel build
... for massively decreasing the build time. On my laptop, this drops
build times from 40s to 10s.
2024-11-08 16:37:37 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Adam Joseph
7444c59c52 newlib: evade more of newlib's self-disablement
In https://github.com/NixOS/nixpkgs/pull/266364/files I neglected to
evade one of newlib's other (annoying) self-disablement checks: when
host==target newlib decides it's not in the mood to build itself for
some reason.

Since we have an entire package for newlib (it's no longer part of
gcc) these checks are silly.  So I have evadede the second check as well.

Closes #267859
2023-11-16 20:41:25 -08:00
Adam Joseph
1e47c87fd2 newlib: fix newlib host/target workaround
The newlib configury uses `host` to refer to the platform which is
being used to compile newlib.  Ugh.  It does this because of its
history: newlib used to be distributed with and built as part of
gcc.

To prevent nixpkgs from going insane, this package presents the
"normal" view to the outside world: the binaries in $out will
execute on `stdenv.hostPlatform`.  We then fool newlib's build
process into doing the right thing.
2023-11-12 02:12:42 +00:00
Adam Joseph
4c5a455ca5 newlib: always pass --with-newlib 2023-11-12 02:12:42 +00:00
Sören Tempel
cf1b7c4d5c newlib: fix build of nano variant on non-ARM architectures
librdimon.a is only available on ARM architectures, therefore building
newlib-nano for other architectures (e.g. RISC-V) fails presently.
This commit fixes this issue by only copying the library files that
actually exist in the for loop body. Alternatively, it would be
theoretically feasible to change the libraries iterated over based
on the targeted architecture.
2023-06-30 20:58:54 +02:00
Artturin
eca3d38d18 newlib: add meta 2023-03-22 22:27:31 +02:00
Artturin
116dd693ca newlib: 4.1.0 -> 4.3.0.20230120 2023-03-22 22:15:02 +02:00
Artturin
13e3b51c99 newlib: sync configure flags with upstream
removed the common flags to improve the future diffs
2023-03-22 21:32:04 +02:00
Artturin
c6e871f634 newlib: improve the nano version
apply patch from gentoo because there's no libstdc++.a libsupc++.a or
their nano versions

this matches upstream arm more
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

-lc_nano is used in nano.specs but 'libc_nano.a' is not installed without these changes
2023-03-21 20:14:39 +02:00
John Ericson
5ea6bb839e newlib: Add parameter for "nano" variant 2021-09-30 11:48:46 -04:00
IvarWithoutBones
7bee527fce newlib: 3.3.0 -> 4.1.0 2021-06-14 01:10:28 +02:00
R. RyanTM
b65a703823 newlib: 3.1.0 -> 3.3.0 2020-03-06 23:03:33 +00:00
volth
c814d72b51 treewide: name -> pname 2019-08-17 10:54:38 +00:00
R. RyanTM
1e146f5188 newlib: 3.0.0 -> 3.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/newlib/versions
2019-07-05 23:27:05 +02:00
Matthew Bauer
aa4707fc34 treewide: use gnu toolchain for avr/arm-embedded
These packages should in theory work with our GCC toolchains, but
there are some definite breakages that need to be tracked down.
Comparing output of these to old gcc-arm-embedded is important.

Affected packages include:

- axolooti
- avrdudess
- opentx
- microscheme
- betaflight
- inav
- blackmagic
- simavr
- gnuk
2018-10-30 13:31:45 -05:00
Matthew Bauer
8db71d9d77 newlib: init at 3.0.0
Fixes #47533

newlib seems to think it’s a compiler when it’s not. Anyway had to
make host refer to build platform for things to work.
2018-10-29 14:34:10 -05:00