mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
lib, binutils: Move Risc-V bfdEmulation to be by the others
This commit is contained in:
parent
40e7be11c8
commit
04f6973200
@ -459,7 +459,6 @@ rec {
|
|||||||
riscv-multiplatform = bits: {
|
riscv-multiplatform = bits: {
|
||||||
name = "riscv-multiplatform";
|
name = "riscv-multiplatform";
|
||||||
kernelArch = "riscv";
|
kernelArch = "riscv";
|
||||||
bfdEmulation = "elf${bits}lriscv";
|
|
||||||
kernelTarget = "vmlinux";
|
kernelTarget = "vmlinux";
|
||||||
kernelAutoModules = true;
|
kernelAutoModules = true;
|
||||||
kernelBaseConfig = "defconfig";
|
kernelBaseConfig = "defconfig";
|
||||||
|
@ -167,7 +167,7 @@ stdenv.mkDerivation {
|
|||||||
else if targetPlatform.isWindows then "pe"
|
else if targetPlatform.isWindows then "pe"
|
||||||
else "elf" + toString targetPlatform.parsed.cpu.bits;
|
else "elf" + toString targetPlatform.parsed.cpu.bits;
|
||||||
endianPrefix = if targetPlatform.isBigEndian then "big" else "little";
|
endianPrefix = if targetPlatform.isBigEndian then "big" else "little";
|
||||||
sep = optionalString (!targetPlatform.isMips && !targetPlatform.isPower) "-";
|
sep = optionalString (!targetPlatform.isMips && !targetPlatform.isPower && !targetPlatform.isRiscV) "-";
|
||||||
arch =
|
arch =
|
||||||
/**/ if targetPlatform.isAarch64 then endianPrefix + "aarch64"
|
/**/ if targetPlatform.isAarch64 then endianPrefix + "aarch64"
|
||||||
else if targetPlatform.isAarch32 then endianPrefix + "arm"
|
else if targetPlatform.isAarch32 then endianPrefix + "arm"
|
||||||
@ -187,6 +187,7 @@ stdenv.mkDerivation {
|
|||||||
else if targetPlatform.isAlpha then "alpha"
|
else if targetPlatform.isAlpha then "alpha"
|
||||||
else if targetPlatform.isVc4 then "vc4"
|
else if targetPlatform.isVc4 then "vc4"
|
||||||
else if targetPlatform.isOr1k then "or1k"
|
else if targetPlatform.isOr1k then "or1k"
|
||||||
|
else if targetPlatform.isRiscV then "lriscv"
|
||||||
else throw "unknown emulation for platform: ${targetPlatform.config}";
|
else throw "unknown emulation for platform: ${targetPlatform.config}";
|
||||||
in if targetPlatform.useLLVM or false then ""
|
in if targetPlatform.useLLVM or false then ""
|
||||||
else targetPlatform.platform.bfdEmulation or (fmt + sep + arch);
|
else targetPlatform.platform.bfdEmulation or (fmt + sep + arch);
|
||||||
|
Loading…
Reference in New Issue
Block a user