diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-07-01 00:06:25 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-07-02 00:58:00 +0900 |
commit | 7f58b487e9ff3ff0f5f29a57172295a41f08a6b5 (patch) | |
tree | d4912fafbd144b54679f7c4d4e8f15a9ccd75c72 /drivers | |
parent | b816b3db15f68690ee72a4a414624f8e82942b25 (diff) | |
download | linux-7f58b487e9ff3ff0f5f29a57172295a41f08a6b5.tar.gz linux-7f58b487e9ff3ff0f5f29a57172295a41f08a6b5.tar.bz2 linux-7f58b487e9ff3ff0f5f29a57172295a41f08a6b5.zip |
kbuild: make Clang build userprogs for target architecture
Programs added 'userprogs' should be compiled for the target
architecture i.e. the same architecture as the kernel.
GCC does this correctly since the target architecture is implied
by the toolchain prefix.
Clang builds userspace programs always for the host architecture
because the target triple is currently missing.
Fix this.
Fixes: 7f3a59db274c ("kbuild: add infrastructure to build userspace programs")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions