Message ID | 20230504201833.202494-1-darwi@linutronix.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp600503vqo; Thu, 4 May 2023 13:54:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ53sYwn0MY3DO6KV6huzxja34mxMAtED+Ogs+PVadfqWrp27C2Mot8s69u4qpn2Xty/j+iA X-Received: by 2002:a05:6a21:7890:b0:f1:f894:9e6e with SMTP id bf16-20020a056a21789000b000f1f8949e6emr4715623pzc.5.1683233692766; Thu, 04 May 2023 13:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683233692; cv=none; d=google.com; s=arc-20160816; b=UpPQPx3w/gV/uKBCA9lE3DsD87HiRDqRTOjHfH9AypYvESBd68P1Vr4YI8GG1mI2Yl KwY43w6dr8hDtgRWcqP9gdzvUyiW6DDb72Pgvm5UNQuKcXwdRLw4zjQBlr8/0QQvnbbr dKDbJPrdknBgF4vhF0MmJ3M2CLLKoHvx+twXK+Iok3enPRfpyzTUg/p+g+uPkGI+a821 ziY8PvZv3XsiVI0yeCiCcgAAlyXT26N0tkjeN4EOOCFwjiYnVh+A3wJ8DIajFa1sOWh4 2y1FLhDFQe3FOhuEus7ZKZtUjcmILALjH0SZcuv+YQeVgeWPZOs01F2OzWeQHSAsIjtt 7irw== 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:dkim-signature:dkim-signature:from; bh=HkQjc5wVMwVPD7qdVQEk0MlwuGYuZQZtagfPw3Kt3do=; b=WKQYc4bg6eclv+U4ANX8nt6uunn4+01DcE7Mn9tcar1uZuWEcdDtpZwOFG4JEN456n 3ef95w9uRk2n5Iy+4PKwjowN24/Ru9nXSjpv20GZxyLvrIcVuOPPzvFKDXGCmp5AYLfR hJ4EKx6Wcx6DnHHPiCH4IJS+L73IgNJMi+NjU2H87aNbFzlTArP9g2GsAo3isR4aMDaG LiAQx0HJMVoDroBaGQ2N1oa/WXawOE4wP+0vXheqhUDV3dlc//AkTYnbpT4AgoIDf8+p mGL0E4fRlfIqtbD8OrdfzOvTq4dKij/xxDtbmhBbPfGvFjN3io6vWJDyUKnl78sVJexu AeyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WME3DxYU; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="Zhr/yCNn"; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m26-20020a638c1a000000b0052c9e45cb3fsi312488pgd.384.2023.05.04.13.54.39; Thu, 04 May 2023 13:54:52 -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=@linutronix.de header.s=2020 header.b=WME3DxYU; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="Zhr/yCNn"; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230471AbjEDUbe (ORCPT <rfc822;b08248@gmail.com> + 99 others); Thu, 4 May 2023 16:31:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjEDUbR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 4 May 2023 16:31:17 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC18D191F0; Thu, 4 May 2023 13:20:07 -0700 (PDT) From: "Ahmed S. Darwish" <darwi@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1683231556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=HkQjc5wVMwVPD7qdVQEk0MlwuGYuZQZtagfPw3Kt3do=; b=WME3DxYUebEUIQnulIxv2YEXLiGkETWvsiMWWqvSeSi8PCoqtFoNe6vkBEDfcOoSYn8zqi InfBO6obsPRc8TP8qB310X8XjNRjX1pp097Jrwt+fvUdc3+yrQyk6rUHC1b1fGeA8lyb7l 3M79PiYaXJNWb4+LznAiBvkcLIqmeSrMbT6aOPtRq3GTu5LQclHbVqyh+ffAdOmLvS72l5 axcVhI/OwZz7WqAWEAVlXBloDsnHNyn/oTlBoPoi6wOejrVTNRM4PkJBOvUjPRPJ1c/N6W SCD4h4VOGcOoYqXLO+GVW2ONxKhtEF/emBVMG1xcwOm5AxN5GTjk1p9e9MTV0g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1683231556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=HkQjc5wVMwVPD7qdVQEk0MlwuGYuZQZtagfPw3Kt3do=; b=Zhr/yCNnLnaEqp90nedCZKGE0I//dlC0/hGhg7xmzPbapXMHOYsos1cgWmuFeq6js9OrV2 AJBRvF9JL9sb+qAw== To: Masahiro Yamada <masahiroy@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nicolas Schier <nicolas@fjasle.eu> Cc: Thomas Gleixner <tglx@linutronix.de>, linux-kbuild@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>, "Ahmed S. Darwish" <darwi@linutronix.de> Subject: [PATCH v1 0/1] scripts: Fix "make gtags" for O= kernel builds Date: Thu, 4 May 2023 22:18:32 +0200 Message-Id: <20230504201833.202494-1-darwi@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1764998452657717347?= X-GMAIL-MSGID: =?utf-8?q?1764998452657717347?= |
Series |
scripts: Fix "make gtags" for O= kernel builds
|
|
Message
Ahmed S. Darwish
May 4, 2023, 8:18 p.m. UTC
Hi, make gtags for O= kernel builds is currently broken. For example, when doing: make O=../build/ x86_64_defconfig make O=../build/ gtags gtags generates a warning for each kernel source file to be indexed: make[1]: Entering directory '/home/darwi/build' GEN gtags Warning: '/home/darwi/linux/arch/x86/include/asm/qspinlock.h' is out of source tree. ignored. Warning: '/home/darwi/linux/arch/x86/include/asm/hpet.h' is out of source tree. ignored. ... Warning: '/home/darwi/linux/virt/lib/irqbypass.c' is out of source tree. ignored. make[1]: Leaving directory '/home/darwi/build/' and then generates an empty index: $ du -hs ~/build/G* 16K /home/darwi/build/GPATH 16K /home/darwi/build/GRTAGS 16K /home/darwi/build/GTAGS This series includes a proposed fix. After applying it: $ make O=../build/ gtags make[1]: Entering directory '/home/darwi/build' GEN gtags make[1]: Leaving directory '/home/darwi/build' $ du -hs ~/build/G* 9.1M /home/darwi/build/GPATH 506M /home/darwi/build/GRTAGS 696M /home/darwi/build/GTAGS The generated files can then be integrated with editors or IDEs as usual. Thanks, => Ahmed S. Darwish (1): scripts/tags.sh: Fix gtags generation for O= kernel builds scripts/tags.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) base-commit: 1a5304fecee523060f26e2778d9d8e33c0562df3 -- 2.30.2