ARM: 8939/1: kbuild: use correct nm executable
authorDmitry Golovin <dima@golovin.in>
Tue, 19 Nov 2019 15:39:42 +0000 (16:39 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 22 Nov 2019 00:19:11 +0000 (00:19 +0000)
commit29c623d64f0dcd6aa10e0eabd16233e77114090b
tree4b797f6505bfbf22c1bf48e52cdebf56fc5d175c
parent022eb8ae8b5ee8c5c813923c69b5ebb1e9612c4c
ARM: 8939/1: kbuild: use correct nm executable

Since $(NM) variable can be easily overridden for the whole build, it's
better to use it instead of $(CROSS_COMPILE)nm. The use of $(CROSS_COMPILE)
prefixed variables where their calculated equivalents can be used is
incorrect. This fixes issues with builds where $(NM) is set to llvm-nm.

Link: https://github.com/ClangBuiltLinux/linux/issues/766
Signed-off-by: Dmitry Golovin <dima@golovin.in>
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Cc: Matthias Maennich <maennich@google.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/boot/compressed/Makefile