WIP: merge_config sandbox/lstelmach/tizen-visionfive2-6.1
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 3 Feb 2023 10:29:43 +0000 (11:29 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 3 Feb 2023 20:36:07 +0000 (21:36 +0100)
Change-Id: Ie3b238b7e037b03d9855cc711848573ea447b6a0
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
scripts/kconfig/merge_config.sh

index e5b4698..c6fd672 100755 (executable)
@@ -196,9 +196,13 @@ for CFG in $(sed -n -e "$SED_CONFIG_EXP1" -e "$SED_CONFIG_EXP2" $TMP_FILE); do
        REQUESTED_VAL=$(grep -w -e "$CFG" $TMP_FILE)
        ACTUAL_VAL=$(grep -w -e "$CFG" "$KCONFIG_CONFIG" || true)
        if [ "x$REQUESTED_VAL" != "x$ACTUAL_VAL" ] ; then
-               echo "Value requested for $CFG not in final .config"
-               echo "Requested value:  $REQUESTED_VAL"
-               echo "Actual value:     $ACTUAL_VAL"
-               echo ""
+               if [ "x$REQUESTED_VAL" != "x$CFG=n" -o \
+                    \( "x$ACTUAL_VAL" != "x"  -a \
+                       "x$ACTUAL_VAL" != "x# $CFG is not set" \) ]; then
+                       echo "Value requested for $CFG not in final .config"
+                       echo "Requested value:  $REQUESTED_VAL"
+                       echo "Actual value:     $ACTUAL_VAL"
+                       echo ""
+               fi
        fi
 done