android_kernel_oneplus_msm8998/arch/arc
Alexey Brodkin 466dda64e4 ARC: build: Get rid of toolchain check
commit 615f64458ad890ef94abc879a66d8b27236e733a upstream.

This check is very naive: we simply test if GCC invoked without
"-mcpu=XXX" has ARC700 define set. In that case we think that GCC
was built with "--with-cpu=arc700" and has libgcc built for ARC700.

Otherwise if ARC700 is not defined we think that everythng was built
for ARCv2.

But in reality our life is much more interesting.

1. Regardless of GCC configuration (i.e. what we pass in "--with-cpu"
   it may generate code for any ARC core).

2. libgcc might be built with explicitly specified "--mcpu=YYY"

That's exactly what happens in case of multilibbed toolchains:
 - GCC is configured with default settings
 - All the libs built for many different CPU flavors

I.e. that check gets in the way of usage of multilibbed
toolchains. And even non-multilibbed toolchains are affected.
OpenEmbedded also builds GCC without "--with-cpu" because
each and every target component later is compiled with explicitly
set "-mcpu=ZZZ".

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-20 09:52:38 +02:00
..
boot
configs ARC: [plat-axs*]: Enable SWAP 2018-09-19 22:48:56 +02:00
include arc: fix build errors in arc/include/asm/delay.h 2018-09-05 09:18:36 +02:00
kernel ARC: clone syscall to setp r25 as thread pointer 2018-10-13 09:11:34 +02:00
lib
mm arc: fix type warnings in arc/mm/cache.c 2018-09-05 09:18:36 +02:00
oprofile
plat-axs10x
plat-sim
plat-tb10x
Kbuild
Kconfig ARC: Fix malformed ARC_EMUL_UNALIGNED default 2018-05-30 07:48:58 +02:00
Kconfig.debug
Makefile ARC: build: Get rid of toolchain check 2018-10-20 09:52:38 +02:00