ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/scripts/kconfig-reorder.sh b/scripts/kconfig-reorder.sh
new file mode 100755
index 0000000..9ab7858
--- /dev/null
+++ b/scripts/kconfig-reorder.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# This script reorders all config-* files in the target directory.
+
+find_files=$(find target -type f -name 'config-*' -print)
+
+if [ -n "$find_files" ]; then
+ for file in $find_files; do
+ echo "Reordering options in $file"
+ LANG=C ./scripts/kconfig.pl '+' "$file" /dev/null > "$file"-new
+ mv "$file"-new "$file"
+ done
+else
+ echo "No files named config-* found."
+fi
+