setup.sh: check whether the project is a repo [1/1]

PD#SWPL-65905

Problem:
check whether the project is a repo

Solution:
check whether the project is a repo

Verify:
ad401_a113l

Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
Change-Id: I74f29f38669857a32b3b4b07b603843ea3661930
diff --git a/setup.sh b/setup.sh
index aa97d7f..8990934 100755
--- a/setup.sh
+++ b/setup.sh
@@ -13,6 +13,10 @@
 RTOS_SDK_MANIFEST_FILE="$kernel_BUILD_DIR/rtos_sdk_manifest.xml"
 STAMP="$kernel_BUILD_DIR/.stamp"
 
+# Check whether the project is a repo
+repo manifest >/dev/null 2>&1
+[ "$?" -ne 0 ] && exit 0
+
 if [ -s $RTOS_SDK_MANIFEST_FILE ] && [ -s $kconfig_file ] && [ $kconfig_file -ot $STAMP ]; then
 	exit 0
 fi