[yocto] Custom defconfig is not used

Andrea Adami andrea.adami at gmail.com
Thu Oct 17 06:51:35 PDT 2013


On Thu, Oct 17, 2013 at 3:19 PM, Bruce Ashfield
<bruce.ashfield at windriver.com> wrote:
> On 13-10-17 09:15 AM, Diego Sueiro wrote:
>>
>>
>> 2013/10/17 Bruce Ashfield <bruce.ashfield at windriver.com
>> <mailto:bruce.ashfield at windriver.com>>
>>
>>
>>
>>
>>         I expected to get this working "out-of-box".
>>
>>
>>     Did you do a  "bitbake -e <your kernel recipe>" ? and then look at
>>     the SRC_URI ? That will tell us if for some reason the beagle layer's
>>     defconfig is on there twice.
>>
>> I'll do it after my current build gets finished.
>>
>>
>>
>>         Why config fragments did not worked too?
>>
>>
>>     recipes must inherit linux-yocto to get that support, since it is
>>     optional and not something we force on all kernel recipes. So if you
>>     want fragment support, creating your own kernel recipe, based on the
>>     one in the layers you are using, which inherits linux-yocto is one
>>     route to take.
>>
>> Can I do it on bbappend, or do I need to copy the entirely
>> linux-mainline_3.8.bb <http://linux-mainline_3.8.bb> from
>>
>> meta-bleagleboard to my layer and add "inherit linux-yocto"?
>> Do I need to "inherit linux-yocto", "require
>> recipes-kernel/linux/linux-yocto.inc" or "inherit kernel-yocto"?
>
>
> Look at oe-core/meta-skeleton for the custom kernel recipe example.
> It has the inherit/include combinations that you need to follow.
>
>
>> My concern is: if doing this to just have the config fragment feature,
>> I'll possibly mess up the kernel build.
>
>
> It shouldn't. It only adds to existing phases, and doesn't make
> any changes. I've tested it in many combinations and it should
> work fine.
>
> If something breaks, I'd like to know, so we can fix it.
>
> Bruce
>
>
>>
>>
>> Regards,
>>
>> --
>> *dS
>> Diego Sueiro
>>
>> /*long live rock 'n roll*/
>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

As a final note, the defconfig is overwritten by the
do_configure_prepend() code in linux.inc.
This is how kernel recipes did work before linux-yocto.

Cheers

Andrea



More information about the yocto mailing list