linux-stable/arch
Michael Ellerman e4c9414821 powerpc: Fix defconfig choice logic when cross compiling
commit af5cd05de5 upstream.

Our logic for choosing defconfig doesn't work well in some situations.

For example if you're on a ppc64le machine but you specify a non-empty
CROSS_COMPILE, in order to use a non-default toolchain, then defconfig
will give you ppc64_defconfig (big endian):

  $ make CROSS_COMPILE=~/toolchains/gcc-8/bin/powerpc-linux- defconfig
  *** Default configuration is based on 'ppc64_defconfig'

This is because we assume that CROSS_COMPILE being set means we
can't be on a ppc machine and rather than checking we just default to
ppc64_defconfig.

We should just ignore CROSS_COMPILE, instead check the machine with
uname and if it's one of ppc, ppc64 or ppc64le then use that
defconfig. If it's none of those then we fall back to ppc64_defconfig.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Alyssa Ross <hi@alyssa.is>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-21 15:38:59 +02:00
..
alpha alpha: fix R_ALPHA_LITERAL reloc for large modules 2023-03-17 08:30:38 +01:00
arc arc: iounmap() arg is volatile 2022-11-03 23:50:54 +09:00
arm ARM: dts: vexpress: add missing cache properties 2023-06-21 15:38:57 +02:00
arm64 arm64: kgdb: Set PSTATE.SS to 1 to re-enable single-step 2023-05-17 11:11:40 +02:00
blackfin
c6x
cris
frv
h8300 h8300: Fix build errors from do_exit() to make_task_dead() transition 2023-02-06 07:46:34 +01:00
hexagon hexagon: Fix function name in die() 2023-02-06 07:46:34 +01:00
ia64 ia64: mm/contig: fix section mismatch warning/error 2023-05-17 11:11:43 +02:00
m32r
m68k m68k: Move signal frame following exception on 68020/030 2023-05-30 12:38:37 +01:00
metag
microblaze exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
mips Remove DECnet support from kernel 2023-06-21 15:38:58 +02:00
mn10300
nios2 nios2: dts: Fix tse_mac "max-frame-size" property 2023-06-21 15:38:58 +02:00
openrisc exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
parisc parisc: Allow to reboot machine after system halt 2023-05-30 12:38:37 +01:00
powerpc powerpc: Fix defconfig choice logic when cross compiling 2023-06-21 15:38:59 +02:00
riscv/include/uapi/asm riscv: Bump COMMAND_LINE_SIZE value to 1024 2023-04-05 11:14:16 +02:00
s390 s390/ptrace: fix PTRACE_GET_LAST_BREAK error handling 2023-04-26 11:18:56 +02:00
score
sh sh: nmi_debug: fix return value of __setup handler 2023-05-17 11:11:50 +02:00
sparc exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
tile
um UM: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK 2022-10-26 13:16:56 +02:00
unicore32 linux/const.h: move UL() macro to include/linux/const.h 2022-11-10 15:47:24 +01:00
x86 x86/boot: Wrap literal addresses in absolute_pointer() 2023-06-09 10:22:53 +02:00
xtensa exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
.gitignore
Kconfig