Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2238308rdb; Fri, 8 Dec 2023 02:18:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEdNQrJQRmWnXDa2rh41ELxi9G+sQbCIBlX/ls9HoEQqGJdBx1r1cbgFka+8ArD97VDBKC X-Received: by 2002:a05:6a20:5482:b0:18f:d8b3:d926 with SMTP id i2-20020a056a20548200b0018fd8b3d926mr3800237pzk.91.1702030698688; Fri, 08 Dec 2023 02:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702030698; cv=none; d=google.com; s=arc-20160816; b=tQdJ2O7YoB2FkpQT1tQkBJZ9Sbhro8vm6T5sjEOeddASo/W8TSzG5uXjmbGjp/zhzS lKzDEcUG5xRVKmtGWB51WwsXuKT9c9yF0ooRH8yy25FhC1Rrs+YTJsZOBjTKNwi9FEEC dc05LC11INqNtldzq77GAhse5bTXIQGyOHvzupOUKZ2KJ5sdOeyCj60FGj+IZ336DvIg 7ntRgGLFFScan9r0UG2045X4Y9mhzyPE6NBPS7mUoKEPAw/K9406QMxJxSvITbV4Mhry DFb2wcozxbB4PYagfrOZ8Q2VKXab2EnOWuswwe0ey6Dm8dWQEZrASQbef73XT51Y26dv xN5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0NmoRHTCNAA7+499JkbNaILAA7b/35IKN2Lx1hQIG3s=; fh=AWheenlwQKwAPagYmVafMJBzzjN+Z5vXHGrn/fU/DOg=; b=wyXIm1Dmi3dtE+uoEE4msQ61w6kpEYEEWa5zQa0KRW2c9WXH81y03uDxD8zARTXWW2 LOVrMCHNNn50t6KMtUz2SW2hNMEnvAEys2UXE2bJnFjyCwpej58PMlW9vA3KldQ5+qC2 slsqbXsNHLLP2tixIyY1e8ubQidIU7deXYDzjwGtMY1TRosV8SGtNxPdmsP62juEsSpM cV8X/wfzgQChEw0fF1nTHYyNmPZKVE3dDeVTRq0sQXjihrII51NnRksVjofX1a99Zxls uPc2NPPKeIyCdLF9livEFw3tzPyf5g+LEg2021FGHPR236KjMYdZsRzRupaPDB8LEcLE b9Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KXF2AQ59; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h8-20020a170902704800b001cfa7f91403si1334873plt.183.2023.12.08.02.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 02:18:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KXF2AQ59; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8F3A982A9BB3; Fri, 8 Dec 2023 02:18:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573452AbjLHKSB (ORCPT + 99 others); Fri, 8 Dec 2023 05:18:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230506AbjLHKSA (ORCPT ); Fri, 8 Dec 2023 05:18:00 -0500 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A9231732 for ; Fri, 8 Dec 2023 02:18:05 -0800 (PST) Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-58d956c8c38so937580eaf.2 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=ITwB/qeB7H2xI75NVbO1M8TSg1ASd21tntrJjI/df/YF6gtizmziLbdCryzvgLQDth 29dINqLocdVqxaJl4hmAPoghLBd23d4YgjMF+jULz+iSoG712u/JGMf4GuxivD0BZHhD wUunbMlwW2oZBETTsARtniM7DoYXhRRvmsp7dkJ86Rf85zrrMgHOsOwHBR9DCi4VQFzz eOW1BjyERU662Pq8mIbbvqmBWl2945CUz164vr6tfcPfZsj4DhWUXvusYVyjt0zEaKYv uuwI041/uBT7V4VGKgP1B2BfGhKNUm52jDHrzV6QUySVlxVA2hX4Pz39zsB1+Y3/U1lb 99lA== X-Gm-Message-State: AOJu0Yzut+34sF1C1JjkduCXFC8+SvUj02OsuAKTMhMtW4nyogG5TA99 BJpgUjXT74Jq+PkPns4W9O0xbg== 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 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 08 Dec 2023 02:18:15 -0800 (PST) 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