]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit074c6ee4bd0b881ddc806962402cb1264eaac269
tree3341d1a4b9765ca7f523a52498b0563d14e758b0
parent3a476b653404b32a5e620a924428c930b56dcd09
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