Wind River Support Network


LIN6-8604 : CLONE - Missing quotes in if-case in oe-core/meta/classes/kernel-yocto.bbclass

Created: Oct 21, 2014    Updated: Dec 3, 2018
Resolved Date: Oct 22, 2014
Previous ID: LIN5-19589
Found In Version: 6.0
Fix Version:
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Build & Config
Host OS: Linux Ubuntu


Quotes are missing in an if-case in kernel-yocto.bbclass.
It will cause the kernel configuration scripts to use "alldefconfig", instead of "allnoconfig" under some conditions.

For my use-cases the difference actually didn't matter, but I report this anyway as it might effect others.

In oe-core/meta/classes/kernel-yocto.bbclass:
@@ -186,7 +186,7 @@ do_kernel_configme() {
        echo "[INFO] doing kernel configme"
        export KMETA=${KMETA}
-       if [ -n ${KCONFIG_MODE} ]; then
+       if [ -n "${KCONFIG_MODE}" ]; then
                # If a defconfig was passed, use =n as the baseline, which is achieved

Steps to Reproduce


Other Downloads

Live chat