lib/systems/platforms: Add ppc64; linux: Add 64-bit POWER settings, strip vmlinux kernels (#447752)

This commit is contained in:
Alyssa Ross 2026-02-02 12:10:28 +00:00 committed by GitHub
commit 95c8d1ec1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 42 additions and 11 deletions

View file

@ -22,6 +22,10 @@ rec {
linux-kernel.autoModules = false;
};
##
## POWER
##
powernv = {
linux-kernel = {
name = "PowerNV";
@ -29,16 +33,16 @@ rec {
baseConfig = "powernv_defconfig";
target = "vmlinux";
autoModules = true;
# avoid driver/FS trouble arising from unusual page size
extraConfig = ''
PPC_64K_PAGES n
PPC_4K_PAGES y
IPV6 y
};
};
ATA_BMDMA y
ATA_SFF y
VIRTIO_MENU y
'';
ppc64 = {
linux-kernel = {
name = "powerpc64";
baseConfig = "ppc64_defconfig";
target = "vmlinux";
autoModules = true;
};
};
@ -625,8 +629,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