Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751434AbWCCNfo (ORCPT ); Fri, 3 Mar 2006 08:35:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751439AbWCCNfo (ORCPT ); Fri, 3 Mar 2006 08:35:44 -0500 Received: from linux01.gwdg.de ([134.76.13.21]:46733 "EHLO linux01.gwdg.de") by vger.kernel.org with ESMTP id S1751434AbWCCNfo (ORCPT ); Fri, 3 Mar 2006 08:35:44 -0500 Date: Fri, 3 Mar 2006 14:35:38 +0100 (MET) From: Jan Engelhardt To: Alexander Mieland cc: LKML Subject: Re: how to find out which module was built by which .config variables? In-Reply-To: <200603031420.46801.dma147@linux-stats.org> Message-ID: References: <200603031420.46801.dma147@linux-stats.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1653 Lines: 47 >Hello, > >I need to create a database with configuration options (the ones >in .config) and the resulting kernel modules. > Let's pick 8139too.ko for example. Find /usr/src/linux -name 8139too.ko In that same directory, look at the Makefile: obj-$(CONFIG_8139TOO) += 8139too.o >Is there any simple possibility (with bash and its applications) to find >out, which kernel modules will be built by which .config options? I know >that there are also many dependencies between the options and the modules >and I want to add them to the database too. The dependencies can be found >out with the Kconfig files, I think. > >I've already looked into the source files of some modules, but I can not >find any commonalities which would make it easy to find the module-name >which will be build. > >I've found some stuff like this: >#define DRIVER_NAME "8139too" >or things linke: >#define _MODULES_NAME "some string which seems to be the >descriptive name" > >But this doesn't really help... :( > >Sincerely > >Alexander Mieland > >-- >Alexander 'dma147' Mieland 2.6.15-ck3-r1-fb-my4 SMP >FnuPG-ID: 27491179 Registered Linux-User #249600 >http://blog.linux-stats.org http://www.linux-stats.org >http://www.mieland-programming.de http://www.php-programs.de > Jan Engelhardt -- | Software Engineer and Linux/Unix Network Administrator - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/