]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - scripts/recordmcount.pl
powerpc/kbuild: Use flags variables rather than overriding LD/CC/AS
authorNicholas Piggin <npiggin@gmail.com>
Wed, 30 May 2018 12:19:21 +0000 (22:19 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 1 Jun 2018 13:08:09 +0000 (23:08 +1000)
commit1421dc6d48296a9e91702743b31458d337610aa6
tree3341d1a4b9765ca7f523a52498b0563d14e758b0
parentaf3901cbbd3de182aafb8ee553c825c0074df6a2
powerpc/kbuild: Use flags variables rather than overriding LD/CC/AS

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 CC variable to include these flags works
for this purpose.

Unfortunately that is not compatible with the way the proposed new
Kconfig macro language will work.

After previous patches in this series, these flags can be carefully
passed in using flags instead.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Makefile
arch/powerpc/tools/gcc-check-mprofile-kernel.sh
scripts/recordmcount.pl