<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">​Hi,</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">

You can skip kernel build by a custom python function. It is supported by bitbake. There is an event called '<b>SkipPackage</b>'</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">

I did this for my custom distro in dylan. You can add this in your linux.bbappend.</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style><div class="gmail_default" style>

<font face="trebuchet ms, sans-serif">python __anonymous () {</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">  Â  import bb, re</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">  Â  nokb = (re.match('<b>insert ur distroname</b>', d.getVar('DISTRO', True)) != None)</font></div>

<div class="gmail_default" style><font face="trebuchet ms, sans-serif">  Â  if nokb:</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">  Â  Â  Â  raise bb.parse.SkipPackage("Skipping Yocto Kernel Build for our %s Distro" %</font></div>

<div class="gmail_default" style><font face="trebuchet ms, sans-serif">  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â d.getVar('DISTRO', True))</font></div></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">

<br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">-JC</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Mon, Jul 21, 2014 at 1:32 PM, Wiktor S. Ovalle Correa <span dir="ltr"><<a href="mailto:w.s.ovalle@gmail.com" target="_blank">w.s.ovalle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div><div><div>Hi everyone.<br><br></div>I didn't find it anywhere - is it possible to only use linux headers without compiling kernel?<br><br></div>My problem is rather unusual - i got to use custom kernel which has been customized long ago in a horrible way by a former co-worker so it's impossible to compile it with yocto in a reasonable time, but i need its headers to compile other parts of a system.<br>


<br></div>And it appears that it might be enough to only disable building kernel modules, if there's a way to do so.<br><br></div>Any suggestions are appreciated,<br>wiktor<br></div>
<br>--<br>
_______________________________________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>JCP
</div>