kbuild: clang: do not use CROSS_COMPILE for target triple
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 1 Apr 2023 17:01:17 +0000 (02:01 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 17 Apr 2023 02:23:06 +0000 (11:23 +0900)
commitddc72c9659b5a85a2d135503caf193da0723e813
treeaa5453d5711d31d9d95cc302c8aa3b48face6e85
parentfb318e54fea6b8532833faef98c8b7720a30b29d
kbuild: clang: do not use CROSS_COMPILE for target triple

The target triple is overridden by the user-supplied CROSS_COMPILE,
but I do not see a good reason to support it. Users can use a new
architecture without adding CLANG_TARGET_FLAGS_*, but that would be
a rare case.

Use the hard-coded and deterministic target triple all the time.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/Makefile.clang