<div dir="ltr"><div>Marov,</div><div><br></div><div>You can add it however you want in that Makefile, it just needs to end up on the <span style="font-family:monospace">obj-y</span> list so that the kernel will build it. Appending a line with <span style="font-family:monospace">obj-y += sched_demo.o</span> at the end of the file would probably be the best way to do it. Take a look at the Linux Kbuild system documentation for information on what's going on here (<a href="https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt">https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt</a>); specifically see section 3.1.<br></div><div><br></div><div>- Joshua<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 31, 2020 at 8:57 AM mg1 <<a href="mailto:adamagaghz@gmail.com">adamagaghz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_-4078336415163658308WordSection1"><p class="MsoNormal">Hello everyone. I am new trainer on Litmus-rt and now I am learning how to create new scheduler plugin, but the step 1 says : “After adding the new source file, add <code><span style="font-size:10pt">sched_demo.o</span></code> to the <code><span style="font-size:10pt">obj-y</span></code> list in the <code><span style="font-size:10pt">litmus</span></code> directory’s <code><span style="font-size:10pt">Makefile</span></code>.”. what I want to understand that, will I add “sched_demo.o” inside the “Makefile” file in litmus-rt?. When I entered to “Makefile”, I found something say like this” “Objects to be linked ….. bla bla” and it has a list of some objects ended with “-y” ,so do you mean that I should to add “sched_demo.o” here?<u></u><u></u></p><p class="MsoNormal">Please excuse me, it seems I will ask you a lot in this stage.<u></u><u></u></p><p class="MsoNormal">Thanks a lot. </p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p><p class="MsoNormal"><u></u> <u></u></p></div></div>
_______________________________________________<br>
litmus-dev mailing list<br>
<a href="mailto:litmus-dev@lists.litmus-rt.org" target="_blank">litmus-dev@lists.litmus-rt.org</a><br>
<a href="https://lists.litmus-rt.org/listinfo/litmus-dev" rel="noreferrer" target="_blank">https://lists.litmus-rt.org/listinfo/litmus-dev</a><br>
</blockquote></div>