lib/systems/platforms: Add ppc64

This commit is contained in:
OPNA2608 2025-11-23 00:18:54 +01:00
parent d8fe9f45bb
commit 3e6bae2fa4

View file

@ -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