Lines Matching +full:a +full:- +full:za +full:- +full:z0 +full:- +full:9 +full:-

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."
31 echo " -s strict mode. Fail if the fragment redefines any value."
42 CONFIG_PREFIX=${CONFIG_-CONFIG_}
46 "-n")
51 "-m")
56 "-h")
60 "-r")
65 "-y")
70 "-O")
71 if [ -d $2 ];then
80 "-s")
91 if [ "$#" -lt 1 ] ; then
96 if [ -z "$KCONFIG_CONFIG" ]; then
98 KCONFIG_CONFIG=$(readlink -m -- "$OUTPUT/.config")
107 if [ ! -r "$INITFILE" ]; then
113 SED_CONFIG_EXP1="s/^\(${CONFIG_PREFIX}[a-zA-Z0-9_]*\)=.*/\1/p"
114 SED_CONFIG_EXP2="s/^# \(${CONFIG_PREFIX}[a-zA-Z0-9_]*\) is not set$/\1/p"
128 if [ ! -r "$ORIG_MERGE_FILE" ]; then
133 CFG_LIST=$(sed -n -e "$SED_CONFIG_EXP1" -e "$SED_CONFIG_EXP2" $MERGE_FILE)
136 grep -q -w $CFG $TMP_FILE || continue
137 PREV_VAL=$(grep -w $CFG $TMP_FILE)
138 NEW_VAL=$(grep -w $CFG $MERGE_FILE)
143 echo -y passed, will not demote y to m
158 sed -i "/$CFG[ =]/d" $TMP_FILE
160 sed -i "/$CFG[ =]/d" $MERGE_FILE
167 echo "The fragment redefined a value and strict mode had been passed."
172 cp -T -- "$TMP_FILE" "$KCONFIG_CONFIG"
193 # Check all specified config values took (might have missed-dependency issues)
194 for CFG in $(sed -n -e "$SED_CONFIG_EXP1" -e "$SED_CONFIG_EXP2" $TMP_FILE); do
196 REQUESTED_VAL=$(grep -w -e "$CFG" $TMP_FILE)
197 ACTUAL_VAL=$(grep -w -e "$CFG" "$KCONFIG_CONFIG" || true)