From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 32696C38145 for ; Tue, 6 Sep 2022 23:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hCzdIcgNEddymU3dheq7yCMuzwRuQ56WzXlRYSat13U=; b=BlZGEmWgrxAxBl S6Nk+4243LQEWmTEzb/VV1nuHn/aEQgpbwkQKSKE/RG1P6aeniI2ByyneAPrEu3vpTsIFPn9xTCbT gDM+iqJYKmzjJwdN2Uex9HKW4hNSUeZ7mBLp4atKjcion1nbM1CkqGmDM7Cv2mvsxsKAR6BUQ/pPb W4BhXseIqut92djqbXS2jDqCDQM/g8mfxhvrEZMKsXv6zPNnzTYvWR0C98noWAavYUBEhFYfTwKCs KJNRfQRCe+jImXXacKOy+p2UGbyOjd2Uwdy1/QMbgfYiId891ABAIMJEj54MoipCKMd5WEKzJf14x AbMZChIJiPygdxp+Imwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVi69-000dNv-TJ; Tue, 06 Sep 2022 23:35:17 +0000 Received: from mail.ozlabs.org ([2404:9400:2221:ea00::3] helo=gandalf.ozlabs.org) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVi5w-000dE0-Em; Tue, 06 Sep 2022 23:35:06 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220906_163504_953117_568860C9 X-CRM114-Status: GOOD ( 15.39 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list 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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@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-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv