From patchwork Sat Aug 5 19:36:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 13199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp621146vqr; Sat, 5 Aug 2023 13:21:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjELpoBxvkdX32tWk5q2uhFDePW5YjxCf1j8jrQUzoHxen47hEtzS6mdZGGhTgIrk2+Dt9 X-Received: by 2002:a17:906:54:b0:99b:44aa:fae0 with SMTP id 20-20020a170906005400b0099b44aafae0mr4397000ejg.21.1691266919447; Sat, 05 Aug 2023 13:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691266919; cv=none; d=google.com; s=arc-20160816; b=d6yBES/RRlq9y1yMerDCsE6u3siq2SHbDobXhjlLvsxbY2wBuP0Qy/FvXsZz2APkE/ 1XbIjHZxmg8O9C/wEYbKiCjoOXH5aInTlxg5JjaqgM3mWaDHU84YWq3mriU3dsUHt1Sy yLj9u0jmR6+4pEr5vUNUMdiwKZchaX8BHyKnS9IDF5SyOlql4kkppFvo5pr0Eus0NQe6 V7AFvN49AlP7GFmFvan6HI9hF4veu3baDbK3wGsu6xrCg9gvTpB1fWyCHHsj2NKrfUum 3sAl0GQXN4cKoQBNU0zTNl3GWsbdYnhMcT1c3v9aR82Mu0DyDjr2+hghgqbdLUKM6tD4 1nag== 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:message-id:date:subject:cc:to:from; bh=x0/a5+7piAGgmFXb3eVqVA8UbUHVR3gzbtA8mKHxgxw=; fh=DrC1ao6zWEVelNCseScP4CYabbtnw3Q97iD7eRX9jLs=; b=0ksV50NF0aZuxrZC5mZDW2Y2z2IsOsmAqDTCHrDBJcrSbZIRg5dwVE4ikFleCK6hi7 hgJ/xcbYI4Z3DchRA2Q+nH4yh9oGo6G7/Biu+gnJQT4axaPyj5+tEXtS8QFfmwTsgVMg yhO6DIz9CB3JJiqqUVLSj2pIpRHS9fq87+yaIlp2NA/fBsrFScTJXaD76oVfUQLYhkPY Jowg8MwRaqbckPEwB+pCmtNzTF5ZQQAl68Y0meLGFkupMrSZbHE1+ZQkTJqVNDajgH7V oUZjVlm22lZJEiQSRRDnxv4xDwcKCAsgeAyS1wMIJn7qnidsg0CDSmRGmq4ARv2bi1fL JCTA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a170906170800b00988939ad0bdsi3549737eje.321.2023.08.05.13.21.35; Sat, 05 Aug 2023 13:21:59 -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 S230152AbjHETgg (ORCPT + 99 others); Sat, 5 Aug 2023 15:36:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjHETge (ORCPT ); Sat, 5 Aug 2023 15:36:34 -0400 X-Greylist: delayed 3404 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 05 Aug 2023 12:36:31 PDT Received: from smtp-usa2.onexmail.com (smtp-usa2.onexmail.com [35.173.142.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA05199 for ; Sat, 5 Aug 2023 12:36:31 -0700 (PDT) X-QQ-mid: bizesmtp68t1691264173thz60w1z Received: from linux-lab-host.localdomain ( [116.30.131.233]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 06 Aug 2023 03:36:12 +0800 (CST) X-QQ-SSF: 01200000000000E0X000B00A0000000 X-QQ-FEAT: Xz3VOcA7Mr1ZcCeErdAI9dd9j6rIAoGrSUiAzxKeDLeDGqPahyEFAb8R1Ipyw TV/Ul+LwxE1LVpxJdpE/iOaPuIEVn67WwY5z3VxuA22rN3fW6ovrLN8XhZ7AJmRMMBjSRWP u+JQq/qmdnCPpfKPjISQ0o8xa90EgsPDi7s+DSIe8WUMYrIVkDgL8gSHWJIFlyd2UfZS4FM 45YPbZVhz57WKCE5thuZSI0XK2pMOZKNMxk8c0pkoxapygSKMPGedD2TcgDhym+GOsu1v2w l8YUVt1DENLoAahW52Xt1IADFg1wqSWhT6QPBED16DB2/jHGJxdtcaK1JIN/HkaCOQDXHL7 9EgpD/GbBvxtX3v07yzZcPz9iMZ7SlabmBNPzVGHlviLy8JCSuqg3FRfXEII2b14e5RLTJ5 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 8914460153520872544 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 0/4] selftests/nolibc: customize CROSS_COMPILE for all supported architectures Date: Sun, 6 Aug 2023 03:36:11 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773421901824468574 X-GMAIL-MSGID: 1773421901824468574 Hi, Willy Based on the CROSS_COMPILE customize support [1] from the last ppc patchset, to further make run-user/run targets happy for all of the nolibc supported architectures, let's customize CROSS_COMPILE for all of them. Beside loongarch, all of the other architectures have local toolchains. let's use the one from [2] for loongarch, it has a different prefix. And also, as suggested by you in our previous discuss, let's add some notes for the toolchains and firmwares instead of automatically download them. Now, the test iteration becomes very simple and pretty: $ 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 i386: 165 test(s): 157 passed, 8 skipped, 0 failed => status: warning x86_64: 165 test(s): 157 passed, 8 skipped, 0 failed => status: warning arm64: 165 test(s): 157 passed, 8 skipped, 0 failed => status: warning arm: 165 test(s): 156 passed, 9 skipped, 0 failed => status: warning mips: 165 test(s): 156 passed, 9 skipped, 0 failed => status: warning ppc: 165 test(s): 157 passed, 8 skipped, 0 failed => status: warning ppc64: 165 test(s): 157 passed, 8 skipped, 0 failed => status: warning ppc64le: 165 test(s): 157 passed, 8 skipped, 0 failed => status: warning riscv: 165 test(s): 156 passed, 9 skipped, 0 failed => status: warning s390: 165 test(s): 156 passed, 9 skipped, 0 failed => status: warning (I have no qemu-user currently for loongarch, so, no test result above) Best regards, Zhangjin --- [1] https://lore.kernel.org/lkml/cover.1691259983.git.falcon@tinylab.org/ [2] https://mirrors.edge.kernel.org/pub/tools/crosstool/ Zhangjin Wu (4): selftests/nolibc: allow use x86_64 toolchain for i386 selftests/nolibc: customize CROSS_COMPILE for many architectures selftests/nolibc: customize CROSS_COMPILE for loongarch selftests/nolibc: add some notes about qemu tools tools/testing/selftests/nolibc/Makefile | 32 ++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-)