mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-22 01:11:02 +03:00
treewide: Consistently call ARM 'arm'
No need for silly differences.
This commit is contained in:
parent
46930ef3e6
commit
0c0fad6141
12 changed files with 12 additions and 14 deletions
|
@ -26,7 +26,7 @@ in rec {
|
||||||
allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all;
|
allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all;
|
||||||
none = [];
|
none = [];
|
||||||
|
|
||||||
arm = filterDoubles predicates.isArm32;
|
arm = filterDoubles predicates.isArm;
|
||||||
i686 = filterDoubles predicates.isi686;
|
i686 = filterDoubles predicates.isi686;
|
||||||
mips = filterDoubles predicates.isMips;
|
mips = filterDoubles predicates.isMips;
|
||||||
x86_64 = filterDoubles predicates.isx86_64;
|
x86_64 = filterDoubles predicates.isx86_64;
|
||||||
|
|
|
@ -66,7 +66,7 @@ let
|
||||||
else if targetPlatform.system == "i686-linux" then "${libc_lib}/lib/ld-linux.so.2"
|
else if targetPlatform.system == "i686-linux" then "${libc_lib}/lib/ld-linux.so.2"
|
||||||
else if targetPlatform.system == "x86_64-linux" then "${libc_lib}/lib/ld-linux-x86-64.so.2"
|
else if targetPlatform.system == "x86_64-linux" then "${libc_lib}/lib/ld-linux-x86-64.so.2"
|
||||||
# ARM with a wildcard, which can be "" or "-armhf".
|
# ARM with a wildcard, which can be "" or "-armhf".
|
||||||
else if targetPlatform.isArm32 then "${libc_lib}/lib/ld-linux*.so.3"
|
else if targetPlatform.isArm then "${libc_lib}/lib/ld-linux*.so.3"
|
||||||
else if targetPlatform.system == "aarch64-linux" then "${libc_lib}/lib/ld-linux-aarch64.so.1"
|
else if targetPlatform.system == "aarch64-linux" then "${libc_lib}/lib/ld-linux-aarch64.so.1"
|
||||||
else if targetPlatform.system == "powerpc-linux" then "${libc_lib}/lib/ld.so.1"
|
else if targetPlatform.system == "powerpc-linux" then "${libc_lib}/lib/ld.so.1"
|
||||||
else if targetPlatform.system == "mips64el-linux" then "${libc_lib}/lib/ld.so.1"
|
else if targetPlatform.system == "mips64el-linux" then "${libc_lib}/lib/ld.so.1"
|
||||||
|
|
|
@ -92,7 +92,7 @@ stdenv.mkDerivation {
|
||||||
(if targetPlatform.system == "i686-linux" then "ld-linux.so.2" else
|
(if targetPlatform.system == "i686-linux" then "ld-linux.so.2" else
|
||||||
if targetPlatform.system == "x86_64-linux" then "ld-linux-x86-64.so.2" else
|
if targetPlatform.system == "x86_64-linux" then "ld-linux-x86-64.so.2" else
|
||||||
# ARM with a wildcard, which can be "" or "-armhf".
|
# ARM with a wildcard, which can be "" or "-armhf".
|
||||||
if targetPlatform.isArm32 then "ld-linux*.so.3" else
|
if targetPlatform.isArm then "ld-linux*.so.3" else
|
||||||
if targetPlatform.system == "aarch64-linux" then "ld-linux-aarch64.so.1" else
|
if targetPlatform.system == "aarch64-linux" then "ld-linux-aarch64.so.1" else
|
||||||
if targetPlatform.system == "powerpc-linux" then "ld.so.1" else
|
if targetPlatform.system == "powerpc-linux" then "ld.so.1" else
|
||||||
if targetPlatform.system == "mips64el-linux" then "ld.so.1" else
|
if targetPlatform.system == "mips64el-linux" then "ld.so.1" else
|
||||||
|
|
|
@ -233,7 +233,7 @@ stdenv.mkDerivation ({
|
||||||
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
||||||
configurePlatforms =
|
configurePlatforms =
|
||||||
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
||||||
if hostPlatform == targetPlatform && targetPlatform.isArm32
|
if hostPlatform == targetPlatform && targetPlatform.isArm
|
||||||
then []
|
then []
|
||||||
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
||||||
|
|
||||||
|
|
|
@ -319,7 +319,7 @@ stdenv.mkDerivation ({
|
||||||
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
||||||
configurePlatforms =
|
configurePlatforms =
|
||||||
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
||||||
if hostPlatform == targetPlatform && targetPlatform.isArm32
|
if hostPlatform == targetPlatform && targetPlatform.isArm
|
||||||
then []
|
then []
|
||||||
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
||||||
|
|
||||||
|
|
|
@ -319,7 +319,7 @@ stdenv.mkDerivation ({
|
||||||
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
||||||
configurePlatforms =
|
configurePlatforms =
|
||||||
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
||||||
if hostPlatform == targetPlatform && targetPlatform.isArm32
|
if hostPlatform == targetPlatform && targetPlatform.isArm
|
||||||
then []
|
then []
|
||||||
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
||||||
|
|
||||||
|
|
|
@ -336,7 +336,7 @@ stdenv.mkDerivation ({
|
||||||
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
||||||
configurePlatforms =
|
configurePlatforms =
|
||||||
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
||||||
if hostPlatform == targetPlatform && targetPlatform.isArm32
|
if hostPlatform == targetPlatform && targetPlatform.isArm
|
||||||
then []
|
then []
|
||||||
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
||||||
|
|
||||||
|
|
|
@ -328,7 +328,7 @@ stdenv.mkDerivation ({
|
||||||
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
||||||
configurePlatforms =
|
configurePlatforms =
|
||||||
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
||||||
if hostPlatform == targetPlatform && targetPlatform.isArm32
|
if hostPlatform == targetPlatform && targetPlatform.isArm
|
||||||
then []
|
then []
|
||||||
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
||||||
|
|
||||||
|
|
|
@ -330,7 +330,7 @@ stdenv.mkDerivation ({
|
||||||
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
||||||
configurePlatforms =
|
configurePlatforms =
|
||||||
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
||||||
if hostPlatform == targetPlatform && targetPlatform.isArm32
|
if hostPlatform == targetPlatform && targetPlatform.isArm
|
||||||
then []
|
then []
|
||||||
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
||||||
|
|
||||||
|
|
|
@ -317,7 +317,7 @@ stdenv.mkDerivation ({
|
||||||
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
||||||
configurePlatforms =
|
configurePlatforms =
|
||||||
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
||||||
if hostPlatform == targetPlatform && targetPlatform.isArm32
|
if hostPlatform == targetPlatform && targetPlatform.isArm
|
||||||
then []
|
then []
|
||||||
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
|
||||||
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
# TODO(@Ericson2314): Always pass "--target" and always prefix.
|
||||||
configurePlatforms =
|
configurePlatforms =
|
||||||
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
# TODO(@Ericson2314): Figure out what's going wrong with Arm
|
||||||
if hostPlatform == targetPlatform && targetPlatform.isArm32
|
if hostPlatform == targetPlatform && targetPlatform.isArm
|
||||||
then []
|
then []
|
||||||
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
|
||||||
|
|
||||||
|
|
|
@ -104,9 +104,7 @@ let
|
||||||
# Utility flags to test the type of platform.
|
# Utility flags to test the type of platform.
|
||||||
inherit (hostPlatform)
|
inherit (hostPlatform)
|
||||||
isDarwin isLinux isSunOS isHurd isCygwin isFreeBSD isOpenBSD
|
isDarwin isLinux isSunOS isHurd isCygwin isFreeBSD isOpenBSD
|
||||||
isi686 isx86_64 is64bit isMips isBigEndian;
|
isi686 isx86_64 is64bit isArm isAarch64 isMips isBigEndian;
|
||||||
isArm = hostPlatform.isArm32;
|
|
||||||
isAarch64 = hostPlatform.isArm64;
|
|
||||||
|
|
||||||
# Whether we should run paxctl to pax-mark binaries.
|
# Whether we should run paxctl to pax-mark binaries.
|
||||||
needsPax = isLinux;
|
needsPax = isLinux;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue