Return-Path: From: Michael Ellerman 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" Errors-To: linux-um-bounces+geert=linux-m68k.org@lists.infradead.org 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 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 _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um