setup.sh: amend setup.sh to exclude boot dir [1/1]

PD#SWPL-65905

Problem:
amend setup.sh to exclude boot dir

Solution:
amend setup.sh to exclude boot dir

Verify:
ad401_a113l

Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
Change-Id: I0e0b13f566c1df2e8a186919ee91603bb3133e47
diff --git a/setup.sh b/setup.sh
index 675657b..25b9411 100755
--- a/setup.sh
+++ b/setup.sh
@@ -11,8 +11,8 @@
 
 cmake_file="$PWD/CMakeLists.txt"
 kconfig_file="$PWD/Kconfig"
-build_dir="build"
-exclude_dir="products docs"
+build_dir="build_system"
+exclude_dirs="boot products docs"
 special_dirs="arch soc boards"
 
 RTOS_SDK_MANIFEST_FILE="$kernel_BUILD_DIR/rtos_sdk_manifest.xml"
@@ -84,7 +84,7 @@
 # Figure out the $relative_dir and its column
 pattern="path="
 i=0
-keyline=`grep 'path=".*build_system"' $RTOS_SDK_MANIFEST_FILE`
+keyline=`grep "path=\".*$build_dir\"" $RTOS_SDK_MANIFEST_FILE`
 for keyword in $keyline; do
 	let i++
 	if [[ $keyword == $pattern* ]]; then
@@ -124,10 +124,15 @@
 				category=`dirname $repo_path`
 			fi
 
-			# exclude other ARCH dirs
-			if [[ $repo_path == docs* ]] || [[ $repo_path == products* ]]; then
-				continue
-			fi
+			# exclude some dirs
+			skip_flag=0
+			for exclude_dir in $exclude_dirs; do
+				if [[ $repo_path == $exclude_dir* ]]; then
+					skip_flag=1
+					break
+				fi
+			done
+			[ "$skip_flag" -eq 1 ] && continue
 
 			# substitute ARCH dirs with viarable
 			case $special_dirs in