Add mbtk_reboot
Change-Id: I16682b505016b15c9f69819bd100da7e7fd75ae4
diff --git a/build.sh b/build.sh
index 8375db0..2bf1ed4 100755
--- a/build.sh
+++ b/build.sh
@@ -86,7 +86,7 @@
function file_copy()
{
- ROOTFS_DIR=$ROOT_DIR/../asr_code/mbtk
+ ROOTFS_DIR=$ROOT_DIR/../asr_code/mbtk/rootfs
if [ -d $ROOTFS_DIR ];then
echo "Copy MBTK out files..."
@@ -107,11 +107,12 @@
[ -f out/bin/mbtk_logd ] && cp -f out/bin/mbtk_logd $ROOTFS_DIR/bin
[ -f out/bin/mbtk_adbd ] && cp -f out/bin/mbtk_adbd $ROOTFS_DIR/bin
[ -f out/bin/mbtk_mdio ] && cp -f out/bin/mbtk_mdio $ROOTFS_DIR/bin
- [ -f out/bin/device_info_generate ] && cp -f out/bin/device_info_generate $ROOTFS_DIR
- [ -f out/bin/ota_update ] && cp -f out/bin/ota_update $ROOTFS_DIR
+ [ -f out/bin/device_info_generate ] && cp -f out/bin/device_info_generate $ROOTFS_DIR/..
+ [ -f out/bin/ota_update ] && cp -f out/bin/ota_update $ROOTFS_DIR/..
[ -f out/bin/device_info ] && cp -f out/bin/device_info $ROOTFS_DIR/bin
[ -f out/bin/mtd_info ] && cp -f out/bin/mtd_info $ROOTFS_DIR/bin
[ -f out/bin/mbtk_sdk_ready ] && cp -f out/bin/mbtk_sdk_ready $ROOTFS_DIR/bin
+ [ -f out/bin/mbtk_reboot ] && cp -f out/bin/mbtk_reboot $ROOTFS_DIR/bin
else
echo "No found rootfs : $ROOTFS_DIR"
fi