linux-stable/arch/powerpc
Mathieu Malaterre ebd1d3b74f powerpc/32: Move the old 6xx -mcpu logic before the TARGET_CPU logic
The code:

  ifdef CONFIG_6xx
  KBUILD_CFLAGS          += -mcpu=powerpc
  endif

was added in 2006 in commit f48b8296b3 ("[PATCH] powerpc32: Set cpu
explicitly in kernel compiles"). This change was acceptable since the
TARGET_CPU logic was 64-bit only.

Since commit 0e00a8c9fd ("powerpc: Allow CPU selection
also on PPC32") this logic is no longer acceptable after the TARGET_CPU
specific. It currently appends -mcpu=powerpc at the end of the command
line, after any TARGET_CPU specific:

  gcc -Wp,-MD,init/.do_mounts.o.d ...
    -mcpu=powerpc -mbig-endian -m32 ...
    -mcpu=e300c2 ...
    -mcpu=powerpc ...
    ../init/do_mounts.c

Fixes: 0e00a8c9fd ("powerpc: Allow CPU selection also on PPC32")
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-12-17 22:12:30 +11:00
..
boot powerpc/boot: Fix build failures with -j 1 2018-12-06 16:10:15 +11:00
configs powerpc/configs: Add KVM guest defconfig 2018-11-26 22:33:37 +11:00
crypto powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
include powerpc/ipic: Remove unused ipic_set_priority() 2018-12-17 22:12:30 +11:00
kernel Merge branch 'fixes' into next 2018-12-17 22:11:54 +11:00
kvm powerpc/mm: move platform specific mmu-xxx.h in platform directories 2018-12-04 19:45:01 +11:00
lib powerpc/lib: Declare static methods 2018-11-25 17:11:21 +11:00
math-emu
mm Merge branch 'fixes' into next 2018-12-17 22:11:54 +11:00
net powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
oprofile powerpc: change CONFIG_6xx to CONFIG_PPC_BOOK3S_32 2018-11-26 22:33:37 +11:00
perf powerpc/perf: Declare static identifier a such 2018-11-25 17:11:21 +11:00
platforms Merge branch 'fixes' into next 2018-12-17 22:11:54 +11:00
purgatory powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
sysdev powerpc/ipic: Remove unused ipic_set_priority() 2018-12-17 22:12:30 +11:00
tools powerpc/tools/checkpatch: Ignore DT_SPLIT_BINDING_PATCH 2018-12-04 19:45:01 +11:00
xmon powerpc: annotate implicit fall throughs 2018-12-04 19:45:01 +11:00
Kbuild powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
Kconfig powerpc/8xx: reintroduce 16K pages with HW assistance 2018-12-04 19:45:01 +11:00
Kconfig.debug powerpc: remove redundant 'default n' from Kconfig-s 2018-10-13 22:21:25 +11:00
Makefile powerpc/32: Move the old 6xx -mcpu logic before the TARGET_CPU logic 2018-12-17 22:12:30 +11:00
Makefile.postlink