@@ -31,10 +31,12 @@ usage() {
echo " -h display this help text"
echo " -m only merge the fragments, do not execute the make command"
echo " -n use allnoconfig instead of alldefconfig"
+ echo " -r list redundant entries when merging fragments"
}
MAKE=true
ALLTARGET=alldefconfig
+WARNREDUN=false
while true; do
case $1 in
@@ -52,6 +54,11 @@ while true; do
usage
exit
;;
+ "-r")
+ WARNREDUN=true
+ shift
+ continue
+ ;;
*)
break
;;
@@ -79,6 +86,8 @@ for MERGE_FILE in $MERGE_LIST ; do
echo Previous value: $PREV_VAL
echo New value: $NEW_VAL
echo
+ elif [ "$WARNREDUN" = "true" ]; then
+ echo Value of $CFG is redundant by fragment $MERGE_FILE:
fi
sed -i "/$CFG[ =]/d" $TMP_FILE
fi
Provide a -r option to display when fragments contain redundant options. This is really useful when breaking apart a config into fragments, as well as cleaning up older fragments. v2: Now w/ spelling fixes! Thanks Darren! CC: Michal Marek <mmarek@suse.cz> CC: Bruce.Ashfield@windriver.com CC: Darren Hart <dvhart@linux.intel.com> Signed-off-by: John Stultz <john.stultz@linaro.org> --- scripts/kconfig/merge_config.sh | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)