From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28BC4C001E0 for ; Sun, 13 Aug 2023 09:37:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230456AbjHMJhk (ORCPT ); Sun, 13 Aug 2023 05:37:40 -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) 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