setup.sh: exclude docs dir [1/1]

PD#SWPL-65905

Problem:
exclude docs dir

Solution:
exclude docs dir

Verify:
ad401_a113l

Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
Change-Id: I5577429c6d23ac9f784b5fd20e4bb8e87eac0596
diff --git a/setup.sh b/setup.sh
index cc55c01..df4b0f0 100755
--- a/setup.sh
+++ b/setup.sh
@@ -7,7 +7,7 @@
 cmake_file="$PWD/CMakeLists.txt"
 kconfig_file="$PWD/Kconfig"
 build_dir="build"
-exclude_dir="products"
+exclude_dir="products docs"
 special_dirs="arch soc boards"
 
 RTOS_SDK_MANIFEST_FILE="$kernel_BUILD_DIR/rtos_sdk_manifest.xml"
@@ -82,11 +82,12 @@
 				category=`dirname $repo_path`
 			fi
 
-			if [[ $repo_path == $exclude_dir/* ]]; then
+			# exclude other ARCH dirs
+			if [[ $repo_path == docs* ]] || [[ $repo_path == products* ]]; then
 				continue
 			fi
 
-			# exclude other ARCH dirs
+			# substitute ARCH dirs with viarable
 			case $special_dirs in
 				*"$category"*) arch=`basename $repo_path`
 					       if [ "$arch" == "$ARCH" ]; then