<div dir="ltr">Hi,<div><br></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.666666984558105px;white-space:nowrap">I am adding some code of my own **only** under </span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.666666984558105px;white-space:nowrap">net/bluetooth in some file there.</span></font></div>
<div><br></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.666666984558105px;white-space:nowrap">There is only exactly one module which is changed by my addition,</span></font></div><div>
<font color="#222222" face="arial, sans-serif"><span style="font-size:12.666666984558105px;white-space:nowrap">This is </span></font><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.666666984558105px;white-space:nowrap">net/bluetooth</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.666666984558105px;white-space:nowrap">/bluetooth.ko</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.666666984558105px;white-space:nowrap"><br></span></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.666666984558105px;white-space:nowrap">Now, when I run &#39;make -j2 modules&#39; it takes quite a time, even If I </span></font></div>
<div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.666666984558105px;white-space:nowrap">did one change in one line in a file under </span></font><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.666666984558105px;white-space:nowrap">net/bluetooth.</span></div>
<div><br></div><div>I assume that it has to do with stage 2 of the build, which says something about </div><div>...</div><div><div>  Building modules, stage 2.</div><div>  MODPOST 855 modules</div></div><div>...</div><div>
see below full log.</div><div><br></div><div>Now my question is this:</div><div>Is there a way to make things more efficent when building a module, on the </div><div>assumption that I do not change anything anywhere except /net/bluetooth (in this case)?</div>
<div><br></div><div>somehow telling the MODPOST  that only one module is changes ? </div><div><br></div><div>I remember I once saw (not sure) a suggestion to build only a specified moule like: </div><div>make net/bluetooth</div>
<div>But in this case the result is the same.</div><div><br></div><div>any ideas?</div><div>rgs</div><div>Kevin</div><div><br></div><div><br></div><div>myhost&gt; make modules </div><div><div>make[1]: Nothing to be done for `all&#39;.</div>
<div>make[1]: Nothing to be done for `relocs&#39;.</div><div>  CHK     include/generated/uapi/linux/version.h</div><div>  CHK     include/generated/utsrelease.h</div><div>  CALL    scripts/checksyscalls.sh</div><div>  CC [M]  net/bluetooth/hci_sock.o</div>
<div>  LD [M]  net/bluetooth/bluetooth.o</div><div>  Building modules, stage 2.</div><div>  MODPOST 855 modules</div><div>  CC      net/bluetooth/bluetooth.mod.o</div><div>  LD [M]  net/bluetooth/bluetooth.ko</div></div><div>
<br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.666666984558105px;white-space:nowrap"><br></span></div></div>