summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOPNA2608 <opna2608@protonmail.com>2025-11-23 00:18:54 +0100
committerOPNA2608 <opna2608@protonmail.com>2026-01-22 15:40:36 +0100
commit3e6bae2fa43d4d12ebd15e9f38a984e06643f7d7 (patch)
treea51c867a5c096b744069a9e13d7807d59337c544 /lib
parentnixos-rebuild-ng: allow deploying closures (#482430) (diff)
downloadnixpkgs-3e6bae2fa43d4d12ebd15e9f38a984e06643f7d7.tar.gz
lib/systems/platforms: Add ppc64
Diffstat (limited to 'lib')
-rw-r--r--lib/systems/platforms.nix18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/systems/platforms.nix b/lib/systems/platforms.nix
index 9c9010b9fb46..225ad16bfdc4 100644
--- a/lib/systems/platforms.nix
+++ b/lib/systems/platforms.nix
@@ -22,6 +22,10 @@ rec {
linux-kernel.autoModules = false;
};
+ ##
+ ## POWER
+ ##
+
powernv = {
linux-kernel = {
name = "PowerNV";
@@ -42,6 +46,16 @@ rec {
};
};
+ ppc64 = {
+ linux-kernel = {
+ name = "powerpc64";
+
+ baseConfig = "ppc64_defconfig";
+ target = "vmlinux";
+ autoModules = true;
+ };
+ };
+
##
## ARM
##
@@ -628,8 +642,8 @@ rec {
else if platform.parsed.cpu == lib.systems.parse.cpuTypes.mipsel then
(import ./examples.nix { inherit lib; }).mipsel-linux-gnu
- else if platform.parsed.cpu == lib.systems.parse.cpuTypes.powerpc64le then
- powernv
+ else if platform.isPower64 then
+ if platform.isLittleEndian then powernv else ppc64
else if platform.isLoongArch64 then
loongarch64-multiplatform