powerpc/boot: Set target when cross-compiling for clang
authorJoel Stanley <joel@jms.id.au>
Mon, 12 Nov 2018 04:21:16 +0000 (14:51 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 08:51:05 +0000 (09:51 +0100)
commit7dfb22b5abaaa5cb542bf661aacbf359371844cf
treea7b536784027d567dc82e0c2cf5007b2d5f6154a
parentf4c27d53b15dbd8bae0b3095cf3cfff20d43ceb2
powerpc/boot: Set target when cross-compiling for clang

commit 813af51f5d30a2da6a2523c08465f9726e51772e upstream.

Clang needs to be told which target it is building for when cross
compiling.

Link: https://github.com/ClangBuiltLinux/linux/issues/259
Signed-off-by: Joel Stanley <joel@jms.id.au>
Tested-by: Daniel Axtens <dja@axtens.net> # powerpc 64-bit BE
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/boot/Makefile