Fix build.sh
Change-Id: I6f16aa1fcf54a31c874c9791e809cb50b51c6012
diff --git a/build.sh b/build.sh
index 2bf1ed4..a9f520b 100755
--- a/build.sh
+++ b/build.sh
@@ -84,6 +84,31 @@
echo "Build MBTK success."
}
+ln_lib()
+{
+ PWD_TEMP=`pwd`
+
+ cd $ROOTFS_DIR/lib
+ [ ! -f libpoweralarm.so ] && ln -s liblynq_lib.so libpoweralarm.so
+ [ ! -f liblynq-qser-audio.so ] && ln -s liblynq_lib.so liblynq-qser-audio.so
+ [ ! -f liblynq-adc.so ] && ln -s liblynq_lib.so liblynq-adc.so
+ [ ! -f liblynq-fota.so ] && ln -s liblynq_lib.so liblynq-fota.so
+ [ ! -f liblynq-qser-gnss.so ] && ln -s liblynq_lib.so liblynq-qser-gnss.so
+ [ ! -f liblynq-log.so ] && ln -s liblynq_lib.so liblynq-log.so
+ [ ! -f liblynq-led.so ] && ln -s liblynq_lib.so liblynq-led.so
+ [ ! -f liblynq-qser-autosuspend.so ] && ln -s liblynq_lib.so liblynq-qser-autosuspend.so
+ [ ! -f liblynq-systime.so ] && ln -s liblynq_lib.so liblynq-systime.so
+ [ ! -f liblynq-qser-thermal.so ] && ln -s liblynq_lib.so liblynq-qser-thermal.so
+ [ ! -f liblynq-qser-sim.so ] && ln -s liblynq_lib.so liblynq-qser-sim.so
+ [ ! -f liblynq-qser-sms.so ] && ln -s liblynq_lib.so liblynq-qser-sms.so
+ [ ! -f liblynq-qser-voice.so ] && ln -s liblynq_lib.so liblynq-qser-voice.so
+ [ ! -f liblynq-qser-network.so ] && ln -s liblynq_lib.so liblynq-qser-network.so
+ [ ! -f liblynq-qser-data.so ] && ln -s liblynq_lib.so liblynq-qser-data.so
+ [ ! -f liblynq-irq.so ] && ln -s liblynq_lib.so liblynq-irq.so
+
+ cd $PWD_TEMP
+}
+
function file_copy()
{
ROOTFS_DIR=$ROOT_DIR/../asr_code/mbtk/rootfs
@@ -99,6 +124,8 @@
# Copy All SO Files.
cp -f out/lib/* $ROOTFS_DIR/lib
+
+ ln_lib
# Copy All Bin Files.
#cp -f out/bin/* $ROOTFS_DIR/bin