Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1595631rwb; Sat, 5 Aug 2023 20:46:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHD7HX272sNd/N42661O++MmFgdFfeX+DfN8icNYe3XsE8QgQ2adf9OP5vc1EQ5iCr/XLEb X-Received: by 2002:a17:907:a077:b0:993:e752:1a6f with SMTP id ia23-20020a170907a07700b00993e7521a6fmr4641130ejc.6.1691293593192; Sat, 05 Aug 2023 20:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691293593; cv=none; d=google.com; s=arc-20160816; b=ZU6Y2WCrXJ7xBuP8M7fyeTexKNi17kWd1sm/j1SjF0Q7PNCGru+JlhrWrOOkElrZrq pQFzEQaBdulI90/7hEfWxqWwkwQS6J17aVxrX5mN7LfyEm7Ls17lw+4RVr0e7R4UdsW9 BCCpt27E//mPjRJrfYpzO9X54E66Q919ECJjrIZrv/pF2NffaOR1R/R2aGNPIAaZBX/J /S00/V+TUw0Ie//UaqykTlNju6lPFwkpsWsu9j6ELjxXyX3yd7zINsyX4D22ZXu97H5s 4CUfz5UgTcPiq9nDYcfYwh4/77CjOdXpMN2NnG2qWSYRZpXiXvGmkaiGwBW4bHW7We5+ 4LeQ== 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=uXMW92Up1qPc3nHPruEvkSRCfQD7gDbB3jkQrUIOLL8=; fh=/vS2sZUuhma2kdLIF5OIZVjw0sPbMnKegco7d7tPfD4=; b=KllsJ2Ulhcj1Y4A/j8iaf1pNBU/rOUWFmwWwaSZ79u7/CgFiykXS7po++iyYMnO00W ceMjPknaYAetgXU9WlWszTtPyEUHU7Z7UH+IVhhxQRr5oyFGYtfuID4SO98e1sMdZa+Y XCt2XElb1vDjQM0GFeTLfu9AOMqfyNdFGoanq1LYumXTgw0yOureegLK1NPse7kgQhLa DcM2w8AdkZCIkOeD6gAMvkiywYKp8iesnoAc4LEjW+lzJE7Os/B2MdywcYPT8VnMpWME RW0WynvCmksx/FoMCi/mIhTXDUn5DiYyqNRKgVAmjYv9d6T4BiVEpvRfvnQ1zcWSCC/Y jLXA== 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 q11-20020a170906770b00b00986560ae9a7si4035217ejm.307.2023.08.05.20.46.01; Sat, 05 Aug 2023 20:46:33 -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 S229760AbjHFDLr (ORCPT + 99 others); Sat, 5 Aug 2023 23:11:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjHFDLq (ORCPT ); Sat, 5 Aug 2023 23:11:46 -0400 Received: from smtpbg153.qq.com (smtpbg153.qq.com [13.245.218.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D3C21FE3; Sat, 5 Aug 2023 20:11:40 -0700 (PDT) X-QQ-mid: bizesmtp84t1691291487tssduu4n Received: from linux-lab-host.localdomain ( [116.30.130.12]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 06 Aug 2023 11:11:26 +0800 (CST) X-QQ-SSF: 01200000000000E0X000000A0000000 X-QQ-FEAT: CR3LFp2JE4nboq28VJZElwwxerbkOQA/h6OX31e6jdysPA4Z72TbeYkM7Q4aw q9prSqgqwtPVqTpQjlGJ7/0y8cLdXg8ph4OdeOqnykkYP0ZSzivSKdx97Vypho+dxQw5kqq j/4g0lZhpv270TPFgyYLIsY1UgEG5u7/71CXvC8kErMF65yNU7+RZMJAhT9UiRlZzIA64sP WZ+o7irh9vX63y0vsa+DJU0Aeb/YmiMl0HSEz7IqwhxxIV2DDutP5qdJ/R8wqNp6hC+PXrY 7z3q3cW3ZoJSqLpLIbulludgekYZxhlxynkbfRxBtQ5eeVXc9nUk7tCVvPy2gmn9yD+o9gz 2t56BrgriflX1tiHo96K7UwwToy9iqkO36RG9by/iS3Qiwt1z1defyT/EzoP6U8A7F1eWtu X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13213960197169536215 From: Zhangjin Wu To: w@1wt.eu Cc: arnd@arndb.de, falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, tanyuan@tinylab.org, thomas@t-8ch.de Subject: Re: [PATCH v6 8/8] selftests/nolibc: customize CROSS_COMPILE for 32/64-bit powerpc Date: Sun, 6 Aug 2023 11:11:25 +0800 Message-Id: <20230806031125.6800-1-falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230805204845.GA7300@1wt.eu> References: <20230805204845.GA7300@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_H4,RCVD_IN_MSPIKE_WL, 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, Willy > On Sun, Aug 06, 2023 at 02:47:09AM +0800, Zhangjin Wu wrote: > > The little-endian powerpc64le compilers provided by Ubuntu and Fedora > > are able to compile big endian kernel and big endian nolibc-test [1]. > > FWIW I'm wondering why focusing on these ones which have a different > naming from the other ones, when I think that most users rely on the > ones maintained by Arnd there: > > https://mirrors.edge.kernel.org/pub/tools/crosstool/ > Arnd's toolchains may be a more distribution independent ones. > Yours is called powerpc64le while the one above is "powerpc64", it > requires to make an exception for this one, I find this a bit odd. > Yes, one is little endian output by default, another may be big endian output by default. > If someone wants to use their distro's cross toolchain, that's fine, > but I think that it will depend on distros anyway and some may not > even be provided (like loongarch) so I think it would make more sense > to adopt the canonical naming from Arnd's toolchains above. > Agree very much, let's switch to Arnd's toolchains. > It's not critical, but as you showed below, it makes building for ppc > a little bit cumbersome: those "export" lines could be dropped when > using the default names, and that's what we should document as the > recommended way to test: > > > For example, it is able to build 64-bit nolibc-test with the big endian > > powerpc64-linux-gcc crosstool from [2]: > > > > $ wget -c https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.1.0/x86_64-gcc-13.1.0-nolibc-powerpc64-linux.tar.xz > > $ tar xvf x86_64-gcc-13.1.0-nolibc-powerpc64-linux.tar.xz > > $ export PATH=$PWD/gcc-13.1.0-nolibc/powerpc64-linux/bin/:$PATH > > > > $ export CROSS_COMPILE_ppc=powerpc64-linux- > > $ export CROSS_COMPILE_ppc64=powerpc64-linux- > > $ export CROSS_COMPILE_ppc64le=powerpc64-linux- > > $ for arch in ppc ppc64 ppc64le; do \ > > make run-user XARCH=$arch | grep "status: "; \ > > done > > Any opinion on this ? > Ok, let's go this way, if the others are ok for you, could you please drop the last two CROSS_COMPILE patches from this v6 ppc series? Thanks. I will send v2 CROSS_COMPILE series with them, with Arnd's toolchains, the whole CROSS_COMPILE series will be unified and become very simple, although they need to download the toolchains manually one by one, but it is possible to write a common script, but that is another requirement. BR, Zhangjin --- [1]: https://lore.kernel.org/lkml/cover.1691259983.git.falcon@tinylab.org/ [2]: https://lore.kernel.org/lkml/cover.1691263493.git.falcon@tinylab.org/ > Thanks, > Willy