3
0
Fork 0
forked from mirrors/nixpkgs

bootstrap-tools-cross: add powerpc64-linux

Also check for powerpc64-linux-elfv1, which does not support musl.
This commit is contained in:
Ryan Burns 2021-01-29 20:08:42 -08:00
parent c17abf8111
commit 76fc6d2870
2 changed files with 4 additions and 1 deletions

View file

@ -17,6 +17,8 @@ in lib.mapAttrs (n: make) (with lib.systems.examples; {
armv6l-musl = muslpi;
aarch64-musl = aarch64-multiplatform-musl;
riscv64 = riscv64;
powerpc64 = ppc64;
powerpc64-musl = ppc64-musl;
powerpc64le = powernv;
powerpc64le-musl = musl-power;
})

View file

@ -19,7 +19,8 @@ in with pkgs; rec {
tarMinimal = gnutar.override { acl = null; };
busyboxMinimal = busybox.override {
useMusl = !stdenv.targetPlatform.isRiscV;
useMusl = with stdenv.targetPlatform; !isRiscV &&
(system == "powerpc64-linux" -> parsed.abi.name != "elfv1");
enableStatic = true;
enableMinimal = true;
extraConfig = ''