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

Bruce Ashfield bruce.ashfield at gmail.com
Mon Jan 5 20:18:39 UTC 2015


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.

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

Bruce

>
>
>
>
> On 01/05/2015 09:03 AM, Mike Looijmans wrote:
>>
>> I updated to the current master of OE-core, but I can't get the kernel
>> recipe
>> to work any longer:
>>
>> https://github.com/topic-embedded-products/meta-topic/blob/master/recipes-kernel/linux-zynq/linux-topic.bb
>>
>>
>> (I got similar problems in other projects too, I'm focussing on this one
>> first.)
>>
>> Several things were changed in kernel.bbclass, but I don't understand what
>> is
>> being expected from me now to get the kernel recipe in working order
>> again.
>>
>>
>> | DEBUG: Executing python function sysroot_cleansstate
>> | DEBUG: Python function sysroot_cleansstate finished
>> | DEBUG: Executing shell function do_configure
>> | NOTE: make -C
>>
>> /home/mike/zynq_platform/build/tmp-glibc/sysroots/topic-miami-vice-xc7z015/usr/src/kernel
>>
>> O=/home/mike/zynq_platform/build/tmp-glibc/work/topic_miami_vice-oe-linux-gnueabi/linux-topic/3.17+gitAUTOINC+0feb6e4839-r0/build
>> oldnoconfig
>> | make: Entering directory
>>
>> `/home/mike/zynq_platform/build/tmp-glibc/sysroots/topic-miami-vice-xc7z015/usr/src/kernel'
>>
>> | make: *** No rule to make target `oldnoconfig'.  Stop.
>> | make: Leaving directory
>>
>> `/home/mike/zynq_platform/build/tmp-glibc/sysroots/topic-miami-vice-xc7z015/usr/src/kernel'
>>
>> | NOTE: make -C
>>
>> /home/mike/zynq_platform/build/tmp-glibc/sysroots/topic-miami-vice-xc7z015/usr/src/kernel
>>
>> O=/home/mike/zynq_platform/build/tmp-glibc/work/topic_miami_vice-oe-linux-gnueabi/linux-topic/3.17+gitAUTOINC+0feb6e4839-r0/build
>> oldconfig
>>
>>
>>
>> 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/
>>
>
>
>
> 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/
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"



More information about the Openembedded-core mailing list