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>
Wed, 27 Feb 2019 09:07:03 +0000 (10:07 +0100)
commit8ff3c2ecc1a4b79d6ee2b0e705784e2619ccaf7d
treed70424398913ceb6a6dae9e7a737233b79b1a81d
parent9eea082f762f7f71c0d0373d821b1aac22f719e3
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