From patchwork Mon Apr 8 21:26:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 161948 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4172053jan; Mon, 8 Apr 2019 14:27:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxut9e44DOdCgOQxoRzIjO7ZsFE0IHu/BiDdkp9iEab3rORMFFqxUHUeGKHS2Rep4mqS5vD X-Received: by 2002:aa7:8384:: with SMTP id u4mr32127865pfm.214.1554758878879; Mon, 08 Apr 2019 14:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554758878; cv=none; d=google.com; s=arc-20160816; b=ncIf7Ei5AzT4mSryF+HtGVDEmhJWnheeaFxsi9QJDEx43Gb6SDy2/X7A2b0ZxfWugF em/CRKmpBr3U3Jpvan/dEAgGnIKBCGqLl5yLeneGqkJfkTT4HRmE80Gryh5VH7bibhQN cBHPUicgXM7kYbiiBSxwu/xdwIHyo+lyDaHVaamxta/gY/S21mi1cjMX6vXhAd35H6w7 Wm5rCCfBl0GJYOu07cfy4eYddCRN64kZXg2XGo9Rc8D4wa/r1Tv6HM3LLednVbgHzDRg QbabkOkRCsA309tBKD+hMBRXSSE7e2bRCNTeDfbPMdF5XBqJCDnBucGxgdd8UGTfrPim 483A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=cTUR9G+B+YhFmPLyFQYbAK14OWDfjMCDtl3JsHbxpLE=; b=cF/xMoAa9ih9E3/aMETjyck2VAqsuzdEfm5UbjkbAlyrt6QrhLH44jEBUywaTrPnas +xoV4VRjLvLx0RVOSksddtKIE5Gv0zrojGVhneX14FrTB+nsHO3IBo08rfC3+f7C6pqe jGURhI2B/m31tiUjhhgO15Lv7RueNtQyiKW6amAywjgwTIEMvE30UQkB2reJ9eWHWMiw a5RnatcU4MzAFhOV738vKGbGjrQpsQG1GXpmpl36F3TXN4QlJUUFPIh/N06ap3cQTP9O aALGWuctNXELpmsP+ZIykqg+0STi8jnzyBx8YYQD7IqMMlvR4oJXl3bJpQ2ZzqrQLkRm mzNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si28168536pfv.74.2019.04.08.14.27.58; Mon, 08 Apr 2019 14:27:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729268AbfDHV14 (ORCPT + 31 others); Mon, 8 Apr 2019 17:27:56 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:58077 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbfDHV14 (ORCPT ); Mon, 8 Apr 2019 17:27:56 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1M9nhF-1hIoSp21wL-005non; Mon, 08 Apr 2019 23:27:50 +0200 From: Arnd Bergmann To: Martin Schwidefsky , Heiko Carstens Cc: clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , linux-s390@vger.kernel.org, Arnd Bergmann , Philipp Rudo , Hendrik Brueckner , linux-kernel@vger.kernel.org Subject: [PATCH 03/12] s390: purgatory: pass --target option to clang Date: Mon, 8 Apr 2019 23:26:16 +0200 Message-Id: <20190408212648.2407234-3-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190408212648.2407234-1-arnd@arndb.de> References: <20190408212648.2407234-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:0tSFcfZEGhmi3LO0T7RG67wRm2IyqlmzXadJlocqt9B7sFY/+lt BWUl4xnwjasv1KClaYG7Kn5Q29ZfdAaeJfZW8NmnH0SKXn24hxqgxGmNL05YVrj8/jo+tGW 0BiBBil8giHVcEoLEjBtaFPJU80sMQNK+F14LqY/3QzHfZS/LtIWZRtRLKGnm1scc+fiXVw 1m4y1TPm6KQF2CH+AduSA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:ozYeKzMil0o=:UBmHGABlIwB+YQP1sDCHFM walQWJF2sawPSRMvC1sBwMtvQGQicSpyKGpdaZniEUAIt78/cEz93DJaoownsAolDojocCJ8p N3EbWxqyQMPK+F+4M4JATHXaSypkFJYZd6bK8iGBElWHlJWANTJA4oVDWnHkqwYld9DWSmw5G Te88C4VqjuH+mRD87FQ7D3fwJ6Y+WR/F2QjWd9F0KG493eHZJI+cBb4lkoAn8+2PZbwzzQyg+ 1F8/8xCwzZvcntngC8ef6wJdPQn1BBkqJOMKOb8IVsWdu62TB9qMwKb9yXsFiV3RlItsosvbC sYZ7fE3QCwq+CZU+mEu/Hm07eh3p7D7vTvOw7wtdAUJNrxZIRgJOfkc10yfNkuW6ZUqH5An4y 5pJaVltEiYv5ZYMgQxrtg+ECgsPjt6k7ZTecjSsl8vDFg3i8XFq84K1zkqdfQiPz7eVYrwjMF BVByHw+ALQA2mxM7PRiNIYoASLPtS93MUacfXgpzGLLIi7ZbYKhOWCSy7JpbWsZwdkwPEu3o1 91ZfinCStiZx+BoHvdybAY3Mv0hpUL/3pE/8MAxj9nKdzRg0jCv2KGOPbGENzzfdqfaFsy3Bx 3femAuUhVScnVoHejDHQGUCcTcgxyKHCU0DeocSqvjNBzqDhk76gAOEJd9aQ2SPZ3nHsI4bmK /FUOnjRKAUAMz3FCybiHSqm4QdZlCuXl9InMi/b2Q2aYwDQkhAblm04zfxiRJ9ovrGr1jmjQU 34nec+8F3QR0zgu+PlTc6X+fzJTN2ll39e5RZA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purgatory Makefile does 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. Pass --target=s390x-linux to all compilers that understand this option. Signed-off-by: Arnd Bergmann --- arch/s390/purgatory/Makefile | 1 + 1 file changed, 1 insertion(+) -- 2.20.0 Reviewed-by: Nathan Chancellor diff --git a/arch/s390/purgatory/Makefile b/arch/s390/purgatory/Makefile index ce6a3f75065b..3a14b968cec3 100644 --- a/arch/s390/purgatory/Makefile +++ b/arch/s390/purgatory/Makefile @@ -22,6 +22,7 @@ KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes KBUILD_CFLAGS += -Wno-pointer-sign -Wno-sign-compare KBUILD_CFLAGS += -fno-zero-initialized-in-bss -fno-builtin -ffreestanding KBUILD_CFLAGS += -c -MD -Os -m64 -msoft-float -fno-common +KBUILD_CFLAGS += $(call cc-option,--target=s390x-linux) KBUILD_CFLAGS += $(call cc-option,-fno-PIE) KBUILD_AFLAGS := $(filter-out -DCC_USING_EXPOLINE,$(KBUILD_AFLAGS))