[OE-core] [PATCH 1/2] kernel: redirect merge_config.sh error output to file
Bruce Ashfield
bruce.ashfield at gmail.com
Mon Apr 29 14:16:45 UTC 2019
On Mon, Apr 29, 2019 at 10:01 AM Flavio Suligoi <f.suligoi at asem.it> wrote:
> In the task:
>
> do_kernel_configme
>
> the errors during execution of the "merge_config.sh" script are
> currently lost.
> But these errors are very useful for debugging, when there are
> problems during the kernel configuration fragments assembly.
>
> This is the reason to save also the error log, in addition to the
> existing log.
>
Errors are picked up in a separate task. What errors were you triggering
that the existing audit wasn't seeing ?
Bruce
>
> Signed-off-by: Flavio Suligoi <f.suligoi at asem.it>
> ---
> meta/classes/kernel-yocto.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/kernel-yocto.bbclass
> b/meta/classes/kernel-yocto.bbclass
> index ed9bcfa..243f8d6 100644
> --- a/meta/classes/kernel-yocto.bbclass
> +++ b/meta/classes/kernel-yocto.bbclass
> @@ -330,7 +330,7 @@ do_kernel_configme() {
> bbfatal_log "Could not find configuration queue
> (${meta_dir}/config.queue)"
> fi
>
> - CFLAGS="${CFLAGS} ${TOOLCHAIN_OPTIONS}" HOSTCC="${BUILD_CC}
> ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}" CC="${KERNEL_CC}"
> ARCH=${ARCH} merge_config.sh -O ${B} ${config_flags} ${configs} >
> ${meta_dir}/cfg/merge_config_build.log 2>&1
> + CFLAGS="${CFLAGS} ${TOOLCHAIN_OPTIONS}" HOSTCC="${BUILD_CC}
> ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}" CC="${KERNEL_CC}"
> ARCH=${ARCH} merge_config.sh -O ${B} ${config_flags} ${configs} >
> ${meta_dir}/cfg/merge_config_build.log 2>
> ${meta_dir}/cfg/merge_config_build-errors.log
> if [ $? -ne 0 ]; then
> bbfatal_log "Could not configure
> ${KMACHINE}-${LINUX_KERNEL_TYPE}"
> fi
> --
> 2.7.4
>
> --
> _______________________________________________
> 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
- "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/2cc118c1/attachment-0001.html>
More information about the Openembedded-core
mailing list