兼容工厂版本
Change-Id: I0efefb89872e027509f214347764be4fdeaf7128
diff --git a/build.sh b/build.sh
index ea89bb7..626e6f8 100755
--- a/build.sh
+++ b/build.sh
@@ -103,6 +103,24 @@
[ -f mbtk/aboot-tiny/files/config/jacana_pvt.bin ] && cp -f mbtk/aboot-tiny/files/config/jacana_pvt.bin $1/etc
}
+function copy_factory_files()
+{
+ # Copy All SO Files.
+# cp -f mbtk/libmbtk_lib/wifi/libs out/lib
+ cp -f out/lib/* $1/lib
+
+ # Copy All Bin Files.
+ #cp -f out/bin/* $1/bin
+ [ -f out/bin/at ] && cp -f out/bin/at $1/bin
+ [ -f out/bin/device_info_generate ] && cp -f out/bin/device_info_generate $1/..
+ [ -f out/bin/mbtk_gnssd ] && cp -f out/bin/mbtk_gnssd $1/bin
+ [ -f out/bin/aboot-tiny ] && cp -f out/bin/aboot-tiny $1/bin
+
+ # Copy GNSS(5311) bin files.
+ [ -f mbtk/aboot-tiny/files/release/jacana_fw.bin ] && cp -f mbtk/aboot-tiny/files/release/jacana_fw.bin $1/etc
+ [ -f mbtk/aboot-tiny/files/config/jacana_pvt.bin ] && cp -f mbtk/aboot-tiny/files/config/jacana_pvt.bin $1/etc
+}
+
function file_copy()
{
ROOTFS_DIR=$ROOT_DIR/../asr_code/mbtk/rootfs
@@ -116,7 +134,7 @@
mkdir $ROOTFS_DIR/lib
fi
- copy_bin_and_lib $ROOTFS_DIR
+ copy_factory_files $ROOTFS_DIR
else
echo "No found rootfs : $ROOTFS_DIR"
fi