Re: [v5, 1/4] powerpc/kbuild: set default generic machine type for 32-bit compile

2018-06-04 Thread Michael Ellerman
On Wed, 2018-05-30 at 12:19:19 UTC, Nicholas Piggin wrote: > Some 64-bit toolchains uses the wrong ISA variant for compiling 32-bit > kernels, even with -m32. Debian's powerpc64le is one such case, and > that is because it is built with --with-cpu=power8. > > So when cross compiling a 32-bit

Re: [PATCH v5 1/4] powerpc/kbuild: set default generic machine type for 32-bit compile

2018-05-30 Thread Masahiro Yamada
2018-05-30 21:19 GMT+09:00 Nicholas Piggin : > Some 64-bit toolchains uses the wrong ISA variant for compiling 32-bit > kernels, even with -m32. Debian's powerpc64le is one such case, and > that is because it is built with --with-cpu=power8. > > So when cross compiling a 32-bit kernel with a

Re: [PATCH v5 1/4] powerpc/kbuild: set default generic machine type for 32-bit compile

2018-05-30 Thread Masahiro Yamada
2018-05-30 21:19 GMT+09:00 Nicholas Piggin : > Some 64-bit toolchains uses the wrong ISA variant for compiling 32-bit > kernels, even with -m32. Debian's powerpc64le is one such case, and > that is because it is built with --with-cpu=power8. > > So when cross compiling a 32-bit kernel with a

[PATCH v5 1/4] powerpc/kbuild: set default generic machine type for 32-bit compile

2018-05-30 Thread Nicholas Piggin
Some 64-bit toolchains uses the wrong ISA variant for compiling 32-bit kernels, even with -m32. Debian's powerpc64le is one such case, and that is because it is built with --with-cpu=power8. So when cross compiling a 32-bit kernel with a 64-bit toolchain, set -mcpu=powerpc initially, which is the