Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6598306rdb; Fri, 15 Dec 2023 03:19:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVTNnQ6sr4KnthTDVlruUERrE64BR/6chhiZCvx1qWPiGbyd4mWzf2oBQRSWerz3uW9CSy X-Received: by 2002:a05:6a20:1609:b0:18f:97c:8a1e with SMTP id l9-20020a056a20160900b0018f097c8a1emr14430433pzj.73.1702639164747; Fri, 15 Dec 2023 03:19:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702639164; cv=none; d=google.com; s=arc-20160816; b=DvBhkSV2dsR3mnDE43/s6WfIhyjt1ij1Ihun4LYlYt4BJbYGuY9K2NtJmGXs2hpTmp Ci5Vmcy0YHCQc3y5NRrO1S57vaxyWaXgXuabT1RK7MeeJrn6508PCAU6ib/526j1eZbh SMJujIhz894rWTiSrwFHu3perw/VtRAZd5cN9DkfD1nJITDakYhjSX+eBl5Rt+mrN722 nEaTq6FpI29H091RHEDZkPxBdrixC3n1rWt7vXy86E9dcrTVsKzf8tatdUx+FGw0lKuU 7FVgSWIo4hotOJpFaHOUJpfBcgnzvMZ9cYcL9yf749f3U/lwUKcPeCCs3SOKEr49XpJK F/5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=1tF27Ct5v6tce6o6JnCer2vKNDZ4X+jcuur9cRoSxGk=; fh=EsbFV3sKIxwgZASaztXB2Nx1PblN410lZFbJciCsct4=; b=Zv98UspKQ8C3jMrA6k1TWAHyjj9yewJMqmrnnNJxvji5boeXcRy8NRttD4ceVS6CrA ef11KodRFm2ziMBvFYklVtSjovb9sbz38WzzjfW1bLdnv75t1tanbYDmP2GT5QTOiXm5 GlAI0pbSds5q/yj7hvBcRAS9c0aj9zTz6IOfTNvrwVPccJdhBAiAbuDK1an1RyiTTPkH gkpBlGVEJCA54tAyQ19oUQBgnabmpSJ+bJoOvtF8qGZtzu269ud7nDEp8n5csxKtIGrZ 5hNQ3BDOu/7ne3BJu3wjLQ72wzR9yYv3uTma7hXlMWf4CWvP0KrWP22+gB0kEWMX7Np2 v+Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Av/9e3VM"; spf=pass (google.com: domain of linux-kernel+bounces-820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d17-20020a17090ad3d100b00286f1a85b64si14104521pjw.77.2023.12.15.03.19.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 03:19:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Av/9e3VM"; spf=pass (google.com: domain of linux-kernel+bounces-820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-820-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 11C27B231AB for ; Fri, 15 Dec 2023 11:18:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DB8430346; Fri, 15 Dec 2023 11:16:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Av/9e3VM" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 6557724B4A; Fri, 15 Dec 2023 11:16:05 +0000 (UTC) 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-wm1-f54.google.com with SMTP id 5b1f17b1804b1-40b5155e154so6127385e9.3; Fri, 15 Dec 2023 03:16:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702638963; x=1703243763; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1tF27Ct5v6tce6o6JnCer2vKNDZ4X+jcuur9cRoSxGk=; b=Av/9e3VM0yMiHGt/AjYQqLHRpZB7QkiyNcLx2/KyHbwojXjadRd64CVCJK2guyPkTg 7vkoiNrGA7SrADE0wUa8/SlJD4SfevN3X2CX0o1LKTX2/KJPqVKkw2aLMKjZzToYZ7yg O9aquq+u+4ggcqHiVhbmTnoRMWNiZTlaEfuWWHHjz83WQ8D2flFzslHuHo3Jn8ZPTH1T 09VoEoCAbI74a6Mw/JFXV8FCT+kkZz636RqGyTkSjKKlrZAT5rDBDJ/lI56/+PjH/8HC mxXMYX2ue4Uz5Nm4Z+v1A72z9BO5SjOUmFLGQJw9yFmgdB3XXRLfFLCfYXMQxy08082e dBsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702638963; x=1703243763; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1tF27Ct5v6tce6o6JnCer2vKNDZ4X+jcuur9cRoSxGk=; b=L1/VilHS+d5YIGaFniUSmZIr0fzX2rxIQ6iWF9fAD9e5S2J95dXmyBacAFuKFsuBTX J4ViWJq+Np6EHFC9BdZtLo07aUks3tnvSyWW4SGDUBn8qZ1j1ZPKU+VcOibPXOhlaXqs KBJA0dfYBQPm6eIA86fuh/NOShPFwz9alyDncPrpPxB9YClFOk//CY20AIkAcgKNIJ7D K5iJHInx/l+Ov8VfMJNywwexI8wKp7Jx9PGL3d2nUxv00bMd1ft4ek0NEIoimIT9KuZ/ 8wQy/eUR7IGlFsfDNQkO7/Vci16ityEpIsMYAKkegWBlR2gABqWfE6au+Zr4jbqg3AAD kHuw== X-Gm-Message-State: AOJu0Yy5rH6+2P7z8cXG6dpCnREjt6ZQGW4QVQhdhg+sZmAeytbQa5oN wMy+5uGp9nLgRjA04UssOw== X-Received: by 2002:a7b:c4d0:0:b0:40c:3272:1fea with SMTP id g16-20020a7bc4d0000000b0040c32721feamr5519222wmk.87.1702638963391; Fri, 15 Dec 2023 03:16:03 -0800 (PST) Received: from [192.168.1.148] (224.69.114.89.rev.vodafone.pt. [89.114.69.224]) by smtp.googlemail.com with ESMTPSA id c17-20020a05600c0a5100b0040b4fca8620sm31500952wmq.37.2023.12.15.03.16.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 03:16:03 -0800 (PST) Message-ID: Date: Fri, 15 Dec 2023 11:16:01 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] kbuild: rust: add `rustupoverride` target Content-Language: en-GB To: Miguel Ojeda , Masahiro Yamada , Wedson Almeida Filho , Alex Gaynor Cc: Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , linux-kbuild@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev References: <20231214222253.116734-1-ojeda@kernel.org> From: Tiago Lam In-Reply-To: <20231214222253.116734-1-ojeda@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 14/12/2023 22:22, Miguel Ojeda wrote: > When setting up the Rust support via `rustup`, one may use an override > in order to select the right version of the Rust toolchain. > > The current instructions at Documentation/rust/quick-start.rst assume > one is using an in-tree kernel build (i.e. no `O=`) [1]. We would like > to provide also the way to do so for `O=` builds, but ideally in a way > that keeps the one-liner copy-pastable and without duplication [2]. > > Thus provide a new Make target, `rustupoverride`, that sets it up for > the user given their build options/variables. > > Link: https://lore.kernel.org/rust-for-linux/20231207084846.faset66xzuoyvdlg@vireshk-i7/ [1] > Link: https://lore.kernel.org/rust-for-linux/CANiq72=mvca8PXoxwzSao+QFbAHDCecSKCDtV+ffd+YgZNFaww@mail.gmail.com/ [2] > Signed-off-by: Miguel Ojeda Reviewed-by: Tiago Lam