From patchwork Mon Apr 29 23:30:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 2502851 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 2FF513FE80 for ; Mon, 29 Apr 2013 23:30:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932385Ab3D2Xav (ORCPT ); Mon, 29 Apr 2013 19:30:51 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:15192 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932285Ab3D2Xav (ORCPT ); Mon, 29 Apr 2013 19:30:51 -0400 X-Authority-Analysis: v=2.0 cv=cOZiQyiN c=1 sm=0 a=rXTBtCOcEpjy1lPqhTCpEQ==:17 a=mNMOxpOpBa8A:10 a=Ciwy3NGCPMMA:10 a=zj-aDniqNm4A:10 a=5SG0PmZfjMsA:10 a=bbbx4UPp9XUA:10 a=meVymXHHAAAA:8 a=PSvuwpntFfAA:10 a=4kDAWb-mnydJKQ6nccMA:9 a=QEXdDO2ut3YA:10 a=jeBq3FmKZ4MA:10 a=j1jP541WmkCymAXiykwA:9 a=rXTBtCOcEpjy1lPqhTCpEQ==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 74.67.115.198 Received: from [74.67.115.198] ([74.67.115.198:52816] helo=gandalf.local.home) by hrndva-oedge04.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 39/89-17243-AA20F715; Mon, 29 Apr 2013 23:30:50 +0000 Received: from rostedt by gandalf.local.home with local (Exim 4.80) (envelope-from ) id 1UWxWz-00049q-Ry; Mon, 29 Apr 2013 19:30:49 -0400 Message-Id: <20130429233049.799089308@goodmis.org> User-Agent: quilt/0.60-1 Date: Mon, 29 Apr 2013 19:30:01 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Linux Kbuild mailing list Subject: [PATCH 1/2] localmodconfig: Add debug prints for dependencies of module configs References: <20130429233000.662744610@goodmis.org> Content-Disposition: inline; filename=0001-localmodconfig-Add-debug-prints-for-dependencies-of-.patch Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: Steven Rostedt When a config for a module is added to the list to save in the final config file, add a print to show what dependencies are used. This is useful to debug when a config is disabled by the make oldconfig after localmodconfig is finished. This print only appears if the environment variable LOCALMODCONFIG_DEBUG is defined. Signed-off-by: Steven Rostedt --- scripts/kconfig/streamline_config.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 3368939..343a568 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -396,6 +396,15 @@ foreach my $module (keys(%modules)) { foreach my $conf (@arr) { $configs{$conf} = $module; dprint "$conf added by direct ($module)\n"; + if ($debugprint) { + my $c=$conf; + $c =~ s/^CONFIG_//; + if (defined($depends{$c})) { + dprint " deps = $depends{$c}\n"; + } else { + dprint " no deps\n"; + } + } } } else { # Most likely, someone has a custom (binary?) module loaded.