[OE-core] What is expected of a kernel recipe nowadays?

Mike Looijmans mike.looijmans at topic.nl
Tue Jan 6 07:14:33 UTC 2015


On 01/05/2015 09:18 PM, Bruce Ashfield wrote:
> On Mon, Jan 5, 2015 at 3:29 AM, Mike Looijmans <mike.looijmans at topic.nl> wrote:
>> I think I found it. The kernel bbclass changes "S" to point elsewhere.
>> Moving the statement
>> S = "${WORKDIR}/git"
>> to after the "inherit kernel" line makes the compile run again.
>
>
> Interesting. Can you confirm that Richard's commit:
>
> -----------------
>
> commit 1dd37a2a9960ad26e27567d1871d78bec336e1a2
> Author: Richard Purdie <richard.purdie at linuxfoundation.org>
> Date:   Fri Dec 19 17:46:27 2014 +0000
>
>      kernel: Fix non linux-yocto builds
>
>      After the recent kernel changes, non linux-yocto builds stopped working
>      properly for two reasons:
>
>      a) ${S} was being reset to ${WORKDIR}/git for example and STAGING_KERNEL_DIR
>         did not contain the source
>
>      b) Most builds were using ${B} == ${S}
>
>      This patch adds a fixup to the unpack function to handle the case where
>      ${S} != ${STAGING_KERNEL_DIR} and also set up the infrastrcture so that
>      B != S for kernel builds from now on. The kernel build system is one of the
>      best for supporting this and there is no good reason not to take advantage
>      of it.
>
>      (From OE-Core rev: 106dab2fd0321e6b4e77b40111e59a3a31d329d4)
>
>      Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
>
> ------------
>
> Is in your tree ? it should be fixing things up and allowing the source to
> be found.

Yes, this is the part that changes "S" and it's how I discovered to move the 
assignment to after inheriting it.


> Alternatively, if you drop the explicit set of S, does the build start working
> again ?

If I just remove the S=... line, it fails in the same way. The git fetch 
apparently places the code at WORKDIR/git where the new kernel recipe cannot 
find it.




Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Systems
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax:  (+31) (0) 499 33 69 70
E-mail: mike.looijmans at topic.nl
Website: www.topic.nl

Please consider the environment before printing this e-mail

Topic zoekt gedreven (embedded) software specialisten!
http://topic.nl/vacatures/topic-zoekt-software-engineers/




More information about the Openembedded-core mailing list