Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp97234rdh; Mon, 18 Dec 2023 05:33:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVmI9IvgRKSGDR4LGxsSc6wwiHNic42RjWSOK292FCZZLCDZhu//iAZtc1LFFz/bIhO+2j X-Received: by 2002:a05:6102:672:b0:466:a2ba:f2ee with SMTP id z18-20020a056102067200b00466a2baf2eemr299328vsf.14.1702906427268; Mon, 18 Dec 2023 05:33:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702906427; cv=none; d=google.com; s=arc-20160816; b=loBTXO4aSt5hC926PyBos9xl6m28S6mUbhgnSWUL1Kd4sy8iw/mAW9yIR0mJxz/d7C VwwjUA3pxBgWz6tcIk9QVH8SbgGqpV38P6HqJCcRPATS/AcIOfst4zB0v2bo3vpqT/6w SdJWle5En46O1rk5YRntnX2zw+fdPbIIQaZ5Qv9t8eLipY98ROBaj8sxx6zIg+LfRUPA aMJ60dLTLIKLBa5cqccrT3ru33G4yGqVDTh83+5/QmqcqoOuVpwCVwVzPKyaWPjlOa1P S3yV+N/z95Dgde6jeOvJinJfl8DmCAEQJHPDojh3+SwW2b7uMgtDGiKhuQJ2muj6hFL+ 6mTw== 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=/XTxombejJvrSz1c0NBYh3w/CnJqcWskHUIi/zqhoTE=; fh=eXC1cDDWBDb2k/cTn0MEgedTtzc29ByoCNd+AtFYmyU=; b=OQeVLACHrfzjBBiIpB3fHDEWfDcfdfpCSlk0nvylQIE+ZCTK2sSkxWMt7mUBmHpB4F evENIlReDto92xxxnG3YvzfWks48FHhpsawyBac1LZ0mS2M3Dp9gnWBBA1VnQrVmICHS KKVmgTcScptxqHnmr7G5vbzIXNJINHkTTSSrD17jeth9rygLT2amZCCthtnsdDxn6HvK ZZ3jYQO/ODGPIPR9TYF8LSp5ijj3uXBniBAjM5vgO4gxIvKComNOt3ufLpnReBmOtHJ+ CMl9MxSlNujxWMBrRXOWrhmOVy76c8aDnrDFsE4YpuKJMSPNV9dwaDtpTnQuPwTuV3+/ oKAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=j7x23AtU; spf=pass (google.com: domain of linux-kernel+bounces-3748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 4-20020a9f2384000000b007cb8d57b4a7si1115525uao.149.2023.12.18.05.33.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 05:33:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=j7x23AtU; spf=pass (google.com: domain of linux-kernel+bounces-3748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3748-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 05D7B1C23954 for ; Mon, 18 Dec 2023 13:33:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C02061D123; Mon, 18 Dec 2023 13:33:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j7x23AtU" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (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 B32C88464; Mon, 18 Dec 2023 13:33:35 +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-yw1-f170.google.com with SMTP id 00721157ae682-5e4b6353482so19494337b3.1; Mon, 18 Dec 2023 05:33:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702906414; x=1703511214; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/XTxombejJvrSz1c0NBYh3w/CnJqcWskHUIi/zqhoTE=; b=j7x23AtUuTkUPYyfKxS0VVHjI26UBmcVa8DPCZGb79Q1MHE9H1ShYDitXQ6CQigfBy JLt5Y8ZBbPGk1m5KMUkTrM5G1nxEo/Tq8eqnGY3Wge2UntDD1KcrpFO6yy/HFSomfqPB EPNpXUVeSGmwUA6L33IVEwYiD5R7baPUU266JUsh0XRq0IlkT9umM6HuDgpNaDv1rU/f C3H5n3VaSn/f9cwmM2kEX5IncEs00yI6OLYNXoIKsZftartPF87b43ByA7W7oF/1CNdp ab+DvnuN4aFiP5/KptFDZPSStd71n+PCpmWx5X3oNFPmyc9MmsIsuHmfmC0tSw7Scz6J jIbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702906414; x=1703511214; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/XTxombejJvrSz1c0NBYh3w/CnJqcWskHUIi/zqhoTE=; b=lnNAjr7SIRP8g51xkkAYvC/taE95GUyuw1XIifzR07KuXYMMizwXszWtqlv4CY2npt uyYQypPNIvEb8TlMxBmeRcYoOE9sjhiZoeyXGl7Est4jRwySjXdfnYJPgD21bwH/zcZM Vt7T1JR3CTZiIVjNVSOBDYljqlR4jZwrFqyHHwjmA1TDouJRja4LwydBPUSGaaY6fi8D t+nyqn5S0dKo2TklxKavg4gFFSfZXYHYMHIzmPX/fj6mSacfZ/GME9wiXJvBhbfmIAV+ lXA/AXMaYOgJmDGXQpFc9ei6tDOHlhpvh+dRUPY17hLr1zKaDLwpEflmeizU0Hvov/7y G6TQ== X-Gm-Message-State: AOJu0YzK3LTaL4cgTGm/IZPzs91DiPiKt0M8qLPyxXxrYAqY2qd9srb/ gUu95X3U+OoMF7Pe9bhwcMSnAYavvlrQ4GiUcZk= X-Received: by 2002:a0d:d241:0:b0:5d7:1a33:5ad7 with SMTP id u62-20020a0dd241000000b005d71a335ad7mr10904091ywd.36.1702906414703; Mon, 18 Dec 2023 05:33:34 -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: Miguel Ojeda Date: Mon, 18 Dec 2023 14:33:23 +0100 Message-ID: Subject: Re: [PATCH] kbuild: rust: add `rustupoverride` target To: Masahiro Yamada 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 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