From mboxrd@z Thu Jan 1 00:00:00 1970 From: ydroneaud@opteya.com (Yann Droneaud) Date: Sat, 08 Dec 2012 09:03:16 +0100 Subject: question about building a module In-Reply-To: References: Message-ID: <1354953796.27902.9.camel@test.quest-ce.net> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Le vendredi 07 d?cembre 2012 ? 20:44 +0200, Kevin Wilson a ?crit : > Hi, > > > I am adding some code of my own **only** under > net/bluetooth in some file there. > > > There is only exactly one module which is changed by my addition, > This is net/bluetooth/bluetooth.ko > > > Now, when I run 'make -j2 modules' it takes quite a time, even If I > did one change in one line in a file under net/bluetooth. > > > I assume that it has to do with stage 2 of the build, which says > something about > ... > Building modules, stage 2. > MODPOST 855 modules > ... > see below full log. > > > Now my question is this: > Is there a way to make things more efficent when building a module, on > the > assumption that I do not change anything anywhere > except /net/bluetooth (in this case)? > > > somehow telling the MODPOST that only one module is changes ? > > > I remember I once saw (not sure) a suggestion to build only a > specified moule like: > make net/bluetooth > But in this case the result is the same. > cd net/bluetooth make -C $PWD/../../ M=$PWD modules (But if you change a configuration parameter in .config, you will need to do a full build) Regards. -- Yann Droneaud OPTEYA