powerpc: Fix -mcpu= options for SPE-only compiler
authorBen Hutchings <ben@decadent.org.uk>
Wed, 26 Dec 2018 00:00:40 +0000 (00:00 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 26 Sep 2019 12:19:06 +0000 (13:19 +0100)
commit416fc8fbecae18e9ab7047448bc24723f44a1eab
tree57ca0952b366ffbf09039ff495c2d15ce9733488
parentc46bd05ed51e5cac20df7d8b00daee1fe413ea9b
powerpc: Fix -mcpu= options for SPE-only compiler

GCC for Debian's "powerpcspe" architecture only supports 32-bit
SPE targets, and using -mcpu=powerpc or -mcpu=powerpc64 is a fatal
error.

* Change the test for a biarch compiler to pass both the -m32 and -m64
  options, so that it doesn't catch 32-bit-only compilers
* Add an ifdef CONFIG_PPC64 around the 64-bit CPU option definitions

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/powerpc
Gbp-Pq: Name powerpc-fix-mcpu-options-for-spe-only-compiler.patch
arch/powerpc/Makefile