Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp103376rdh; Mon, 18 Dec 2023 05:45:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcav4R/i0Az3/WSTu060hy5iQtO+C7tHNrwuxQNlVyYhqG0qxPeDYbAhKSBSbkGD/zZkBT X-Received: by 2002:a17:903:230b:b0:1d3:beea:974b with SMTP id d11-20020a170903230b00b001d3beea974bmr700394plh.121.1702907107743; Mon, 18 Dec 2023 05:45:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702907107; cv=none; d=google.com; s=arc-20160816; b=DQ2KPpkMcx1C5jlIalroX7/mAcaSzkGMMwr1jzHjWd6ku4KiekSBouZ0Pt9C/u37BM t6iwptCjveMwq6G9Lsu1JY1qbkUiTI1BzLs9bBUAnXAD3VFwR7oHwZ0+0DG+59sQXBw+ 7DcJ/8aOpdnXxqi3lGZiUvDaNrgpxXFEFdx1Nqmq99qVFEl3JxOV0MuVZ+a+nsPaGQ6R zN4mkI0kL8wbZLe0Bn2M054qBpIULPWJEkT9i7fxPnoEBdV2B9K3C28JkFI0gb+Yv79G RVLBhE2+F0FCkOc2O9CiEriXyviRDvu2H5vol+7Gn3uJDo4Xt+u259ypMg9EKEapg8gt 99TA== ARC-Message-Signature: i=1; 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=lf87cY+sfrIGjZkc0yfpM2ITygYwk1dUMUryBA2JhoY=; fh=h8bcujUT2Yiln8oieH4he0ZEl4bx7BeZPqw/uhF0gt0=; b=zqk2M+uHo/ermG+7yQuWFZerdVwQEP68CkK9JNs6br8m+KOl9fYY44hkPWS5UCjxxl eQ7E0zNzosGU6w2jT8dNzySDilxXBLvQn+89dIXaseJ9eiCn/DxlQnlcZNufexfOlLIx B/TTtbw/sH8O0hjXcfLyEi1QkqFEAUDmyQOy701Quqwnpp5vgdP8TXpHwX/rz21lzkgI 5i8dGodYymid72etqhZ+yjgbRXIl/+o+XfZpXfoo9rM84ryUsvkySWvvBVLPGinPN6vH yNFlVYHYfoAafXnwGm3EKfC/XIaAFxSeJZ4/ioGFjEOEI8+CYmpAMOpZWm155LTGs6dl k34w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a9L11gZ8; spf=pass (google.com: domain of linux-kernel+bounces-3761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o12-20020a170902bccc00b001cc692bf120si17580229pls.61.2023.12.18.05.45.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 05:45:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3761-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=@kernel.org header.s=k20201202 header.b=a9L11gZ8; spf=pass (google.com: domain of linux-kernel+bounces-3761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 485A9B20E75 for ; Mon, 18 Dec 2023 13:42:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2EEA1D12A; Mon, 18 Dec 2023 13:42:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a9L11gZ8" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04E44129EEA; Mon, 18 Dec 2023 13:42:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C9F8C433C7; Mon, 18 Dec 2023 13:42:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702906956; bh=lf87cY+sfrIGjZkc0yfpM2ITygYwk1dUMUryBA2JhoY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=a9L11gZ8UROh/ThiFrLMjNPiDbo17oq6krV4C7pe/JzEFp7XMBBKu8V5FSmeg2zRU ZhXgnYteQbbOwn/wHcsBj7EXKtUMtxrRMdqJYLX8cF4CcduKBh4xLjfXapI5lffJmI U0/rSSvID1n4IFT4LOrItWBNm+mKenZ3pdZ2jAVwM7dsnnfC3dbnoS7Znd9pNu4ueE GHAplv3p2RSphWZH9nSjFN0C+Ge2+K8qj1FFAG8QGDdUnbnUqilsVr1+uZ/sPhYfLI wZ4jg5rjikeD5hQADzDYT2Trs0Rv8WYE/wptKEyxcaf6+3Yk9rjRVZk84l0BGSEyYF lC40sp6lJ4/Rw== Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-20335dcec64so2238237fac.3; Mon, 18 Dec 2023 05:42:36 -0800 (PST) X-Gm-Message-State: AOJu0YwYnQo6q8EaDGGCxOGOqYgSA8uZIyWGPTbkReUj9scW7YfJ/BBP p+tWblkPznP47EJ8RxF/EoJ25gLvm5bDFe4kGJs= X-Received: by 2002:a05:6870:ac0f:b0:203:c9b1:fe8a with SMTP id kw15-20020a056870ac0f00b00203c9b1fe8amr1625883oab.12.1702906955958; Mon, 18 Dec 2023 05:42:35 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231214222253.116734-1-ojeda@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Mon, 18 Dec 2023 22:41:59 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: rust: add `rustupoverride` target To: Miguel Ojeda Cc: David Gow , Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2023 at 10:33=E2=80=AFPM Miguel Ojeda wrote: > > On Mon, Dec 18, 2023 at 1:10=E2=80=AFPM Masahiro Yamada wrote: > > > > In principle, Kbuild does not require internet connection, > > or proactively change the system setting. > > Yeah, that was what I thought. I agree it can be surprising to have > Make targets that modify environment/system-level bits (i.e. affecting > things outside the build). > > > Rather, I will manually do this one time for the parent directory: > > That can work for many people, yeah. Though I imagine some people may > want to keep builds (and sources) of different kernel versions in the > same parent folder (or even other projects). But one can use nested > overrides too. > > > If you want to provide a way for automated settings, > > you can do it in a script you maintain. > > Sounds good. In that case, we can send to the list your patch from the > `rust` branch if that is OK with you (i.e. I understand you would > prefer to avoid not just `rustsetup` but also `rustupoverride`). > > Thanks Masahiro! > > Cheers, > Miguel Viresh's v2 was written without relying on this patch. If that one is better described, that is OK too. -- Best Regards Masahiro Yamada