Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1228741rdg; Fri, 11 Aug 2023 14:18:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtMsCYC0hZgGYNaxMz0Op8DiW329neow8Sk3+3kvdtYvSA1NNjr6uMvc4/DXG+DQlvo3iD X-Received: by 2002:a17:902:6b4b:b0:1bc:532f:1bf8 with SMTP id g11-20020a1709026b4b00b001bc532f1bf8mr3160001plt.45.1691788687377; Fri, 11 Aug 2023 14:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691788687; cv=none; d=google.com; s=arc-20160816; b=f99EJMr7qzbGOhcWVFUL/VqtFq26Zq6tU8BejFBi3fj1swQZ5Xz185SSp8w5bBu2bv mFPHSS35mPOlmvvI1Rel7so6P9NoFLz+ukNsDoUmkfIc442xLF5M8Rh0rl685iGi+mv0 lawJTg3a+qNnddcQ1Nb2esTfpyxfEXsuv0JewxN/xPegGNXD6zRv7J+xTsWqy5RMned2 90dVHoGhXzoFU2Eq2/jBvFzMDD3cvtGCH19q0jOaPSIlJQ9wQiK7fu7aztv5Hd6h8ew9 /CN8TOi2GmSLBX/wfkLzzEYRjF7IYjIkyjmgaJwcIIcTLBlbOa2rRapYxTb87aZJUmth RGGA== 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=02Y/rbskvNlMG/C78q9DtEsr1xLBc3+i125Gs6rRGyw=; fh=TU6hQn1B5Y8k90pL1QmmYKVn+55mITxuhuhy8Zthc4c=; b=uS2TBDJ5u0jAHr5vvaL9qyhMFZ9zTeu+UNAd6g2nhXxWSo/+VvlJokXrruwUmP7EZp LYOA3v7iehgBci29DlJJfRw9TRJ+ytTbzXCJZXpsfvjqysMhxr7Rmvpp3mg0pBPh3tBV yJ/gDZZstaTpT+Lp6uguAE0/5eESJAEMSwqbCosNfR2IEly84iW7Wk05Kkx3LkEWNguz uzQd0pvEKFXoXbuk9cao+B0wZ/lLcrych21CY4qV5SD3A/Y/VGkKlmSKRnuAMNyyS5+c 2slFXnY2hGBDR3Us9tYWIpIvASFFq+j9ph/RqQfJWyNq9hnRAL9TThpcoxiyWga3O9io rz7w== 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 b4-20020a170902d50400b001bbf293f45esi4014844plg.625.2023.08.11.14.17.47; Fri, 11 Aug 2023 14:18:07 -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 S234845AbjHKU1O (ORCPT + 99 others); Fri, 11 Aug 2023 16:27:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjHKU1N (ORCPT ); Fri, 11 Aug 2023 16:27:13 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75D56D3; Fri, 11 Aug 2023 13:27:10 -0700 (PDT) X-QQ-mid: bizesmtp82t1691785623tn8i0b23 Received: from linux-lab-host.localdomain ( [116.30.128.116]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 12 Aug 2023 04:27:02 +0800 (CST) X-QQ-SSF: 01200000000000E0X000000A0000000 X-QQ-FEAT: UMQM+3VOEYtGKY/+1RDGuawm8rkjGCQuCQAGJ2FUNUZ6aMw2+CvbuX2q1pE7b U7AvHo+/7jkvDO9464KN7cXxLY9djefK3Wm1D/aHAZdWeFyWFAv3Jn9tQflcFBTPV4WXWZb pyk8zg8lzDUuf/+U18j1RAgFluZGW6YgGxLKLIF7QSCYAVsvbaGqb72nCfseSem0fEip0xd pu61mSJHtbMQ1CkokRVgyBvKOtkpv8BTWspjL4OGeH+pAjaw2Z9f3cCqTU35s4e5JdHSOwF Ch7fODDhYFhonkpizP2dWZ9ZHM6frTZOlR5m5RJQK/XTJMFSQdc5TdoyZaY1K0oRCAByjgc 5tXQld38MLO4SWyGRN65EzM4sLoC4kuBdTp4Lep X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13364104683118344947 From: Zhangjin Wu To: falcon@tinylab.org, w@1wt.eu Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, tanyuan@tinylab.org, thomas@t-8ch.de Subject: [PATCH v2 0/7] selftests/nolibc: customize CROSS_COMPILE for all supported architectures Date: Sat, 12 Aug 2023 04:27:01 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 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_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 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 Changes from v1 --> v2: * selftests/nolibc: allow use x86_64 toolchain for i386 No change. * selftests/nolibc: allow use mips64 toolchain for mips Allow download less toolchains, save time save storage space * selftests/nolibc: libc-test: use HOSTCC instead of CC libc-test is mainly for local test, use HOSTCC * selftests/nolibc: allow customize CROSS_COMPILE by architecture Moved the ../../../scripts/Makefile.include after our customized CROSS_COMPILE, to let it prefix CC with $(CROSS_COMPILE) for us. * selftests/nolibc: customize CROSS_COMPILE for all architectures Use Arnd's crosstools as the default ones * selftests/nolibc: import cc-cross-prefix macro selftests/nolibc: allow use cross toolchains from software repository Import cc-cross-prefix to allow customize a list of the cross compilers, the ones from local repositories are appended in. If already installed ones from local repos, why not use them, let's do it. Willy, since this series is really important to test the coming patchsets, I send it here before the others to simplify the testing, but we can delay its review, it is not urgent. And here [2] is the simple script I wrote to download, decompress and configure the PATH variable for Anrd's crosstools, hope it helps. Best regards, Zhangjin Wu --- [1]: https://lore.kernel.org/lkml/6de680acbc2d87e13a680d4453ef022568bf489b.1691263493.git.falcon@tinylab.org/ [2]: https://gitee.com/tinylab/linux-lab/blob/next/tools/nolibc/crosstool.sh v1: https://lore.kernel.org/lkml/cover.1691263493.git.falcon@tinylab.org/ Zhangjin Wu (7): selftests/nolibc: allow use x86_64 toolchain for i386 selftests/nolibc: allow use mips64 toolchain for mips selftests/nolibc: libc-test: use HOSTCC instead of CC selftests/nolibc: allow customize CROSS_COMPILE by architecture selftests/nolibc: customize CROSS_COMPILE for all architectures selftests/nolibc: import cc-cross-prefix macro selftests/nolibc: allow use cross toolchains from software repository tools/testing/selftests/nolibc/Makefile | 38 +++++++++++++++++++++---- 1 file changed, 33 insertions(+), 5 deletions(-) -- 2.25.1