<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">&gt;&gt; On Tue, Apr 18, 2017 at 11:59 AM, Code Soldier1 <span dir="ltr">&lt;<a href="mailto:codesoldier1@gmail.com" target="_blank">codesoldier1@gmail.com</a>&gt;</span> wrote:<br>&gt;&gt; Hi,<br><br>&gt;&gt; Can someone suggest what is the fastest way to build a minimal kernel<br>&gt;&gt; and boot. <br><br></div><div class="gmail_quote">Two ways to build a minimal kernel. Try make localmodconfig or make tinyconfig and see what fits your needs best. If this is still not what you need then you have to tweak things using make menuconfig ( can be a real pain in the butt... :)<br><br>&gt;&gt; For example if I am working on TCP and would like to make a<br>&gt;&gt; small change and reboot, what is the fastest way, I rather not build<br>&gt;&gt; the whole kernel.<br><br></div><div class="gmail_quote">Stay away from make menuconfig after the initial compile. The first time you use make menuconfig it will create .config for you. As long as you do not mess with the .config you can simply run make and should be able to build just the file(s) you changed.<br><br></div><div class="gmail_quote">Keep in mind somethings are statically linked in to the kernel, meaning &#39;built-in&#39; and if you touch those may trigger a full compile.<br><br></div><div class="gmail_quote">To get a faster compile/build use <code>make</code> parallel build with <code>-j</code> option. Where -j is the number of processors available to you.<br></div><div class="gmail_quote">For eg: make -j4 <br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Also compile for the target architecture only: make ARCH=&lt;your architecture&gt; -jN<br><br></div><div class="gmail_quote">UML ( User mode linux ) I have found is faster for reasons yet to be comprehended by me :)<br><br></div><div class="gmail_quote">Hope this helps and monikers are good, whats wrong with slap that code with a flying trout eh ? <br><br></div><div class="gmail_quote">Aruna<br></div><div class="gmail_quote"><pre><code><br></code></pre></div><div class="gmail_quote"><br><br></div><div class="gmail_quote"><br><br></div><div class="gmail_quote"><br><br><br><br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
--<br>
CS1<br>
<br>
______________________________<wbr>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.<wbr>org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.<wbr>org/mailman/listinfo/<wbr>kernelnewbies</a><br>
</font></span></blockquote></div><br></div></div>