board/qemu/ppc-mpc8544ds: apply Debian patch fixing wrong mcpu
authorRomain Naour <romain.naour@gmail.com>
Sun, 8 Nov 2020 17:15:00 +0000 (18:15 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 9 Nov 2020 20:23:46 +0000 (21:23 +0100)
commit780af51d86c80f102a6b2ac189bf546daffe15a2
tree56f1de136074e15ad9f286c50c95972b24768d71
parent19932c8e0288f4622611034c2d22fb7ed2cf9571
board/qemu/ppc-mpc8544ds: apply Debian patch fixing wrong mcpu

When building the linux kernel for PPC_85xx cpus with GCC 8, the build fail with:

  powerpc-e500v2-linux-gnuspe-gcc: error: unrecognized argument in option '-mcpu=powerpc'
  powerpc-e500v2-linux-gnuspe-gcc: note: valid arguments to '-mcpu=' are: 8540 8548 native

"GCC started treating "PowerPC" and "PowerPC SPE" as two different architectures and
that's the reason for the reduced -mcpu list." [1]

As suggested in the crosstool-ng issue [1], apply the Debian patch to avoid
-mcpu=powerpc or -mcpu=powerpc64.

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/830981654

[1] https://github.com/crosstool-ng/crosstool-ng/issues/1152
[2] https://salsa.debian.org/kernel-team/linux/-/blob/buster/debian/patches/bugfix/powerpc/powerpc-fix-mcpu-options-for-spe-only-compiler.patch

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/qemu/ppc-mpc8544ds/patches/linux/0001-powerpc-Fix-mcpu-options-for-SPE-only-compiler.patch [new file with mode: 0644]
configs/qemu_ppc_mpc8544ds_defconfig