If do_configure failed, output content of config.log to configure log, it is helpful to trace the do_configure failure on the build system which is hard to login. (such as autobuilder)
Add a knob OUTPUT_CONFIG_LOG to control config.log output Signed-off-by: Hongxu Jia <hongxu....@windriver.com> --- meta/classes/autotools.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 8768a6a..5fc9d0a 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass @@ -82,6 +82,7 @@ CONFIGURE_SCRIPT ?= "${AUTOTOOLS_SCRIPT_PATH}/configure" AUTOTOOLS_AUXDIR ?= "${AUTOTOOLS_SCRIPT_PATH}" +OUTPUT_CONFIG_LOG ??= "" oe_runconf () { # Use relative path to avoid buildpaths in files cfgscript_name="`basename ${CONFIGURE_SCRIPT}`" @@ -90,7 +91,11 @@ oe_runconf () { bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" if ! ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"; then bbnote "The following config.log files may provide further information." - bbnote `find ${B} -ignore_readdir_race -type f -name config.log` + config_log="`find ${B} -ignore_readdir_race -type f -name config.log`" + bbnote "$config_log" + [ -n "${OUTPUT_CONFIG_LOG}" ] && [ -e "$config_log" ] && while read line; do + bbnote "$line" + done <"$config_log" bbfatal_log "configure failed" fi else -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core