All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] merge_config.sh: Add option to display redundant configs
@ 2012-03-23 19:52 John Stultz
  2012-03-23 20:24 ` Darren Hart
  2012-03-30 13:14 ` Michal Marek
  0 siblings, 2 replies; 7+ messages in thread
From: John Stultz @ 2012-03-23 19:52 UTC (permalink / raw)
  To: linux-kbuild; +Cc: John Stultz, Michal Marek, Bruce.Ashfield, Darren Hart

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(-)

diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh
index ceadf0e..ad8c76e 100755
--- a/scripts/kconfig/merge_config.sh
+++ b/scripts/kconfig/merge_config.sh
@@ -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
-- 
1.7.3.2.146.gca209


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH 0/2] merge_config.sh updates for 3.4?
@ 2012-03-22 22:05 John Stultz
  2012-03-22 22:05 ` [PATCH 2/2] merge_config.sh: Add option to display redundant configs John Stultz
  0 siblings, 1 reply; 7+ messages in thread
From: John Stultz @ 2012-03-22 22:05 UTC (permalink / raw)
  To: linux-kbuild; +Cc: John Stultz, Michal Marek, Bruce.Ashfield, Darren Hart

Hey Michal,
	Just wanted to send you a few small updates
for the merge_config.sh script.

Let me know if these look ok for 3.4, or if you'd like to
defer them for later.

thanks
-john


CC: Michal Marek <mmarek@suse.cz>
CC: Bruce.Ashfield@windriver.com
CC: Darren Hart <dvhart@linux.intel.com>

John Stultz (2):
  merge_config.sh: Set execute bit
  merge_config.sh: Add option to display redundant configs

 scripts/kconfig/merge_config.sh |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 scripts/kconfig/merge_config.sh

-- 
1.7.3.2.146.gca209


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-30 22:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-23 19:52 [PATCH 2/2] merge_config.sh: Add option to display redundant configs John Stultz
2012-03-23 20:24 ` Darren Hart
2012-03-30 13:14 ` Michal Marek
  -- strict thread matches above, loose matches on Subject: below --
2012-03-22 22:05 [PATCH 0/2] merge_config.sh updates for 3.4? John Stultz
2012-03-22 22:05 ` [PATCH 2/2] merge_config.sh: Add option to display redundant configs John Stultz
2012-03-23  3:45   ` Darren Hart
2012-03-23 19:52     ` John Stultz
2012-03-23 13:02   ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.