3
0
Fork 0
forked from mirrors/nixpkgs

platforms.nix: Switch ARMv7 to vfpv3-d16

Make ARMv7 compatible with non-NEON chips, changing to the same float ABI
that Debian and Arch Linux use. This is apparently required for the
binaries to work on Scaleway, for instance.
This commit is contained in:
Tuomas Tynkkynen 2016-07-17 00:14:22 +03:00 committed by Tuomas Tynkkynen
parent cd645c417a
commit 322faf9219

View file

@ -417,11 +417,12 @@ rec {
# Cortex-A15: -mfpu=neon-vfpv4
# More about FPU:
#https://wiki.debian.org/ArmHardFloatPort/VfpComparison
# https://wiki.debian.org/ArmHardFloatPort/VfpComparison
# We try to be compatible with beaglebone by now
# vfpv3-d16 is what Debian uses and seems to be the best compromise: NEON is not supported in e.g. Scaleway or Tegra 2,
# and the above page suggests NEON is only an improvement with hand-written assembly.
arch = "armv7-a";
fpu = "neon";
fpu = "vfpv3-d16";
float = "hard";
# For Raspberry Pi the 2 the best would be: