<div>Thanks for the answer!</div><div>š</div><div>Yes, of course I can.</div><div>It contains only one line:</div><div>š</div><div><em>obj-$(CONFIG_MY_PROCLISTOUTPUT) += proclistoutput.o</em></div><div>š</div><div>and works with my Kconfig</div><div>š</div><div><em>config MY_PROCLISTOUTPUT</em></div><div><em>šššštristate "Display a list of processes"</em></div><div><em>ššššdefault y</em></div><div><em>šššš---help---</em></div><div><em>ššššThis module prints a list of processes</em></div><div>š</div><div>š</div><div>But I'm sure that the reason is not in my file, because:</div><div>- If I put my code in a folder /drivers (and include my Makefile and Kconfig) then everything works perfectly (I can build kernel object and I can built-in my code to the kernel)</div><div>- If I put my code in a folder /samples (and include my Makefile and Kconfig) then I can't build-in the code, but with .ko it works fine...</div><div>I suppose that the reason is in the kernel Makefile. The root Makefile contains this code (http://lxr.free-electrons.com/source/Makefile#L914)</div><div>š</div><div><em>ifdef CONFIG_SAMPLES</em></div><div><em>šššššššš$(Q)$(MAKE) $(build)=samples</em></div><div><em>endif</em></div><div>š</div><div>where</div><div>$(Q) = @</div><div>$(build) = -f scripts/Makefile.build obj</div><div>š</div><div>and further I lose understanding of the events...</div><div>š</div><div>10.04.2012, 08:26, "Vladimir Murzin" &lt;murzin.v@gmail.com&gt;:</div><div>š</div><div>&gt; šHi Semen</div><div>&gt;</div><div>&gt; šCould you share a Makefile for your module?</div><div>&gt;</div><div>&gt; šBest wishes,</div><div>&gt; šVladimir Murzin</div><div>&gt;</div><div>&gt; š-----Original Message-----</div><div>&gt; šFrom: Martynov Semen &lt;semen-martynov@yandex.ru&gt;</div><div>&gt; šSender: kernelnewbies-bounces@kernelnewbies.org</div><div>&gt; šDate: Mon, 09 Apr 2012 23:56:15</div><div>&gt; šTo: kernelnewbies@kernelnewbies.org&lt;kernelnewbies@kernelnewbies.org&gt;</div><div>&gt; šSubject: No subject</div><div>&gt;</div><div>&gt; šGood afternoon,</div><div>&gt;</div><div>&gt; šI would like to understand, why I can't make the built-in object, when my code is in a folder /samples...</div><div>&gt;</div><div>&gt; šI have my module-code and if I put it in a folder /samples, I can receive only loadable module (.ko) but if I want to receive the built-in object - it turns out nothing (.Ï-file is created, but my code doesn't get in a kernel). When I allocate my module-code in any other folder (for example, /drivers) it works normally - I can receive .ko and I can make the built-in object.</div><div>&gt;</div><div>&gt; šQuestion - why I can't receive the built-in object when my code is in the folder /samples? What instruction in a make-file restricts it, and how?</div><div>&gt;</div><div>&gt; šP.S.: Sorry for my english.</div><div>&gt;</div><div>&gt; š--</div><div>&gt; šBest regards,</div><div>&gt; šSemen A Martynov.</div><div>&gt;</div><div>&gt; šSaint Petersburg, Russia.</div><div>&gt; šhttps://www.facebook.com/semen.martynov</div><div>&gt;</div><div>&gt; š_______________________________________________</div><div>&gt; šKernelnewbies mailing list</div><div>&gt; šKernelnewbies@kernelnewbies.org</div><div>&gt; šhttp://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</div><div>--</div><div>š</div><div>š</div><div>ñ ÎÁ Facebook: http://www.facebook.com/profile.php?id=1095131825</div>