kbuild: consolidate Clang compiler flags
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 6 Nov 2018 03:04:55 +0000 (12:04 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 09:01:04 +0000 (10:01 +0100)
commitff858d82207470c8612bb66d7129235f81567524
tree6986bedef2a44e182d1f6d91a094d2bae2fd7c60
parent23d9f5e4a3ad66061e96dc467e65b580fafe3648
kbuild: consolidate Clang compiler flags

commit 238bcbc4e07fad2fff99c5b157d0c37ccd4d093c upstream.

Collect basic Clang options such as --target, --prefix, --gcc-toolchain,
-no-integrated-as into a single variable CLANG_FLAGS so that it can be
easily reused in other parts of Makefile.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Makefile