[yocto] Question: Yocto 1.7.1 kernel config defconfig will not be used?

Chung-Yeh Wang chungyehwang at gmail.com
Mon Mar 9 19:02:39 PDT 2015


Thanks for the information, Bruce.

I removed all kernel configuration fragments from the bb file but
difference between defconfig and .config is huge. I may do something wrong
and will study more.

Chungyeh

2015-03-09 21:02 GMT+08:00 Bruce Ashfield <bruce.ashfield at windriver.com>:

> On 15-03-09 04:36 AM, Chung-Yeh Wang wrote:
>
>> Hi List,
>>
>> I am using Yocto 1.7.1 to build linux-mainline. I found defconfig will
>> not be used when using linux-yocto-custom.bb
>> <http://linux-yocto-custom.bb/> (maybe also happens on linux-yocto).
>>
>> I think below is the reason,
>>
>> 1. kernel_do_configure is run after do_kernel_configme.The last line of
>> do_kernel_configme is echo
>> "CONFIG_LOCALVERSION="\"${LINUX_VERSION_EXTENSION}\" >> ${B}/.config
>>
>> 2. Following are the code to use defconfig,
>>
>
> The linux-yocto kernel_configme task takes the defconfig into account,
> and uses it along with kernel configuration fragment processing.
>
> The skipping of the blind defconfig copy is completely intentional.
>
> Cheers,
>
> Bruce
>
>
>
>> # Copy defconfig to .config if .config does not exist. This allows
>> # recipes to manage the .config themselves in do_configure_prepend().
>> if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then
>> cp "${WORKDIR}/defconfig" "${B}/.config"
>>
>> The condition '[ ! -f "${B}/.config"]' will not be true, so
>> recepe-kernel/linux/linux-yocto-custom/defconfig will nerver be used.
>>
>>
>> To use defconfig is one of the method suggested in Kernel developer
>> manual.
>>
>> Thanks and Regards,
>> Chungyeh
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150310/b832f398/attachment.html>


More information about the yocto mailing list