systems: Allow detection of powerpc and sparc

This commit is contained in:
John Q Crosscompiler
2018-07-26 09:33:36 -04:00
committed by Graham Christensen
parent 812f4749ae
commit 7cc62144b2
3 changed files with 6 additions and 0 deletions
@@ -185,6 +185,8 @@ stdenv.mkDerivation {
"mips64" = "btsmip";
"mips64el" = "ltsmip";
}.${targetPlatform.parsed.cpu.name}
else if targetPlatform.isPowerPC then "powerpc"
else if targetPlatform.isSparc then "sparc"
else throw "unknown emulation for platform: " + targetPlatform.config;
in targetPlatform.platform.bfdEmulation or (fmt + sep + arch);