Lines Matching +full:a +full:- +full:z0 +full:- +full:9
2 # SPDX-License-Identifier: GPL-2.0
4 # merge_config.sh - Takes a list of config fragment values, and merges
10 # http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-tools/tree/tools/kconf_check
11 # http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-tools/tree/tools/generate_cfg
13 # Copyright (c) 2009-2010 Wind River Systems, Inc.
16 set -e
19 rm -f $TMP_FILE
20 rm -f $MERGE_FILE
25 echo " -h display this help text"
26 echo " -m only merge the fragments, do not execute the make command"
27 echo " -n use allnoconfig instead of alldefconfig"
28 echo " -r list redundant entries when merging fragments"
29 echo " -y make builtin have precedence over modules"
30 echo " -O dir to put generated output files. Consider setting \$KCONFIG_CONFIG instead."
40 CONFIG_PREFIX=${CONFIG_-CONFIG_}
44 "-n")
49 "-m")
54 "-h")
58 "-r")
63 "-y")
68 "-O")
69 if [ -d $2 ];then
84 if [ "$#" -lt 1 ] ; then
89 if [ -z "$KCONFIG_CONFIG" ]; then
91 KCONFIG_CONFIG=$(readlink -m -- "$OUTPUT/.config")
100 if [ ! -r "$INITFILE" ]; then
106 SED_CONFIG_EXP1="s/^\(${CONFIG_PREFIX}[a-zA-Z0-9_]*\)=.*/\1/p"
107 SED_CONFIG_EXP2="s/^#\s*\(${CONFIG_PREFIX}[a-zA-Z0-9_]*\)\s*is\s*not\s*set\r*$/\1/p"
122 if [ ! -r "$ORIG_MERGE_FILE" ]; then
127 CFG_LIST=$(sed -n -e "$SED_CONFIG_EXP1" -e "$SED_CONFIG_EXP2" $MERGE_FILE)
130 grep -q -w $CFG $TMP_FILE || continue
131 PREV_VAL=$(grep -w $CFG $TMP_FILE)
132 NEW_VAL=$(grep -w $CFG $MERGE_FILE)
137 echo -y passed, will not demote y to m
149 sed -i "/$CFG[ =]/d" $TMP_FILE
151 sed -i "/$CFG[ =]/d" $MERGE_FILE
159 cp -T -- "$TMP_FILE" "$KCONFIG_CONFIG"
180 # Check all specified config values took (might have missed-dependency issues)
181 for CFG in $(sed -n -e "$SED_CONFIG_EXP1" -e "$SED_CONFIG_EXP2" $TMP_FILE); do
183 REQUESTED_VAL=$(grep -w -e "$CFG" $TMP_FILE)
184 ACTUAL_VAL=$(grep -w -e "$CFG" "$KCONFIG_CONFIG" || true)