Update mbtk_toolchain
Change-Id: Ic72d113943f2ac549a042cd2badb52c3842acc43
diff --git a/build.sh b/build.sh
index abbec2a..625da97 100755
--- a/build.sh
+++ b/build.sh
@@ -250,6 +250,7 @@
cp -r mbtk/toolchain/linux64/usr/include/* mbtk/toolchain/linux64/include/
cp -drf $DIR_BUILD_TARGET/audio/obj/olibs/* mbtk/toolchain/linux64/usr/lib/
cp -r marvell/services/audio_if/include/* mbtk/toolchain/linux64/include/
+ cp -r mbtk/rootfs/usr/lib/* mbtk/toolchain/linux64/usr/lib/
cp -r marvell/services/ril/include/* mbtk/toolchain/linux64/include/
cp -r marvell/services/audio/include/* mbtk/toolchain/linux64/include/
@@ -423,8 +424,8 @@
echo "Delete unnecessary files..."
# rm -rf $MBTK_TOOLCHAIN_DIR/toolchain/usr
- rm -rf $MBTK_TOOLCHAIN_DIR/toolchain/initial
- rm $MBTK_TOOLCHAIN_DIR/toolchain/include.zip
+ [ -d $MBTK_TOOLCHAIN_DIR/toolchain/initial ] && rm -rf $MBTK_TOOLCHAIN_DIR/toolchain/initial
+ [ -f $MBTK_TOOLCHAIN_DIR/toolchain/include.zip ] && rm $MBTK_TOOLCHAIN_DIR/toolchain/include.zip
echo "Start packaging toolchain..."
tar -zcf mbtk_toolchain.tar.gz mbtk_toolchain/