mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
nixos/lib/qemu-common.nix: set qemuSerialDevice for isMips64
This commit is contained in:
parent
533ca3db3c
commit
c46bdcbaf2
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
qemuSerialDevice =
|
qemuSerialDevice =
|
||||||
if pkgs.stdenv.hostPlatform.isx86 || pkgs.stdenv.hostPlatform.isRiscV then "ttyS0"
|
if with pkgs.stdenv.hostPlatform; isx86 || isMips64 || isRiscV then "ttyS0"
|
||||||
else if (with pkgs.stdenv.hostPlatform; isAarch || isPower) then "ttyAMA0"
|
else if (with pkgs.stdenv.hostPlatform; isAarch || isPower) then "ttyAMA0"
|
||||||
else throw "Unknown QEMU serial device for system '${pkgs.stdenv.hostPlatform.system}'";
|
else throw "Unknown QEMU serial device for system '${pkgs.stdenv.hostPlatform.system}'";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue