Re: [PATCH v2 2/4] s390: boot, purgatory: pass $(CLANG_FLAGS) where needed

From: Heiko Carstens
Date: Fri May 03 2019 - 10:26:43 EST


On Mon, Apr 15, 2019 at 09:12:06AM -0700, Nathan Chancellor wrote:
> On Mon, Apr 15, 2019 at 10:35:52AM +0200, Arnd Bergmann wrote:
> > The purgatory and boot Makefiles do not inherit the original cflags,
> > so clang falls back to the default target architecture when building it,
> > typically this would be x86 when cross-compiling.
> >
> > Add $(CLANG_FLAGS) everywhere so we pass the correct --target=s390x-linux
> > option when cross-compiling.
> >
> > Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
>
> Reviewed-by: Nathan Chancellor <natechancellor@xxxxxxxxx>
>
> > ---
> > arch/s390/Makefile | 4 ++--
> > arch/s390/purgatory/Makefile | 1 +
> > 2 files changed, 3 insertions(+), 2 deletions(-)

Applied, thanks.