Merge "[feature][T8TSK][MISC]add lynq_get_reboot_reason to sdk"
diff --git a/IC_meta/mtk/2735/lynq-sdk-ready/lynq-sdk-ready.bb b/IC_meta/mtk/2735/lynq-sdk-ready/lynq-sdk-ready.bb
index b6ebaf0..0d6b4c2 100755
--- a/IC_meta/mtk/2735/lynq-sdk-ready/lynq-sdk-ready.bb
+++ b/IC_meta/mtk/2735/lynq-sdk-ready/lynq-sdk-ready.bb
@@ -3,7 +3,7 @@
DESCRIPTION = "lynq sdk ready"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
-DEPENDS += "platform-libs liblynq-sim liblynq-uci"
+DEPENDS += "platform-libs liblynq-sim liblynq-uci liblynq-misc"
inherit workonsrc
WORKONSRC = "${TOPDIR}/../LYNQ_PUBLIC/common_src/framework/lynq-sdk-ready/src"
diff --git a/common_src/framework/lynq-sdk-ready/src/makefile b/common_src/framework/lynq-sdk-ready/src/makefile
index 1030e02..8d433c8 100755
--- a/common_src/framework/lynq-sdk-ready/src/makefile
+++ b/common_src/framework/lynq-sdk-ready/src/makefile
@@ -36,6 +36,7 @@
-lbinder \
-lpthread \
-llynq-uci \
+ -llynq-misc \
LOCAL_SRC_FILES_CPP = $(wildcard *.cpp timer/*.cpp)
LOCAL_SRC_FILES_C = $(wildcard *.c)
diff --git a/common_src/framework/lynq-sdk-ready/src/timer/lynq_timer.cpp b/common_src/framework/lynq-sdk-ready/src/timer/lynq_timer.cpp
index bd377f6..d58c3cf 100755
--- a/common_src/framework/lynq-sdk-ready/src/timer/lynq_timer.cpp
+++ b/common_src/framework/lynq-sdk-ready/src/timer/lynq_timer.cpp
@@ -14,7 +14,7 @@
#include <errno.h>
#include "lynq_timer.h"
#include <include/lynq_uci.h>
-
+#include <lynq_misc/lynq_misc.h>
#include <stdlib.h>
#include <fcntl.h>
#include <assert.h>
@@ -671,7 +671,9 @@
int debug_mode;
int ret;
int ret3;
-
+
+ ret = lynq_get_reboot_reason();
+ RLOGD("lynq_get_reboot_reason ret =%d\n", ret);
ret = pthread_create(&thid, &a, timer_request_imei, NULL);
if(ret != 0){
RLOGD("pthread_create error!!!");