]> code.ossystems Code Review - openembedded-core.git/commitdiff
kern-tools: fix merge_config when LD contains parameters
authorBruce Ashfield <bruce.ashfield@gmail.com>
Fri, 7 Feb 2020 14:52:04 +0000 (09:52 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Feb 2020 13:19:56 +0000 (13:19 +0000)
To ensure that the kernel linker is used when allno/mod/yes config
merge_config steps were executed, the call to make was tweaked to
explicitly pass LD.

But since the variable wasn't quoted, any parameters to LD (like
the sysroot) were mistakenly passed to make, and hence could trigger
an error on some architectures.

We also tweak the logging to hightlight errors like this in the
future and avoid losing it in the noise of merge configs sometimes
overly verbose output.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass
meta/recipes-kernel/kern-tools/kern-tools-native_git.bb

index 918d101d3d7a1c0e8846e4abfb4a639626d6fe05..44863adc27484414b6bef04dfa78fcce39c0458f 100644 (file)
@@ -352,10 +352,14 @@ 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}" LD="${KERNEL_LD}" ARCH=${ARCH} merge_config.sh -O ${B} ${config_flags} ${configs}
-
+       CFLAGS="${CFLAGS} ${TOOLCHAIN_OPTIONS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}" CC="${KERNEL_CC}" LD="${KERNEL_LD}" ARCH=${ARCH} merge_config.sh -O ${B} ${config_flags} ${configs} > ${meta_dir}/cfg/merge_config_build.log 2>&1
        if [ $? -ne 0 -o ! -f ${B}/.config ]; then
-               bbfatal_log "Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}"
+               bberror "Could not generate a .config for ${KMACHINE}-${LINUX_KERNEL_TYPE}"
+               if [ ${KCONF_AUDIT_LEVEL} -gt 1 ]; then
+                       bbfatal_log "`cat ${meta_dir}/cfg/merge_config_build.log`"
+               else
+                       bbfatal_log "Details can be found at: ${S}/${meta_dir}/cfg/merge_config_build.log"
+               fi
        fi
 
        if [ ! -z "${LINUX_VERSION_EXTENSION}" ]; then
index f2634212341f375888699ad0f653ed13f8dad873..4f1af731d6efcf2071f42beb1b9e52c70d116dc2 100644 (file)
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://tools/kgit;beginline=5;endline=9;md5=9c30e971d435e249
 
 DEPENDS = "git-native"
 
-SRCREV = "388b67974deb2176c06994a325676cbf23e5fce8"
+SRCREV = "c66833e1caac25279a5052fceb13213f5e4f79f9"
 PR = "r12"
 PV = "0.2+git${SRCPV}"