Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2240812rwb; Sat, 29 Jul 2023 02:58:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlE7EW4D3GosezyWXQXyBw31tXfa1sWavevqYDj6UoMGgZ5jeVenOK48BOW5DudGgFEh4bhh X-Received: by 2002:a05:6a20:6a0f:b0:130:45cc:9ae7 with SMTP id p15-20020a056a206a0f00b0013045cc9ae7mr5576700pzk.38.1690624682650; Sat, 29 Jul 2023 02:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690624682; cv=none; d=google.com; s=arc-20160816; b=rB5c7Z4Fkk8e2HhKLrppwEYgiyUResscoVbU/NcYpV7nwGws6zEI46oxMdaaRevDL3 pIY3QaHQpDyBdZ3ayojMyRzAKbO2bstrpDr+d52fs12yTrK+AJE//YWaJdhRnvvu24U5 JonGv80UVNCftDYkeyQ+h8/pl9q6VW7cYtSqFTTxEROiXddcNDZps8n2NkpaSC7xq63J TyqnHUhreNcNL2XYRH8qUb10VtpiLXqFMYE9y2hLvtu3N3IUFtN9jkvL+WZI0WrZDmK2 5Nml7p8QCuN0CTKgYHK6tXqS9OW7AJflGc0gsD/FRiCPqvpCgCuhA/BLgK2CmbPyzrSD bBbg== 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=JtGbwPLBiaW4rMScmP9RsDKQ2TaI4Uu1r8HxSCP72wY=; fh=sXngqCw1oXONrSSImRxZmGyzcK67QhJYp1RgY40tBsg=; b=GSDA8KOHdT6MdCzXrOyqAq84DyTAv1lXuQQxrAuKslWpkvW6a9kv7fm8g0Js/Bp3S/ r6SYsKS2N2nzNzvIDXVLKRVQ63rkTqwiPhmwsVIqH4RHDWSUpMSUF/42kXacJMA4YQmw ItHpGilFmI+8NSbbIkH2Ech7ELyfmQMBMVTau9bM3AzYCfFVX2g/z8Eo1dcBI9VHmemG giWUajOBqe5uM1JkvrY520qfJdXlud+DN8D+AGT32aQDEat6fulxu0K71Am0NvIPTySw 4mf4dYUnl74w8zCZgwm4O4O0v6s+sQK0NDvgyvb5DJN9XlNWNzgACaTkR4ntrAce2EU2 CFag== 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 l6-20020a056a00140600b006821425440bsi4446723pfu.279.2023.07.29.02.57.51; Sat, 29 Jul 2023 02:58:02 -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 S231411AbjG2IrT (ORCPT + 99 others); Sat, 29 Jul 2023 04:47:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjG2IrP (ORCPT ); Sat, 29 Jul 2023 04:47:15 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F0EE44B0; Sat, 29 Jul 2023 01:47:11 -0700 (PDT) X-QQ-mid: bizesmtp89t1690620419toqqujxk Received: from linux-lab-host.localdomain ( [61.141.77.223]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 29 Jul 2023 16:46:58 +0800 (CST) X-QQ-SSF: 01200000000000E0X000000A0000000 X-QQ-FEAT: LE7C6P2vL8R+bFTy2nwPvrMMRc/Epw5PWdpL/W4zti+NsWrjvDwO8POY0y7hP cLoj07+RQoDWStbWvXLEzymREWbuZo5E9/e1iSEAg8Tf2LFHJZfqaJR8dIN7cnch3qclzJd Ps1NV1t4btmWIFQRmDdxPYNR/PJK2SLVMwECJ3hcR3zr5+LJd4LaXgL3/I+Vx2JE6QxokRJ C/bqxZw9CL3p55q3dKc9/kuqisSytn0GhXf91j/0jNz3p0AVHutQ4MYzTp5jyMo2rXH5mt0 sOBO03+q5BM7HN8NEWLnyLFu+EdkJYWPhzKvt7jMjnbRV/sCZbWxs3EEiGnfw3XzN+1xnW4 2YTF5AbhDoq7ysC5frC/pQBQtqfd6j0+mYmdj4boqkZjXL0PQxyVT0r8KyMnyCnO9o1S7Fe X-QQ-GoodBg: 0 X-BIZMAIL-ID: 610877963677456600 From: Zhangjin Wu To: w@1wt.eu Cc: arnd@arndb.de, falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: Re: [PATCH v3 06/12] selftests/nolibc: customize CROSS_COMPILE for 32/64-bit powerpc Date: Sat, 29 Jul 2023 16:46:58 +0800 Message-Id: <20230729084658.7710-1-falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230729083530.GN956@1wt.eu> References: <20230729083530.GN956@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, T_SCC_BODY_TEXT_LINE 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 > On Fri, Jul 28, 2023 at 04:28:17AM +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]. > > > > These default CROSS_COMPILE settings allow to test target architectures > > with: > > > > $ cd /path/to/tools/testing/selftests/nolibc/ > > > > $ for arch in ppc ppc64 ppc64le; do \ > > make run-user ARCH=$arch | grep "status: "; \ > > done > > > > If want to use another cross compiler, please simply pass CROSS_COMPILE > > or CC as before. > > > > 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_ppc64=powerpc64-linux- > > $ export CROSS_COMPILE_ppc64le=powerpc64-linux- > > $ for arch in ppc64 ppc64le; do \ > > make run-user ARCH=$arch | grep "status: "; \ > > done > > > > Or specify CC directly with full path: > > > > $ export CC=$PWD/gcc-13.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc > > $ for arch in ppc64 ppc64le; do \ > > make run-user ARCH=$arch | grep "status: "; \ > > done > > > > [1]: https://github.com/open-power/skiboot > > [2]: https://mirrors.edge.kernel.org/pub/tools/crosstool/ > > > > Signed-off-by: Zhangjin Wu > > --- > > tools/testing/selftests/nolibc/Makefile | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile > > index 3f15c7f7ef76..6385915d16c9 100644 > > --- a/tools/testing/selftests/nolibc/Makefile > > +++ b/tools/testing/selftests/nolibc/Makefile > > @@ -46,6 +46,9 @@ IMAGE = $(IMAGE_$(XARCH)) > > IMAGE_NAME = $(notdir $(IMAGE)) > > > > # CROSS_COMPILE: cross toolchain prefix by architecture > > +CROSS_COMPILE_ppc ?= powerpc-linux-gnu- > > +CROSS_COMPILE_ppc64 ?= powerpc64le-linux-gnu- > > +CROSS_COMPILE_ppc64le ?= powerpc64le-linux-gnu- > > CROSS_COMPILE ?= $(CROSS_COMPILE_$(XARCH)) > > It seems to me that this patch and the previous one were rather > for the PPC series as I'm not seeing the relation with the tiny > config here. > Yes, it is also ok for the powerpc series, they mainly aim to the fast build and test goal of 'tinyconfig', and the other default CROSS_COMPILE's will be added together with the left tinyconfig support by architecture. I'm ok if you are happy to merge it into the powerpc series, then, we can focus on the left ones ;-) Thanks, Zhangjin > Willy