Skip to content

Commit

Permalink
Update 64-bit big endian PowerPC configuration target
Browse files Browse the repository at this point in the history
A patch in review will change pseries_defconfig from a big endian
configuration to a little endian configuration:

https://lore.kernel.org/20230414132415.821564-32-mpe@ellerman.id.au/

As suggested in the commit message, switch to ppc64_guest_defconfig now
to guarantee that we always get a 64-bit big endian kernel that can boot
in QEMU, which is exactly what this configuration intends to do,
regardless of whether or not that change is actually accepted.

This configuration target is available on 5.4, the oldest kernel we
build ppc64 on, and it works fine with both clang-12 and clang-17, the
oldest and newest toolchain versions that this configuration is built
with.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
  • Loading branch information
nathanchance committed Apr 14, 2023
1 parent c85d59f commit 5974403
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generator.yml
Expand Up @@ -290,8 +290,8 @@ configs:
- &mips {config: [malta_defconfig, CONFIG_BLK_DEV_INITRD=y, CONFIG_CPU_BIG_ENDIAN=y], kernel_image: vmlinux, ARCH: *mips-arch, << : *kernel}
- &mipsel {config: [malta_defconfig, CONFIG_BLK_DEV_INITRD=y], kernel_image: vmlinux, ARCH: *mips-arch, << : *kernel}
- &ppc32 {config: ppc44x_defconfig, kernel_image: uImage, ARCH: *powerpc-arch, << : *kernel}
# Disable -Werror for pseries_defconfig for now: https://github.com/ClangBuiltLinux/linux/issues/1445
- &ppc64 {config: [pseries_defconfig, CONFIG_PPC_DISABLE_WERROR=y], kernel_image: vmlinux, ARCH: *powerpc-arch, << : *kernel}
# Disable -Werror for ppc64_guest_defconfig for now: https://github.com/ClangBuiltLinux/linux/issues/1445
- &ppc64 {config: [ppc64_guest_defconfig, CONFIG_PPC_DISABLE_WERROR=y], kernel_image: vmlinux, ARCH: *powerpc-arch, << : *kernel}
- &ppc64le {config: powernv_defconfig, kernel_image: zImage.epapr, ARCH: *powerpc-arch, << : *kernel}
# CONFIG_BPF_PRELOAD disabled for all cross compiled Fedora configs: https://github.com/ClangBuiltLinux/linux/issues/1433
- &ppc64le_fedora {config: [*ppc64le-fedora-config-url, CONFIG_BPF_PRELOAD=n], kernel_image: zImage.epapr, ARCH: *powerpc-arch, << : *kernel}
Expand Down
2 changes: 1 addition & 1 deletion utils.py
Expand Up @@ -97,7 +97,7 @@ def get_cbl_name():
"multi_v7_defconfig": "arm32_v7",
"malta_defconfig": "mipsel",
"ppc44x_defconfig": "ppc32",
"pseries_defconfig": "ppc64",
"ppc64_guest_defconfig": "ppc64",
"powernv_defconfig": "ppc64le",
}
if "CONFIG_CPU_BIG_ENDIAN=y" in full_config:
Expand Down

0 comments on commit 5974403

Please sign in to comment.