Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp887058rbd; Fri, 23 Feb 2024 06:43:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUIDUDdqeJ7UDRLj3kbt/PMbMKEeiRPouxOqju7MpJcZ4B3acVm2g2wrsYMutRGG36XWc6bAh3KjJNiRv0mxmNtPYPvJ3d5Sm6rZHpWoA== X-Google-Smtp-Source: AGHT+IEiIv9n92YdGh5AgYIQlXOhj1giFjb3u1iE/bE9TsliothtDmX08M3R3FRiS5WMfqbuMP75 X-Received: by 2002:a17:906:29d1:b0:a3f:f8a7:e1f7 with SMTP id y17-20020a17090629d100b00a3ff8a7e1f7mr1257827eje.5.1708699391431; Fri, 23 Feb 2024 06:43:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708699391; cv=pass; d=google.com; s=arc-20160816; b=vxhZ6HcHeBR9aDXlxi07fKhr8jJ2NocxsIss5HRROOv+TnFacBVbKHhklQ+3IBcO+O vcTQDK8UAow7GxIEOp+v2OF/mrSa2XgNUjn9c6DVDX97s6BuI5n+SZVE2V/caXldirmq EwEYu71wI69qdZj5we8pQ65qTAJfgqB8AqdIuq96NTDlMDl5ucAArE8cyoIHnob2IUsP WG66dVFpHKRJwKDRgS/jd91DAfNN8EqH5XMe1zeslZEpgutt5tyd4pgVcFqWc3fP7fUk f6umEEpJVHJnujsHvN3Fu3L1mAc3i9a+0F4ueDYW7PgeKOoWm+j0/ZtXWSvYVm4Qggqw mamw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=KymCeXAdOwhnbLLu7sHJyesb6UapRJI/5wmiDLXWjq8=; fh=QvK9AHuC0GEQkXG4eP0A3r6ZfF5dYjmNUhlk55/u0A4=; b=OVGLsphJhwNX1Ls/cQjEZ1LV5r/EFC0hrH07qUsuvMvQ98HH2hJQP4rj/OXibKEDW1 xZTVG5w/+/Q5/Ikpu3ke1K+l9fwZqjezBjbwI4VlZpEcOF+SQ6S7POvXXLotuWvL28zz M/J0F+16sE4w1NHxILY+AssZzzGgkgwCwWKEQK7Tz74t6s+W8Y43odtY1F/YjSjr1W25 BheORmLZKlmw3mMAiFaTIBe/w9wgGcQjyy7oTMspOF0PJKvKDfHe8x+TBtBzbMlJhz4f /L5pQT1PozrobpYwtj3VQk3IcysvuUNP417JnWzPw028pMmO786kMQIo7qfHj6zUL8n3 C0uA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CqhINM5k; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-78509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78509-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qc13-20020a170906d8ad00b00a3f02c29a14si3253519ejb.948.2024.02.23.06.43.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 06:43:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CqhINM5k; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-78509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78509-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 33D761F21E91 for ; Fri, 23 Feb 2024 14:43:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5505C80030; Fri, 23 Feb 2024 14:40:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CqhINM5k" Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE5E45DF00; Fri, 23 Feb 2024 14:40:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708699202; cv=none; b=V1wUf5MBVGbo+G1l6bN4ov6V9xDgMiS6wdS/HJbrc5IF5xnwYNs8jGLipv2uudybUOrU2sBqm4d4kn93fSR4qC/ZZSE/m7KZ11opO66BhInFfkape4AcmODrH/mqzhHekJWTFiWny7JPsQK2vhhvVSNGkrzhOQY+Byso+Ozjjfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708699202; c=relaxed/simple; bh=F8ArNbtydFiL0D6k2+Q831xONNh/JINNubofnCWr6EU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=j59otzoiD3MoXlyaAT9Z4BqJHQoSuhlh4i+wO5VrClLIfDy8gDHexr+CSEta71KEQVpAY4Vhyd+HNfePaZC27SJwJYJ6tikK+GMlJVGfkHwlF6EXFiy8GpGazoSndBh6wd4CO7qRpWrnjA0Z8qg5WR7p/dRV+6eoUkGtIifizWA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CqhINM5k; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6e4ca46ab04so251045b3a.3; Fri, 23 Feb 2024 06:40:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708699200; x=1709304000; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KymCeXAdOwhnbLLu7sHJyesb6UapRJI/5wmiDLXWjq8=; b=CqhINM5kO2385xqPlWcnx5GAVjd9DTVvfeFA+oy1PHmG8Gan5yQJnNLdpK1CONCgtO P2ln1LjAFGEOmm6TFAH1aWzo+ssjRcQwfCiZRN8u+8fKFYGjJwkKSctlulptxqdalwG5 1xQ54aLX4s187D7DlkHjBvdeBwTwP/z/EWOoLtc3pzrznK5RTEERz/FsrrQ+qKjQpsTS DYesOz9Xx/fH2zR+493mQOHigNQHUSCqwsFWrwFInE1/wG1k4sQJPQ3JTfPZ1akMAEi4 osQ/PCFDcmNYwIgW0Wv0HPYZaGzcU2et62TpBum7DT5ff/j2N97fLWfKQYms1lzX3lHH d2bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708699200; x=1709304000; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KymCeXAdOwhnbLLu7sHJyesb6UapRJI/5wmiDLXWjq8=; b=CqKUt7jTVW8rbhuf+rOO/UatjWjDfYFNDYI0iEm9vWOXbE2kdQHIJpe9XPMfOobl/a nhhRI4rihIkvH4XZ2OBEEHM/fREptlTbiafzFJnT6S5fZrZy8K0D/OFJ/bOuzo/5GZfB 1UOCggXTccsq15f9jjXYI9VkB29nQR4w4XXBbQe1qNMjrsqgGpOZz3vlbhoBjCliL3EN NlMtlSBM+AG2Xv+ot2g51dVhy46gnlDS3GotUZ80P89BinmZk9s+71ghch98hqFMbPif gFQiKGM9xQoOT6z8nk6s4EQ6QK5WzARPRx6xN7QBk6P2ZnIPvX2YeELDhBHoRzNwmM7h KRtA== X-Forwarded-Encrypted: i=1; AJvYcCVPlC2mzZLyMPB2FNaDnKAgjKpETp52FU35JlwqjR4VXb5vAbDHzulUvsiYUfMUx6HgGqKxhPcZTrIP/q+fAjBNb+o8Ic3jQapYtnP2xV0z05o2YKStq36McjGaN51BRCl6ZD2XKBQocagoDCuqihHmfpMk42BwXtVo50jw7kgT0T9hLb53CTw= X-Gm-Message-State: AOJu0Yy38Va8C+steOMDc0zR34jK/5h1Elh3kt2H31BbJGed9P40XBRB mT42pOZrqyOCI0PlIrXCp7hyamwIFbAMZ4tHQoFTVgAgz7Of+orSA9DiOElg8tub0aQ+QfY2A/l 8Iy0gjDC68AvlLV4sj8rsKfbXWpM= X-Received: by 2002:a05:6a21:3943:b0:1a0:5841:6756 with SMTP id ac3-20020a056a21394300b001a058416756mr81570pzc.4.1708699200297; Fri, 23 Feb 2024 06:40:00 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240223-leverage-walmart-5424542cd8bd@spud> <20240223-employee-pessimism-03ba0b58db6b@spud> In-Reply-To: <20240223-employee-pessimism-03ba0b58db6b@spud> From: Miguel Ojeda Date: Fri, 23 Feb 2024 15:39:47 +0100 Message-ID: Subject: Re: [PATCH v2 2/3] scripts: generate_rust_target: enable building on RISC-V To: Conor Dooley Cc: linux-riscv@lists.infradead.org, Conor Dooley , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Nathan Chancellor , Nick Desaulniers , Tom Rix , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 23, 2024 at 2:38=E2=80=AFPM Conor Dooley wro= te: > > Add the required bits from rust-for-linux to enable generating a RISC-V > target for rust. The script, written by Miguel, was originally a > config file contributed by Gary. Thanks for this Connor! arm64 is sending these for 6.9: https://git.kernel.org/arm64/c/f82811e22b48 https://git.kernel.org/arm64/c/724a75ac9542 So it would be nice to see if it may be already possible to enable it via a builtin target + flags instead of the custom target, e.g. arm64 does: KBUILD_RUSTFLAGS +=3D --target=3Daarch64-unknown-none -Ctarget-feature= =3D"-neon" and so on. If it does not work, it would be good to know what would be needed for RISC-V and put it into the unstable features / wanted features list for Rust. Either way, it is not a blocker (although you will need a rebase after arm64 lands to use the `target.json` in the right places). Cheers, Miguel