From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 3 May 2019 16:26:04 +0200 From: Heiko Carstens Subject: Re: [PATCH v2 2/4] s390: boot, purgatory: pass $(CLANG_FLAGS) where needed References: <20190415083605.2560074-1-arnd@arndb.de> <20190415083605.2560074-2-arnd@arndb.de> <20190415161206.GA6928@archlinux-i9> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190415161206.GA6928@archlinux-i9> Message-Id: <20190503142604.GD5602@osiris> Sender: linux-kernel-owner@vger.kernel.org List-Archive: List-Post: To: Nathan Chancellor Cc: Arnd Bergmann , Martin Schwidefsky , clang-built-linux@googlegroups.com, Nick Desaulniers , linux-s390@vger.kernel.org, Vasily Gorbik , Masahiro Yamada , Luc Van Oostenryck , Philipp Rudo , linux-kernel@vger.kernel.org List-ID: 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 > > Reviewed-by: Nathan Chancellor > > > --- > > arch/s390/Makefile | 4 ++-- > > arch/s390/purgatory/Makefile | 1 + > > 2 files changed, 3 insertions(+), 2 deletions(-) Applied, thanks.