Re: [PATCH v2] kbuild: Add better clang cross build support
From: Masahiro Yamada
Date: Sun Apr 23 2017 - 10:27:03 EST
2017-04-22 3:20 GMT+09:00 Matthias Kaehlcke <mka@xxxxxxxxxxxx>:
> Add cross target to CC if using clang. Also add custom gcc toolchain
> path for fallback gcc tools.
>
> Clang will fallback to using things like ld, as, and libgcc if
> (respectively) one of the llvm linkers isn't available, the integrated
> assembler is turned off, or an appropriately cross-compiled version of
> compiler-rt isn't available. To this end, you can specify the path to
> this fallback gcc toolchain with GCC_TOOLCHAIN.
>
> From: Behan Webster <behanw@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Behan Webster <behanw@xxxxxxxxxxxxxxxxxx>
> Reviewed-by: Jan-Simon MÃller <dl9pf@xxxxxx>
> Reviewed-by: Mark Charlebois <charlebm@xxxxxxxxx>
> Signed-off-by: Greg Hackmann <ghackmann@xxxxxxxxxx>
> Signed-off-by: Matthias Kaehlcke <mka@xxxxxxxxxxxx>
Applied to linux-kbuild/kbuild. Thanks!
--
Best Regards
Masahiro Yamada