Received: by 2002:a05:6358:98a5:b0:11e:80f4:e92 with SMTP id q37csp22406rwa; Thu, 4 May 2023 13:46:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nQrHRWOn3XLPmlPTzKcKLAbBTi96Qn6mTh/L81LvjhdMSii4ph1gRccFXy9UyhOBGUF31 X-Received: by 2002:a17:90a:1b4e:b0:247:53b4:ec52 with SMTP id q72-20020a17090a1b4e00b0024753b4ec52mr3351543pjq.8.1683233207384; Thu, 04 May 2023 13:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683233207; cv=none; d=google.com; s=arc-20160816; b=u6goho9cdmcO7qVpHcLGV8+2R0R8bq/TNlpXAsLUJYDrc8qHQSRfW81aklInCK/wR4 7TUWz192Ly7PeyEH3yOsKhVZky4Yme2YJd66L6aDNuUGrCiDdYASwQYAfBKNIXT5axt4 l5tNEiwTzaYuhsfIVEtVca8H5lsJK6u/77Vu+JrrScetqvdnIfkTwviJatSk6h7NWk+d MWdpwiVqNhskz2celemOFlGFPDS2HEeDGwoC5jXp3AGhxoDAyA1bGMJlg2LtHOSVe+Dv lc1KQiTzSiMk+DytjpkZAZ8/9NmR84K0ELoeHcR6rAepcfcopYj0bagM8+ogfFuBJ1W+ PtRg== 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; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a17090a6e0d00b0024696759991si4672858pjk.47.2023.05.04.13.46.10; Thu, 04 May 2023 13:46:47 -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; 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 S230026AbjEDUbe (ORCPT + 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 ); 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" 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 , Nathan Chancellor , Nick Desaulniers , Nicolas Schier Cc: Thomas Gleixner , linux-kbuild@vger.kernel.org, LKML , "Ahmed S. Darwish" 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: X-Mailing-List: linux-kernel@vger.kernel.org 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