]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: Add better clang cross build support
authorBehan Webster <behanw@converseincode.com>
Fri, 21 Apr 2017 18:20:01 +0000 (11:20 -0700)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 23 Apr 2017 07:14:46 +0000 (16:14 +0900)
commited23fe3b759513b4ada9bb1fe38c58ad615a7758
tree073e9b6a9d466574250560cca596b971b9e97723
parentc9466ce5424abe0d70ca103f71f129d4592a9c4d
kbuild: Add better clang cross build support

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.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Reviewed-by: Jan-Simon Möller <dl9pf@gmx.de>
Reviewed-by: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile