Re: [PATCH v2] kbuild: Add better clang cross build support

2017-04-23 Thread Masahiro Yamada
2017-04-22 3:20 GMT+09:00 Matthias Kaehlcke : > 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

Re: [PATCH v2] kbuild: Add better clang cross build support

2017-04-23 Thread Masahiro Yamada
2017-04-22 3:20 GMT+09:00 Matthias Kaehlcke : > 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 >

Re: [PATCH v2] kbuild: Add better clang cross build support

2017-04-21 Thread Matthias Kaehlcke
Hi Masahiro, Thanks for your comments. El Fri, Apr 21, 2017 at 05:24:31PM +0900 Masahiro Yamada ha dit: > 2017-04-11 6:09 GMT+09:00 Matthias Kaehlcke : > > > > COMPILER is previously set to "clang" if CC=clang was set from the > > make command line. So -target and

Re: [PATCH v2] kbuild: Add better clang cross build support

2017-04-21 Thread Matthias Kaehlcke
Hi Masahiro, Thanks for your comments. El Fri, Apr 21, 2017 at 05:24:31PM +0900 Masahiro Yamada ha dit: > 2017-04-11 6:09 GMT+09:00 Matthias Kaehlcke : > > > > COMPILER is previously set to "clang" if CC=clang was set from the > > make command line. So -target and -gcc-toolchain can be added

[PATCH v2] kbuild: Add better clang cross build support

2017-04-21 Thread Matthias Kaehlcke
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

[PATCH v2] kbuild: Add better clang cross build support

2017-04-21 Thread Matthias Kaehlcke
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

Re: [PATCH v2] kbuild: Add better clang cross build support

2017-04-21 Thread Masahiro Yamada
Hi Matthias, 2017-04-11 6:09 GMT+09:00 Matthias Kaehlcke : > COMPILER is previously set to "clang" if CC=clang was set from the > make command line. So -target and -gcc-toolchain can be added to CC, > since we already know that it is set. Can you reword or delete this

Re: [PATCH v2] kbuild: Add better clang cross build support

2017-04-21 Thread Masahiro Yamada
Hi Matthias, 2017-04-11 6:09 GMT+09:00 Matthias Kaehlcke : > COMPILER is previously set to "clang" if CC=clang was set from the > make command line. So -target and -gcc-toolchain can be added to CC, > since we already know that it is set. Can you reword or delete this paragraph? I think this

[PATCH v2] kbuild: Add better clang cross build support

2017-04-10 Thread Matthias Kaehlcke
Add cross target to CC if using clang. Also add custom gcc toolchain path for fallback gcc tools. COMPILER is previously set to "clang" if CC=clang was set from the make command line. So -target and -gcc-toolchain can be added to CC, since we already know that it is set. Clang will fallback to

[PATCH v2] kbuild: Add better clang cross build support

2017-04-10 Thread Matthias Kaehlcke
Add cross target to CC if using clang. Also add custom gcc toolchain path for fallback gcc tools. COMPILER is previously set to "clang" if CC=clang was set from the make command line. So -target and -gcc-toolchain can be added to CC, since we already know that it is set. Clang will fallback to