summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2026-01-06 14:13:36 +0000
committerGitHub <noreply@github.com>2026-01-06 14:13:36 +0000
commita2b519e6c26faf15fd6b379f3d0e7c19da8eca8e (patch)
tree153f6f5885f88d171955f892152e40613c7cda7a /lib
parent7f889f245d767d10ac4e87695baa85e8f64274a7 (diff)
parente8b384078f32ae8bdf7ded43e035b541d61a8cad (diff)
uclibc-ng: improve detection of FPU, endianess and ABI (#458935)
Diffstat (limited to 'lib')
-rw-r--r--lib/systems/inspect.nix5
-rw-r--r--lib/systems/parse.nix12
2 files changed, 16 insertions, 1 deletions
diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix
index c1876093600d..0a8e1ac8e702 100644
--- a/lib/systems/inspect.nix
+++ b/lib/systems/inspect.nix
@@ -440,6 +440,11 @@ rec {
isPE = {
kernel.execFormat = execFormats.pe;
};
+
+ isEabi = {
+ abi.eabi = true;
+ };
+
};
# given two patterns, return a pattern which is their logical AND.
diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix
index c76aa592fc28..86f8c169d901 100644
--- a/lib/systems/parse.nix
+++ b/lib/systems/parse.nix
@@ -662,15 +662,19 @@ rec {
# On ARM, this corresponds to ARMEABI.
eabi = {
float = "soft";
+ eabi = true;
};
eabihf = {
float = "hard";
+ eabi = true;
};
# Other architectures should use ELF in embedded situations.
elf = { };
- androideabi = { };
+ androideabi = {
+ eabi = true;
+ };
android = {
assertions = [
{
@@ -684,9 +688,11 @@ rec {
gnueabi = {
float = "soft";
+ eabi = true;
};
gnueabihf = {
float = "hard";
+ eabi = true;
};
gnu = {
assertions = [
@@ -730,17 +736,21 @@ rec {
musleabi = {
float = "soft";
+ eabi = true;
};
musleabihf = {
float = "hard";
+ eabi = true;
};
musl = { };
uclibceabi = {
float = "soft";
+ eabi = true;
};
uclibceabihf = {
float = "hard";
+ eabi = true;
};
uclibc = { };