From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KXF2AQ59" Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BAA81733 for ; Fri, 8 Dec 2023 02:18:05 -0800 (PST) Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-58e28e0461bso938938eaf.1 for ; Fri, 08 Dec 2023 02:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702030685; x=1702635485; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0NmoRHTCNAA7+499JkbNaILAA7b/35IKN2Lx1hQIG3s=; b=KXF2AQ59Fi0jagfOvLpUPu0PYkMjscrkMZjs4ncAEagK0RHma78+Vz0G1IZNcbp0qb IfBwGDzsFXSbIfOW1xrvp3RP5yBmtFoMYtWRyn8JpB3JPClVRUA5KIDBhX96qtTzebv5 P+DOTZR0KKR6gr4n/Vfc6OFU8X2V1An4zb3BO4N7TM9VDdcOf0Zv2e73j7mSgY/uIkud ZEkla8lLU3ULVTBsN+KWiYYEqwYEFTPoP0nTUL5nFvQ2p4onv0z8KAP2J8HIrNUKZjTe UZa2XHE4l5OcnWan2gNkvgicvTwyoDbMpMPdFnFwQACl3ACMreQ5qU/3tCsZpTR+5DQw NErw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702030685; x=1702635485; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0NmoRHTCNAA7+499JkbNaILAA7b/35IKN2Lx1hQIG3s=; b=vQdyjUcwyKNQmp44oLiWl3knA9Q/3xfrntDg+9K1UtDBLYyyyrrxfu0O4Xiw59oqG0 SwfUOfhN61JwWA3FQxWsWMggraWw+XMkeRy2ZnZuJegYvoVp95e0K0RK/F7sfHrxvLAo SrNZ738myoX8ZCx0aSRPYOD25bn9IH5xyUreKu8XYQ1gru5uVZ9w3p45ZlJDBKDcqcqJ 8w7HowFlWmqxSf25r0HoNrjzN6BcM5SHWKcB/SNrzdnMPktoaC8J61oivlTpC9xyobas wAKH+sUmZK+2aAdk3vBMjKXsz1lDkMfaSshsfFGtOigUAJ48YPrNLG3++n7qRNlktmnT fmfQ== X-Gm-Message-State: AOJu0YzbBTK0Py3mPuAR6xjhu45a8lRiRQcBzVh3PG6Vua8uNlzlOBKF GF0RgOk/IBpxfpIZNb8fQ7Y2dg== X-Google-Smtp-Source: AGHT+IGUPMOIa7veeC+WP5/Up7/5mLKPL7gPv1ouzH7ay63AtOjYttMQ4IMHhSTQWYYKskYm9a5FFw== X-Received: by 2002:a05:6358:2496:b0:170:17ea:f4e8 with SMTP id m22-20020a056358249600b0017017eaf4e8mr3233758rwc.53.1702030684708; Fri, 08 Dec 2023 02:18:04 -0800 (PST) Received: from localhost ([122.172.82.6]) by smtp.gmail.com with ESMTPSA id k21-20020aa788d5000000b006ce79876f9csm1228840pff.82.2023.12.08.02.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 02:18:04 -0800 (PST) From: Viresh Kumar To: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Jonathan Corbet Cc: Viresh Kumar , Vincent Guittot , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] docs: rust: Clarify that 'rustup override' applies to build directory Date: Fri, 8 Dec 2023 15:48:01 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Level: * Rustup override is required to be set for the build directory and not necessarily the kernel source tree (unless the build directory is its subdir). Clarify the same in quick-start guide. Signed-off-by: Viresh Kumar --- Documentation/rust/quick-start.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rst index f382914f4191..a7a08955fe46 100644 --- a/Documentation/rust/quick-start.rst +++ b/Documentation/rust/quick-start.rst @@ -39,8 +39,13 @@ 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. + +Note that the override applies to the build directory (and its sub-directories). +If the kernel is built with `O=`, the override must be set for +the build directory instead. + +If you are not using ``rustup``, fetch a standalone installer from: https://forge.rust-lang.org/infra/other-installation-methods.html#standalone -- 2.31.1.272.g89b43f80a514