Wind River Support Network

HomeDefectsLIN5-4717
Fixed

LIN5-4717 : Missing quotes in if-case in oe-core/meta/classes/kernel-yocto.bbclass

Created: Aug 15, 2013    Updated: Dec 19, 2017
Resolved Date: Oct 22, 2014
Found In Version: 5.0.1
Fix Version: 5.0.1.20
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Build & Config
Host OS: Linux Ubuntu

Description

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
                configmeflags=${KCONFIG_MODE}
        else
                # If a defconfig was passed, use =n as the baseline, which is achieved
----

Steps to Reproduce

-

Other Downloads


Live chat
Online