stdenv: aarch64 is also ARM

This commit is contained in:
Franz Pletz 2017-03-10 13:50:21 +01:00
parent 71161443b4
commit a5f4e22289
No known key found for this signature in database
GPG key ID: 846FDED7792617B4
3 changed files with 6 additions and 5 deletions

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
"echo : \\\${ac_cv_func_clock_gettime=\'yes\'} > config.cache";
configureFlags = [ "--disable-valgrind" ]
++ stdenv.lib.optionals (stdenv.isArm || stdenv.isAarch64) [ "--enable-tegra-experimental-api" "--enable-etnaviv-experimental-api" ]
++ stdenv.lib.optionals stdenv.isArm [ "--enable-tegra-experimental-api" "--enable-etnaviv-experimental-api" ]
++ stdenv.lib.optional stdenv.isDarwin "-C";
crossAttrs.configureFlags = configureFlags ++ [ "--disable-intel" ];

View file

@ -30,15 +30,15 @@ else
let
defaultGalliumDrivers =
if (stdenv.isArm || stdenv.isAarch64)
if stdenv.isArm
then ["nouveau" "freedreno" "vc4" "etnaviv"]
else ["i915" "ilo" "r300" "r600" "radeonsi" "nouveau"];
defaultDriDrivers =
if (stdenv.isArm || stdenv.isAarch64)
if stdenv.isArm
then ["nouveau"]
else ["i915" "i965" "nouveau" "radeon" "r200"];
defaultVulkanDrivers =
if (stdenv.isArm || stdenv.isAarch64)
if stdenv.isArm
then []
else ["intel"] ++ lib.optional enableRadv "radeon";
in

View file

@ -397,7 +397,8 @@ let
|| system == "mips64el-linux";
isArm = system == "armv5tel-linux"
|| system == "armv6l-linux"
|| system == "armv7l-linux";
|| system == "armv7l-linux"
|| system == "aarch64-linux";
isAarch64 = system == "aarch64-linux";
isBigEndian = system == "powerpc-linux";