RDK: fix bl30 compiling error on openlinux [1/1]
PD#SWPL-93533
Problem:
- rtos compling will read repo manifest, but RDK openlinux
manifest doesn't contain rtos items, so just check if
manifest existing is not enough, and need checking if
manifest contain rtos items
Solution:
- check if manifest contain rtos items, if not, use rtos
internal manifest
Verify:
- check bl30 compiling on RDK openlinux
Signed-off-by: Xueling Li <xueling.li@amlogic.com>
Change-Id: I1e7eb28813999c163755f37bea0e662353250afe
diff --git a/setup.sh b/setup.sh
index f5719bb..7c46dd5 100755
--- a/setup.sh
+++ b/setup.sh
@@ -31,8 +31,8 @@
echo "#define CONFIG_PRODUCT_NAME \"$PRODUCT\"" >> $RTOS_SDK_VERSION_FILE
echo "#define CONFIG_COMPILE_TIME \"$COMPILE_TIME\"" >> $RTOS_SDK_VERSION_FILE
-# Check whether the project is a repo
-repo manifest >/dev/null 2>&1
+# Check whether the project is a valid repo
+repo manifest 2>&1 | grep -q $build_dir
if [ "$?" -ne 0 ]; then
echo "Non-repo source code"
if [ -f $DEFAULT_RTOS_SDK_MANIFEST ]; then