[OE-core] [PATCH 2/2] kernel: check for empty .config file after merge_config.sh
Flavio Suligoi
f.suligoi at asem.it
Mon Apr 29 13:56:04 UTC 2019
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.
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 243f8d6..895966b 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -331,7 +331,7 @@ do_kernel_configme() {
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> ${meta_dir}/cfg/merge_config_build-errors.log
- if [ $? -ne 0 ]; then
+ if [ $? -ne 0 ] || [ ! -s ${B}/.config ]; then
bbfatal_log "Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}"
fi
--
2.7.4
More information about the Openembedded-core
mailing list