Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1947703rdg; Sun, 13 Aug 2023 02:59:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOr0jV4aR/AaOIVsJ/8XgaNUx1mF9VW1F9wLp49As9/wppF6zLFhTCB2Llw++q4BDotIPl X-Received: by 2002:a17:902:7d86:b0:1bc:98dd:e857 with SMTP id a6-20020a1709027d8600b001bc98dde857mr7719902plm.38.1691920784100; Sun, 13 Aug 2023 02:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691920784; cv=none; d=google.com; s=arc-20160816; b=jIy9ay1+DIeDWF0Nq01cPPt3BQuAak82G/QbMEWY8xgP4p6mJCj9RSJlxSroEbEHqi 8eyGfSkK4/VHw6uT32qMGYXWRYw6k1z7TH5pWXH/L1mASVkF5TIdeoLm3dgTmPaxm4V2 C3wBntL9IH47B1GrqzQvkbhlXxJN0xL6FEvxJ9q3kmvjqdlNmRT+tRZZ5n9PVj1v6cY+ cdhCb7c0ZwE2ShpeP6dPBEHkIAkTOpoPVF50LyNeZzePjzRxeh2g9iQFVB50zP4BINRf LSXHWbdXlLJ6QEtrsRONHdIDbnRX/DpuJBi4Wt0C4w4CD9O9V5wwkYwjiBMGhF0d0Tqj nt+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mLMt78acfOIuScxyItGEE+EGpujLnK5lQBbgCz3Qzb4=; fh=qdjc2CdRM1znN/0ctZ1+pRmMu16xDIDDQOW43BlOBK8=; b=arExvigYO0s3ABxmoK4qNL+fJmvdXcnxiE6Y3NZf7OZfFSvTjokzN/KTppUD9vS3u5 tXhH5pfXuq56f1QbbiY2Od2dU5n3tTmIyjzPCFRQFQsCo2Z+16C+r9ZpSyfUq4H7tSXo ee4c4utkcn8n7rbnjSTEEd43/j3Q9Z8CP1zj4OygvO42OU/hxddqlQx45pu+J+N6HiRp dzKbyuFNqH1bXAm7/HZ+SRzeTqGJ5P/W2vzNGnvsDrREjKqn+Lb+Dl2zamJ6a5rQyMKy tV2Dk+0na1ZA8004jf0c1bmJ1U2vIi9FhHWzNIoCELeC9qEvtEZJhTbAtX5Io0Vd433P 5Prw== 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 u9-20020a170902e5c900b001bddac67f2asi708138plf.544.2023.08.13.02.59.32; Sun, 13 Aug 2023 02:59:44 -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 S230437AbjHMJhj (ORCPT + 99 others); Sun, 13 Aug 2023 05:37:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjHMJhi (ORCPT ); Sun, 13 Aug 2023 05:37:38 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 890BA10FD; Sun, 13 Aug 2023 02:37:40 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 37D9bYSP008867; Sun, 13 Aug 2023 11:37:34 +0200 Date: Sun, 13 Aug 2023 11:37:34 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: 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 Message-ID: <20230813093734.GJ8237@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 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). 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. Thanks, Willy