From patchwork Sat Aug 5 19:38:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 13342668 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60B83C001DB for ; Sat, 5 Aug 2023 19:38:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230302AbjHETi1 (ORCPT ); Sat, 5 Aug 2023 15:38:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbjHETi0 (ORCPT ); Sat, 5 Aug 2023 15:38:26 -0400 X-Greylist: delayed 114 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 05 Aug 2023 12:38:22 PDT Received: from bg5.exmail.qq.com (bg5.exmail.qq.com [43.155.80.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F0B919B2 for ; Sat, 5 Aug 2023 12:38:21 -0700 (PDT) X-QQ-mid: bizesmtp82t1691264283te037nhn Received: from linux-lab-host.localdomain ( [116.30.131.233]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 06 Aug 2023 03:38:01 +0800 (CST) X-QQ-SSF: 01200000000000E0X000B00A0000000 X-QQ-FEAT: +Fw3Sd5mYDVqz4iAmVsa/lmFOKZPfF6chMKgeqPNECbG7H6X5GX9IjhBCT5TW FMmSjX/F+mQ4P9NIraT9+IyeVmeqTbHBFi70LeA2rhjEC3NSD8ZkH5KuwG14X1t0z2KhjKk CkCoYpnHjhx1P1T2+CVVfgZH9og9o6+WdcRYyvxeWSuR3AXvp4WCkSWJbaCOT5O2bghaC4J SKVKn7NDb2JJELT65wI4MiVAbycc0wUs7mkvQf1cyNwjmxXQCcmb56Ie2fFtmGZHGAUrK7p vywfLbTylX1T6dyP+kGsKuA24+NXuWpol8WAarUqpjw3s4OEc9g8OSfsWjrbF7rnlEqqIGD ZXRuhcGEuPoB7ao2/Bq4seBiVd3XsKYblhrG9FrE8hCwl7pUN57qAyC7fsKIPf3YCTrDXf/ X-QQ-GoodBg: 0 X-BIZMAIL-ID: 7154856130623740030 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, tanyuan@tinylab.org, thomas@t-8ch.de Subject: [PATCH v1 1/4] selftests/nolibc: allow use x86_64 toolchain for i386 Date: Sun, 6 Aug 2023 03:38:01 +0800 Message-Id: <4b0af38b9a799835b1bb89445da7a40b0df79b54.1691263493.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org This allows to share the same x86_64 toolchain for i386 architecture. Pass '-m32' CFLAGS to tell x86_64 toolchains to generate i386 executable. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index b4171a754eb2..e2b02761ad44 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -122,6 +122,7 @@ else Q=@ endif +CFLAGS_i386 = -m32 CFLAGS_ppc = -m32 -mbig-endian -mno-vsx $(call cc-option,-mmultiple) CFLAGS_ppc64 = -m64 -mbig-endian -mno-vsx $(call cc-option,-mmultiple) CFLAGS_ppc64le = -m64 -mlittle-endian -mno-vsx $(call cc-option,-mabi=elfv2)