Discussion:
[meta-arago] [tisdk-build-scripts] [PATCH] package-sdks: patching setup.sh to update SDK_PATH for Android
Hongmei Gou
2018-11-20 22:47:28 UTC
Permalink
Signed-off-by: Hongmei Gou <***@ti.com>
---
lib/oesdk/package-sdks | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/lib/oesdk/package-sdks b/lib/oesdk/package-sdks
index 2316d40..809d367 100644
--- a/lib/oesdk/package-sdks
+++ b/lib/oesdk/package-sdks
@@ -313,6 +313,12 @@ package_web_content() {
return 1
fi

+ # modify setup.sh to get the absolute path when running the scripts,
+ # similar to the patching for setup-target-nfs.sh above
+ sed -i -e '/^SDK_PATH=/d' $tmp_dir/setup.sh
+ sed -i -e '/# Use minicom to enter fastboot/i\PWD=`pwd`\nEXE=`echo $0 | sed s=$PWD==`\nEXEPATH="$PWD"/"$EXE"\nSDK_PATH=`echo $EXEPATH | grep -o '.*ti-sdk.*.[0-9]'`\n' $tmp_dir/setup.sh
+ sed -i -e "s|ti-sdk.*\[0-9\]|${tmp_dir##*/}|g" $tmp_dir/setup.sh
+
cd $exports_root
tar cJf $m-sdk-bin-$TISDK_VERSION.tar.xz ${INSTALLER_PREFIX}-$m-bin-${TISDK_VERSION}/*
if [ "$?" != 0 ]
--
1.9.1
Loading...