Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6486709rdb; Thu, 14 Dec 2023 22:48:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3FhA/PT9/fpqLRoVsqO6mu5ZqQN1R35BNHyUipnFdz4/GB7NhdRz5Zwb7BC1CtrHO2de8 X-Received: by 2002:a05:6e02:17c8:b0:35f:84d6:dece with SMTP id z8-20020a056e0217c800b0035f84d6decemr2545705ilu.65.1702622921426; Thu, 14 Dec 2023 22:48:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702622921; cv=none; d=google.com; s=arc-20160816; b=OFzmyx55bFIQBtBs5URJfMHJE3ppAXmEKwCDLA7/IM2iP2FkiXYlLYG8HljNOVDP9/ ARwo8Thl3qDufxpf7Hkmq7Iw2qqWBbCPxwv9KCj+D3CI7Uzj8OJxUHdxdsz3FynLAZBj WAlxKm9ubQgr/glXxK3ZOdWv2K9AMStDRMNyJ7Rl99VhNL7jAmvSxdlVo0sAVb78JZOP Yc3XgyVz+UcFh3EEsc8MAkvVJfjO3+sgZdMtdIb2gpjoOhTQWLmebKLID28mvuRybrSb ZN1ayY2W9RyLohhb/FHt0J0ls8J7OK+QFJmNv0J+7DIndOgIzcA1BoWbm9m2F4Z05pLv Y3mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PmEAkrgNM0PL5WdA7i6ZA6lF8xdUr9x9GVAMkOS4s1w=; fh=86YZUBTo6lEtADyWuHAaxdBXJlQkzjYrcaiEcgP9Pj0=; b=U0SMaUQBYQI3/4CaCtC4MVFiWDq+nxuW3cs9tDnZN6IcOMaBz/HFS2p+H5g1JQKMgm 27w7J9IUuCG8+Ct4aa4LOY7zslB+WMDkSldxuorGi0mQpZ1bxg7PPD222SAOsq15VyGZ ev+Jl7ERovTNacPjDjfV78x1/DJt5ZQa1/EXBEY3aRhjHKmbmACug7gqL+r3k6rykoAO 8HwIjdE8wF/L0DXr16Mxmw/yIw0mV9B0PJAF0Abjq5u0sQtsPjCtZUZmRPSIJSDqxNYT r6Ag3Z2eNvkYOcAU0z/L/XNiuoNdVm+3FjBqxGKXhXFuKIRfKqYTdUCq3fssMWN9HLHb eeQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jx5Cc55t; spf=pass (google.com: domain of linux-kernel+bounces-493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s26-20020a63215a000000b005c600ffa335si12136658pgm.217.2023.12.14.22.48.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 22:48:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-493-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=@linaro.org header.s=google header.b=jx5Cc55t; spf=pass (google.com: domain of linux-kernel+bounces-493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 51BDCB21EFC for ; Fri, 15 Dec 2023 06:48:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CBB8D287; Fri, 15 Dec 2023 06:48:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jx5Cc55t" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (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 595F9CA6F for ; Fri, 15 Dec 2023 06:48:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-20335dcec64so279740fac.3 for ; Thu, 14 Dec 2023 22:48:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702622906; x=1703227706; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=PmEAkrgNM0PL5WdA7i6ZA6lF8xdUr9x9GVAMkOS4s1w=; b=jx5Cc55tgey7C0NN36E0sZ/RDXcIMkmRyug9GiPrYLi7Z4UYiMT/DHvy1CVx7ZReDM 8HZY1Xw5nsHBPTcEmkpoMXEqPCjfjJkx/EhMsyUmx1yQKTsg6863//t4lf1W+T+77Rg2 JWI+yO3RXfVD01NN2wIDI5l028tYvt03DTRPxNaasyToxmCJmFVNrp6VaeBi3o7iAfSa oEEl1BN9acYITlb/myjP8UinxkhJINn4oJfVb+4uV5MfbPL49aISWZ7chGrIXg3sh8tE 6LCSela14EHc3/YguvWB/dP0CvvGDcMQ+H8wTlUvtmvFUDiVZ5qTFkGozoG5r8SwN/9G O5Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702622906; x=1703227706; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PmEAkrgNM0PL5WdA7i6ZA6lF8xdUr9x9GVAMkOS4s1w=; b=BDFVk0e3LpAZuS9GrSvP41lnG/QcsjzX4C5Jq7286aUvmx1box2K/3xRJpfbF2NLjJ c/Wqv74+j5tyRVo2LimxM7/3EXO0a4cc8u5CR0RjfaqeoRmL6VyKrLALaqprJawakXJb /TDVlUoJzhofAKPYfle5bdzhAYV6UOCMwM6r4Kj+dLHTM/j9x//6aCpu40xlD38no18A +xSYO3l53isO+AgzRihf/OLp33E4DYZAMdNnoC6+X4a/dCX41HTn7gFdapjWb9hDUJZn 45Xr4S9NruaqqxJ37N2HvFtVjLi61eCouPXGBW3AWbxSUPXarb3bM7f6f6OVmBGVQkP3 AGWQ== X-Gm-Message-State: AOJu0Yxmcl7KU/5booOwvz5ercfGQmHM9JoDLq/Q+8usKt07xvJrA78e dC6ram88VRHJvj57O/ibyeTLIg== X-Received: by 2002:a05:6870:514c:b0:203:62ca:abb4 with SMTP id z12-20020a056870514c00b0020362caabb4mr1162582oak.51.1702622906411; Thu, 14 Dec 2023 22:48:26 -0800 (PST) Received: from localhost ([122.172.82.6]) by smtp.gmail.com with ESMTPSA id y65-20020a636444000000b005b18c53d73csm12449556pgb.16.2023.12.14.22.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 22:48:25 -0800 (PST) Date: Fri, 15 Dec 2023 12:18:23 +0530 From: Viresh Kumar To: Miguel Ojeda Cc: Tiago Lam , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?B?QmrDtnJu?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Jonathan Corbet , Vincent Guittot , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] docs: rust: Clarify that 'rustup override' applies to build directory Message-ID: <20231215064823.ltm55fk4zclsuuwq@vireshk-i7> References: <1c03eb18-a6ac-45c8-8fea-46097bb4e132@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On 14-12-23, 18:22, Miguel Ojeda wrote: > Something like v1 but a bit simpler, e.g. keeping things as they are, > but with just a sentence after the command like "If you are building > the kernel with `O=`, i.e. specifying an output directory, then you > should append `--path `." could work. > > Or we could just provide a `rustupoverride` Make target to do this for > us [1], since we have all the information needed and would be > copy-pasteable by everybody. I can send it as a non-mangled patch and > then Viresh can redo this one on top using it. How about this ? diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rst index f382914f4191..367b06f3edc2 100644 --- a/Documentation/rust/quick-start.rst +++ b/Documentation/rust/quick-start.rst @@ -39,8 +39,17 @@ If ``rustup`` is being used, enter the checked out source code directory rustup override set $(scripts/min-tool-version.sh rustc) This will configure your working directory to use the correct version of -``rustc`` without affecting your default toolchain. If you are not using -``rustup``, fetch a standalone installer from: +``rustc`` without affecting your default toolchain. + +If you are building the kernel with `O=`, i.e. specifying an output +directory, then you should append `--path ` to the above +command. + +Alternatively, you can use the ``rustupoverride`` Make target:: + + make LLVM=1 O= rustupoverride + +If you are not using ``rustup``, fetch a standalone installer from: https://forge.rust-lang.org/infra/other-installation-methods.html#standalone -- viresh