Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5004366rwb; Tue, 6 Sep 2022 16:59:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR6lPHJuuJfj/Aik8ca1BGjseVehu0q8/GzdQVZzknykS3DoHNfLcv1THxJEqXF2gOH1YoZg X-Received: by 2002:a17:906:4795:b0:73d:d6e8:52a7 with SMTP id cw21-20020a170906479500b0073dd6e852a7mr556869ejc.59.1662508743599; Tue, 06 Sep 2022 16:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662508743; cv=none; d=google.com; s=arc-20160816; b=CtZeqJFNV+o3NPKYM1XT59TOUBqk8Jaf4uyTmy4JlLL7X1DEPxCWIAcY5dGKKYNUNq B9L3PqPbgH31aXEmq8HPDzVzr2EmzotOKqmVP3vMHnOo9QJlQHXJbwaqBPguYxUto3EC 6lE6sxMCGM130Mp0P0DQD4Z+RPqXNWGiz0JBVyLzGlO2zv5cgVms7mScRNk0oc1t5fWf Hrb8H3w6sF1p6IXwZY/nSfJZ5Cw+m+Ep3tQzmThMtRprlb7DwiIdtmL8r7lpbWP13U3E xcsHv+Fm4aUqDKDzXA+rtFbuUOoyXC//27wUA7jaZF8romzRmjAycgYYQmbqF8OzzJVP pXvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=4US3THlCO1EMb1gSb9ztork5wBimNJa/nZMcdS+Fg/M=; b=tLwPRFpvxO/46lmOBForQRrFTKhsdi+1pnbh7gZwKPzSxaruRDmn41vT1UD4h4ot2N ePSgL0Zb4MNxkr03WTQCHjWGd1mJriJYS8zInkuntYZID4HxtIELGKJY3tAM/1pk19z/ lxcKcsM3rVoUvUVNP3NBbhzE/z/MgPpDIRv3jzwm3YiUVInldSfZ2YaZk1WQHivekOnr hZlirDGwNXt8qCWCY0h4eMcigs4K2R4l9iJscHJyzw5s17nsUKSrrTKX0yu9aBXB7si2 qBj+7/qEK/PKMUoYOC+ZvcM+dM47I3BQmPtAv5rZahwrG4SEZ86H0Jc0Ch1pmO1vI3XY iinw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=VE9G55kF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw16-20020a170906479000b00734bbe8d2casi10840413ejc.608.2022.09.06.16.58.38; Tue, 06 Sep 2022 16:59:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=VE9G55kF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229779AbiIFXfB (ORCPT + 99 others); Tue, 6 Sep 2022 19:35:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbiIFXe6 (ORCPT ); Tue, 6 Sep 2022 19:34:58 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D8C731EF2; Tue, 6 Sep 2022 16:34:56 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4MMhYq38SZz4xD3; Wed, 7 Sep 2022 09:34:39 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1662507291; bh=4US3THlCO1EMb1gSb9ztork5wBimNJa/nZMcdS+Fg/M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VE9G55kF0YvBPTmfEKRNLaOLD928FpPFqAcNpL+f8KrrJ98Z6/s7Ls4ACxDbQLjiz E4hCICN6PrT1JV2Doci74i6u8iUELHz6WKa8weEmztx+WhmmFKzJcxoPtF0rjggIKm BxWXqa3X6MefPexoJt+3HkCQG+lj0E3/25I9+R69dkW0ybhEIbZYoAeJYlfHpx/47O +OsAyVQq2IrWk3kDEj8NBKVhMDl9QoQPtrUhII0czRT5IizvjFTt7liWxxkcoVacqF jNKoxW2w8uKB9ovSNUnPneATOBtcgGJn4FyjeS4nZe4Px07FEr1ktrhp2CX3Vu8dGP TTu5Vt4Ozw+Sg== From: Michael Ellerman To: Masahiro Yamada , Miguel Ojeda Cc: Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, Linux Kernel Mailing List , Jarkko Sakkinen , Alex Gaynor , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho , Sven Van Asbroeck , Gary Guo , Boris-Chengbiao Zhou , Boqun Feng , Douglas Su , Dariusz Sosnowski , Antonio Terceiro , Daniel Xu , Miguel Cano , David Gow , Tiago Lam , =?utf-8?Q?Bj=C3=B6rn?= Roy Baron , Martin Rodriguez Reboredo , Michal Marek , Nick Desaulniers , Russell King , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Paul Mackerras , Paul Walmsley , Palmer Dabbelt , Albert Ou , Richard Weinberger , Anton Ivanov , Johannes Berg , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , "H. Peter Anvin" , Linux Kbuild mailing list , linux-arm-kernel , linuxppc-dev , "open list:SIFIVE DRIVERS" , linux-um@lists.infradead.org Subject: Re: [PATCH v8 27/31] Kbuild: add Rust support In-Reply-To: References: <20220802015052.10452-1-ojeda@kernel.org> <20220802015052.10452-28-ojeda@kernel.org> Date: Wed, 07 Sep 2022 09:34:38 +1000 Message-ID: <8735d4t6up.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Masahiro Yamada writes: > On Tue, Aug 2, 2022 at 10:53 AM Miguel Ojeda wrote: >> >> Having all the new files in place, we now enable Rust support >> in the build system, including `Kconfig` entries related to Rust, >> the Rust configuration printer, the target specification >> generation script, the version detection script and a few >> other bits. ... >> + >> +config RUSTC_VERSION_TEXT >> + string >> + depends on RUST >> + default $(shell,command -v $(RUSTC) >/dev/null 2>&1 && $(RUSTC) --version || echo n) >> + >> +config BINDGEN_VERSION_TEXT >> + string >> + depends on RUST >> + default $(shell,command -v $(BINDGEN) >/dev/null 2>&1 && $(BINDGEN) --version || echo n) >> + > > Where are these config options used? > > I grep'ed but no hit. > > masahiro@zoe:~/ref/linux-next$ git grep RUSTC_VERSION_TEXT > init/Kconfig:config RUSTC_VERSION_TEXT > masahiro@zoe:~/ref/linux-next$ git grep BINDGEN_VERSION_TEXT > init/Kconfig:config BINDGEN_VERSION_TEXT That came up before in a review by Nick: Miguel wrote: > Nick wrote: > > Are these two kconfigs used anywhere? > > Not for the moment, but it could still be useful when getting > `.config` reports (and we could add it to `LINUX_COMPILER` etc. in the > future). https://lore.kernel.org/all/CANiq72n2bU3LSGu-4v66nif_95EVq--z2X_F2V7JBPU8v=h8EA@mail.gmail.com/ cheers