[OE-core] [PATCH 2/2] kernel: check for empty .config file after merge_config.sh

Bruce Ashfield bruce.ashfield at gmail.com
Mon Apr 29 15:37:41 UTC 2019


On Mon, Apr 29, 2019 at 11:02 AM Flavio Suligoi <f.suligoi at asem.it> wrote:

> Hi Bruce,
>
> > Sometimes, for example in case of missed dependecies, after the
> > execution of:
> >
> > merge_config.sh
> >
> > the resulting file ".config" can be empty.
> > This is the reason why is necessary test it and, in case, display
> > the "Could not configure ..." error message.
> >
> > This doesn't belong here. Auditing of the final .config is done in a
> separate task, and we could pickup that issue there.
> >
> > That being said, there are already checks for inputs that could result
> in something like this. How were you triggering this issue ? I'd like to
> reproduce it here, and perhaps come up with a different solution.
> >
> > Bruce
>
> I encountered this problem of the empty .config when I integrated
> the kernel 4.19 in my custom meta-layer based on a poky "rocko" (2.4)
> version.
>
> The kernel 4.19 requires the following dependencies in the kernel recipe:
>
> do_kernel_configme[depends] +=
> "virtual/${TARGET_PREFIX}binutils:do_populate_sysroot"
> do_kernel_configme[depends] +=
> "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot"
> do_kernel_configme[depends] += "bc-native:do_populate_sysroot
> bison-native:do_populate_sysroot"
>
> (in the thud version of poky these dependencies are already integrated in
> the
> kernel-yocto.bbclass, but not in rocko)
>
> Without these dependencies the merge_config.sh fails without any error
> messages,
> the distro build process proceeds, but the built kernel is completely wrong
> (no modules and only default config).
>
>
Thanks for the info. I'll poke around a bit, and either queue these
directly or do something
similar in the kconfig audit step.

Cheers,

Bruce



> For this reason I added the additional error log:
>
> ${meta_dir}/cfg/merge_config_build-errors.log
>
> and the check for the empty .config
>
> Flavio
>
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190429/6ec02823/attachment.html>


More information about the Openembedded-core mailing list