Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1974258rdg; Sun, 13 Aug 2023 04:15:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfNSXEHWx+UR/+g5GnPhXtafURLATAGsQVE18tNwmnuPRPyirvI8LJS3SqjO/BaIcs4y0r X-Received: by 2002:a17:90a:cb06:b0:26b:2538:d717 with SMTP id z6-20020a17090acb0600b0026b2538d717mr4556421pjt.25.1691925358335; Sun, 13 Aug 2023 04:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691925358; cv=none; d=google.com; s=arc-20160816; b=vxl6GhhCwjHPz3CaqatsTdE7mjY6oOJduhQdYakqwiea6adGvbpGO+Ud22WLWPsJ4W 5FmCcicLRqY5zpPuwTD8salLEucCKfCrXYC0igxp86PaEZsF4LmMUjyWzU5ie/CQk/m/ JFffNeLZbpnDhz/IDQiBd2Ei4dvJNEQmrfk0kRfyPO1GBTzt6eHRPLQhXNgu7ToCd8Ug 0Ff37Kk5OrY93zPbzHhFGUjuetUhCbImOv+GtHHWv4+AEqMrRDC1ba4yN0RSP/sE3gO+ p0S63K81T0e/m++jeszXkqZvp/wQvzZvG+Oc3TUR66LOdWvtAF0W3orSMS4IXtabIR7U Sz8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=KD6DU2DlE5ASBkPJoXslDIMUl7QuPdxaMhDFVN5tu4U=; fh=DrC1ao6zWEVelNCseScP4CYabbtnw3Q97iD7eRX9jLs=; b=YuEu65OOWcEfzI9ilh/YBwYOtFgzxqjNO6D3xvF0zSG3jPcNeXTsirjzMELt5kgryq Bsjhf63KLRIdD3LSOB64HiNoaLYmQCd1oLRnCeIkfNi5vPoDMwbQZwrQgh5xq29MnQ9e y+9ygRwKlHM6M+BskOSMdaa0I7b/Z5mgkj6oACkZ3We7ID5LH3jio5cUt8T7clkqpHKg RLr+Axh7Wurz30Sbhjd/GYwym8nTpvKjnuI2NIla294p73JxQfmPz3/0B1QgUhiDKzCh NujEo5/JpwvOY8Vpd8srfkSa+4e5d22gXDJZTQppuliSxbYYhljLIKxjwzsyjqdb338a rZ1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ie7-20020a17090b400700b00267f3363479si6281455pjb.57.2023.08.13.04.15.45; Sun, 13 Aug 2023 04:15:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230062AbjHMKFS (ORCPT + 99 others); Sun, 13 Aug 2023 06:05:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjHMKFQ (ORCPT ); Sun, 13 Aug 2023 06:05:16 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B0121708; Sun, 13 Aug 2023 03:05:14 -0700 (PDT) X-QQ-mid: bizesmtp84t1691921105ts8qluee Received: from linux-lab-host.localdomain ( [116.30.128.116]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 13 Aug 2023 18:05:04 +0800 (CST) X-QQ-SSF: 01200000000000E0X000000A0000000 X-QQ-FEAT: 3M0okmaRx3jeIXmkp223a/1Nmgxc0vUbVpDIZ5vzf8TxSIOwOFdrc5a2HZkuX KW/iH8UUhDLpYSCf1X/tCKX40uyHVW85GaGQkbXIvJi0ZSm2lSycjVHfbtNv4TpK8nIJeP5 5PQ5onpKrYtWTIj4mmTePzjQz0LWrVWo1RPfgL+4iS6qxA28zsB5t+2d2Bx1/GL7XA7Yn9E H6K3ItnTBuIhg17qSOSSW194N6qsWHFBD03KIPFrxAzA6x8AbuLtJwIf4whfuAFTbR6XbnP 5iL77n/3HG6k1btLCg8pa9uar3vr/A4SuTqpSFcT1OA+DIs0khrkOTqUzkuypK/GgqRZtYV SfQjpF5sPHcz4QCloM= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 1082990782784997304 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: Re: [PATCH v2 0/7] selftests/nolibc: customize CROSS_COMPILE for all supported architectures Date: Sun, 13 Aug 2023 18:05:03 +0800 Message-Id: <20230813100503.8613-1-falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230813093734.GJ8237@1wt.eu> References: <20230813093734.GJ8237@1wt.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Willy > Hi Zhangjin, > > On Sat, Aug 12, 2023 at 04:27:01AM +0800, Zhangjin Wu wrote: > > Hi, Willy > > > > Here is v2 of the customized CROSS_COMPILE support, this helps a lot > > during the testing of the other cross-arch nolibc changes: > > > > $ ARCHS="i386 x86_64 arm64 arm mips ppc ppc64 ppc64le riscv s390" > > $ for arch in ${ARCHS[@]}; do printf "%9s: " $arch; make run-user XARCH=$arch | grep status; done > > > > Based on your suggestion, we did this changes: > > > > - The qemu notes patch [1] is removed, welcome your doc file ;-) > > - Arnd's crosstools are customized by default > > - Import cc-cross-prefix to support local cross toolchains too > > - Use mips64 toolchains for mips like x86_64 toolchains for i386, allow > > download less toolchains > > - Use HOSTCC for libc-test compiling > (...) > > I think it's basically OK (just this mips64 thing). I've picked patch 3 > already since it's a fix. Once we agree on what to do there, I can queue > it if that helps (I can modify mips64- to mips- in the patch if that's > OK for you, no need to resend for this, just let me know). > It is ok for me, thanks ;-) I thought somebody may add mips64 support soon, but we do only have mips currently, it is fair to not use mips64 toolchain. > I think that later I'll further extend XARCH with new variants to > support ARMv5 and Thumb2, because we have different code for this > and I continue to manually change the CFLAGS to test both. > Ok, what about further add x86_64 as the default variant for x86 (like ppc for powerpc)? and then it is able to only resereve the variables for x86_64. I have prepared a patch for this goal in our new tinyconfig patchset, it will further avoid adding the same nolibc-test-x86.config and nolibc-test-x86_64.config. Best regards, Zhangjin > Thanks, > Willy