Commit Message

The powerpc toolchain can compile combinations of 32/64 bit and
big/little endian, so it's convenient to consider, e.g.,
`CC -m64 -mbig-endian`
To be the C compiler for the purpose of invoking it to build target
artifacts. So overriding the the CC variable to include these flags
works for this purpose.
Unfortunately that is not compatible with the way the proposed new
Kconfig macro language implementation, which gets confused by the
the $(CC) environment variable changing.
After previous patches in this series, these flags can be carefully
passed in using the usual kbuild flags variables instead.
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
Since v3:
- Added 32/64 flags to recordmcount.pl invocation of the toolchain,
similarly to BE/LE. This fixes problems with toolchain default
target bitness != kernel target bitness. I kept Steven's ack
because it's much the same powerpc specific change, okay?
- Added a similar fix for mismatched toolchain default endianness
or bitness to the gcc-check-mprofile-kernel.sh script. This was
pulled in from patch 4 and improved (added comment and endianness
flags).
arch/powerpc/Makefile | 16 +++++++++-------
.../powerpc/tools/gcc-check-mprofile-kernel.sh | 12 ++++++++----
scripts/recordmcount.pl | 18 +++++++++++++++++-
3 files changed, 34 insertions(+), 12 deletions(-)