Home
last modified time | relevance | path

Searched hist:"7 f58b487e9ff3ff0f5f29a57172295a41f08a6b5" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/
H A DMakefile7f58b487e9ff3ff0f5f29a57172295a41f08a6b5 Tue Jun 30 10:06:25 CDT 2020 Masahiro Yamada <masahiroy@kernel.org> 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>