Skip to content

Commit 22f17b0

Browse files
committed
powerpc/Makefile: Default to ppc64le_defconfig when cross building
If the kernel is being cross compiled, there is no information from uname on which defconfig is most appropriate, so the Makefile defaults to ppc64. However these days almost all distros that support powerpc are little endian, so it's more likely that defaulting to ppc64le_defconfig will produce something useful for a user. Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent 4244905 commit 22f17b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ HAS_BIARCH := $(call cc-option-yn, -m32)
1616
CROSS32_COMPILE ?=
1717

1818
# If we're on a ppc/ppc64/ppc64le machine use that defconfig, otherwise just use
19-
# ppc64_defconfig because we have nothing better to go on.
19+
# ppc64le_defconfig because we have nothing better to go on.
2020
uname := $(shell uname -m)
21-
KBUILD_DEFCONFIG := $(if $(filter ppc%,$(uname)),$(uname),ppc64)_defconfig
21+
KBUILD_DEFCONFIG := $(if $(filter ppc%,$(uname)),$(uname),ppc64le)_defconfig
2222

2323
new_nm := $(shell if $(NM) --help 2>&1 | grep -- '--synthetic' > /dev/null; then echo y; else echo n; fi)
2424

0 commit comments

Comments
 (0)