Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3264702yba; Mon, 8 Apr 2019 14:56:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVF5HWEw6JHEnrActheytgBMLdDDZfPxv/kIxL8Q/bp46qjiXYtSaqQvVRnP/ui1cMhHa7 X-Received: by 2002:a63:3f8d:: with SMTP id m135mr3675466pga.228.1554760602253; Mon, 08 Apr 2019 14:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554760602; cv=none; d=google.com; s=arc-20160816; b=hoC3r8kupZPYVQHaUIiFnACSjEXK2v87qlNL1OWdh29MHjZ9PHvN30fkUKBMw69Yci w9kBeOtg6yKCn4QMGPJ1TjMAyWPD8CWjEO5hSjhNTR9yT6f1tUTmLOMk947DClbc6aHV Ob7490U8xA5uqfq5+m5/D7QzuSZqFcusICvV9UlpwaogW85oayvzsToImmGWBhQAvjb0 JQuOiwZ791vruhMMDC5bcQ0qsFq8DchUFxECw+Ry/9L5CQ6u1+Tq6Ck0hm3rC6hxUoHI 8CjJO2RXCcfaGV+2Zz3RCXj8J6AJWlek3zek4DLA3IRZCQnZNA+BH4uq9q/zEAx7kZP0 PMpA== 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 x15si28276727pgi.524.2019.04.08.14.56.27; Mon, 08 Apr 2019 14:56:42 -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 S1729261AbfDHV14 (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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(+) 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)) -- 2.20.0