Message ID | 20221231064203.1623793-1-masahiroy@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3223665wrt; Fri, 30 Dec 2022 22:43:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXt4W3LPs4pia+d/XDIg0E1WzUkFjAWRuEKoSh2Np4iTmerC2Osfulm8zb6uH5ymty8+SI8g X-Received: by 2002:a17:906:5012:b0:7c1:2e19:ba3f with SMTP id s18-20020a170906501200b007c12e19ba3fmr33497120ejj.57.1672468984106; Fri, 30 Dec 2022 22:43:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672468984; cv=none; d=google.com; s=arc-20160816; b=eIvbOP+XYS6ZUVf30/KKVvhH3U8N5OnlbJumampoNP8K6iEPfX+PgVOJvQlOBNhXsH rZCTi/cy+0MqM5ns0Zl74aU0Se8kXn4nldro5gaU3KIIqVP+L/p8hdznnjIaeBxc5QxI dNyUW0F3xOA1tVBOQFFNxhqbhDGyI1y0GtzYYwu4hggDhbnawLBANrXXnFrpY6O5wntu tWlkw575xWVGr/CodhUzgnkkyojf+Xl71EbOFkIlWO+A7zEebCTgQO9qVp6WvgJpU+sv byFuDSVuHzkLAwZ0G7ZLBxUhoUHsDQJB4wOaxxC+n7laie0RRgj3Hf7oWvkJnzQthub7 2nqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=sx2uRo/+9ARhcs0PZ6vNVzU5Q7UH1kyHEOUKJjYPKOo=; b=Z836cjgTHCGIWJD4onko5TImaE3S7EVXy45Shjhu6tQ08zYBkn65W+SQzrrl9mQ0s0 6ZbnX++7AEE/O6YMKWVEWnMKEQruwbfsCeiC3/qc96mpsFaOxikaTNPZ7yalnzxWmqv9 ez2NjvFkqhQeeqJg2g1TrfD0wURPSD+QMznGoUrV9WK8C/t+6uyFzKtew8saBNveaQSr XVvgMQ301sPqXp7w6UvG6ERXK3rtC494m+Lcnhu+824Vt9/IinreP27NJw2V4cbqm/XK 9Llh5zOY7IZ5E2QsUhdGMBLySfqr4jn71CPLR87SEOgR4Sl1l+Uz9tnJWDKtdM7YFvDr We/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cwnNg+U+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k26-20020aa7d8da000000b00482ab854afcsi14872019eds.566.2022.12.30.22.42.39; Fri, 30 Dec 2022 22:43:04 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=cwnNg+U+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229994AbiLaGmW (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Sat, 31 Dec 2022 01:42:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbiLaGmT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 31 Dec 2022 01:42:19 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 857DC3B2; Fri, 30 Dec 2022 22:42:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 329A3B80066; Sat, 31 Dec 2022 06:42:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F4023C433F0; Sat, 31 Dec 2022 06:42:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672468935; bh=Q3TDSDFr/sJtluomc4BwL5YkxG8/1KW66Kq678sK91A=; h=From:To:Cc:Subject:Date:From; b=cwnNg+U+pDVojTYGdaksC2JJpE970eqINaEP6uu2OjZdwClKhTKgR+uS5juHUVPs/ CKg1Iayv+Ayf1J/38YA5SgVU3N9T9z2ryPxULwND7HC/ilt/UUMAex5G8YvpnhINZo rwZAIsOuMlDxnX0XEaZQYDC896vFrmBR0FQLjpUanIte3SRUtfR1xXLGVS8OzEXSMB osfwm+Xv7LQoa2rO7zSPZmoz9yeZqiNk6b2qPuEg+ZV0BFOFZ7oHpBBkMF9FgeIo40 zH6USqEV1GDrVpDti1HJsCaT/QERa70Mm2dBnumVOdjl6Cwx+2cJXqeGdG4xadw80P Kvajjkw3WKYGA== From: Masahiro Yamada <masahiroy@kernel.org> To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Miguel Ojeda <ojeda@kernel.org>, Masahiro Yamada <masahiroy@kernel.org>, Alex Gaynor <alex.gaynor@gmail.com>, =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= <bjorn3_gh@protonmail.com>, Boqun Feng <boqun.feng@gmail.com>, Gary Guo <gary@garyguo.net>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nicolas Schier <nicolas@fjasle.eu>, Tom Rix <trix@redhat.com>, Wedson Almeida Filho <wedsonaf@gmail.com>, llvm@lists.linux.dev, rust-for-linux@vger.kernel.org Subject: [PATCH 0/6] kbuild: fix dep-file processing for rust Date: Sat, 31 Dec 2022 15:41:57 +0900 Message-Id: <20221231064203.1623793-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753710837257732009?= X-GMAIL-MSGID: =?utf-8?q?1753710837257732009?= |
Series |
kbuild: fix dep-file processing for rust
|
|
Message
Masahiro Yamada
Dec. 31, 2022, 6:41 a.m. UTC
Masahiro Yamada (6): kbuild: specify output names separately for each emission type from rustc fixdep: parse Makefile more correctly to handle comments etc. kbuild: remove sed commands after rustc rules fixdep: refactor hash table lookup fixdep: avoid parsing the same file over again fixdep: do not parse *.so, *.rmeta, *.rlib rust/Makefile | 16 ++- scripts/Makefile.build | 26 ++--- scripts/Makefile.host | 10 +- scripts/basic/fixdep.c | 234 +++++++++++++++++++++++++++-------------- 4 files changed, 173 insertions(+), 113 deletions(-)
Comments
On Sat, Dec 31, 2022 at 7:42 AM Masahiro Yamada <masahiroy@kernel.org> wrote: > > Masahiro Yamada (6): > kbuild: specify output names separately for each emission type from > rustc > fixdep: parse Makefile more correctly to handle comments etc. > kbuild: remove sed commands after rustc rules > fixdep: refactor hash table lookup > fixdep: avoid parsing the same file over again > fixdep: do not parse *.so, *.rmeta, *.rlib These cleanups are great, and it is a pleasure to see proper integration with `fixdep` -- thanks a ton! :) Will you want to take them through the kbuild tree? (I guess so, given the bulk of it is on `fixdep`) Cheers, Miguel
On Sat, Dec 31, 2022 at 10:34 PM Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> wrote: > > On Sat, Dec 31, 2022 at 7:42 AM Masahiro Yamada <masahiroy@kernel.org> wrote: > > > > Masahiro Yamada (6): > > kbuild: specify output names separately for each emission type from > > rustc > > fixdep: parse Makefile more correctly to handle comments etc. > > kbuild: remove sed commands after rustc rules > > fixdep: refactor hash table lookup > > fixdep: avoid parsing the same file over again > > fixdep: do not parse *.so, *.rmeta, *.rlib > > These cleanups are great, and it is a pleasure to see proper > integration with `fixdep` -- thanks a ton! :) > > Will you want to take them through the kbuild tree? (I guess so, given > the bulk of it is on `fixdep`) Yes, my plan is to get it in the kbuild tree with your ack. > Cheers, > Miguel
On Sat, Dec 31, 2022 at 4:06 PM Masahiro Yamada <masahiroy@kernel.org> wrote: > > Yes, my plan is to get it in the kbuild tree with your ack. Done, also compile- and boot-tested each (on top of -rc1). Cheers, Miguel