SoC common : scripts :Add path info after repo manifest if needed. [1/1]
PD#SWPL-180934
Problem:
name and path set to be same in manifest.xml will occur compile error.
Solution:
Set the path info same to name if there is no path from repo manifest.
Verify:
N/A
Change-Id: I4fafd50a64579414f5d0df449a57cfb4dca1abaf
Signed-off-by: xiaohu.huang <xiaohu.huang@amlogic.com>
diff --git a/setup.sh b/setup.sh
index feca078..b418e9d 100755
--- a/setup.sh
+++ b/setup.sh
@@ -60,6 +60,9 @@
echo "Faild to save $RTOS_SDK_MANIFEST_FILE"
exit 1
fi
+ # If the name and path is same in mainfext.xml,cmd repo manifest will ignore path section
+ # and only generate name section cause they are same,so we need add path section with sed
+ sed -i -r '/name=/ { /path=/! s/(name=("[^"]+"))/& path=\2/ }' $RTOS_SDK_MANIFEST_FILE
fi
# Get SDK_VERSION