diff options
author | Greg Hackmann <ghackmann@google.com> | 2016-10-25 13:59:59 -0700 |
---|---|---|
committer | Alistair Strachan <astrachan@google.com> | 2018-11-29 13:22:03 -0800 |
commit | c04915fd693950067cc9dfc6f4046b80d80107e1 (patch) | |
tree | 1c7f8a6f6121fe3b9b1faa729737833f7e138d96 /kernel/kcmp.c | |
parent | e3d1cdc82d3f2cc248e4a49d43b526731a01054f (diff) |
ANDROID: Kbuild, LLVMLinux: allow overriding clang target triple
Android has an unusual setup where the kernel needs to target
[arch]-linux-gnu to avoid Android userspace-specific flags and
optimizations, but AOSP doesn't ship a matching binutils.
Add a new variable CLANG_TRIPLE which can override the "-target" triple
used to compile the kernel, while using a different CROSS_COMPILE to
pick the binutils/gcc installation. For Android you'd do something
like:
export CLANG_TRIPLE=aarch64-linux-gnu-
export CROSS_COMPILE=aarch64-linux-android-
If you don't need something like this, leave CLANG_TRIPLE unset and it
will default to CROSS_COMPILE.
Change-Id: I85d63599c6ab8ed458071cdf9197d85b1f7f150b
Signed-off-by: Greg Hackmann <ghackmann@google.com>
[astrachan: Added a script to check for incorrectly falling back to the
default when CLANG_TRIPLE is unset]
Bug: 118442619
Signed-off-by: Alistair Strachan <astrachan@google.com>
Diffstat (limited to 'kernel/kcmp.c')
0 files changed, 0 insertions, 0 deletions