[Feature][T106][RTC] Open the serial port log output of the RTC interface for zxic
Only Configure :No
Affected branch:master
Affected module:rtc
Is it affected on both ZXIC and MTK:only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I307fdd830e58add9e8f101411bce21fbfd3d68e5
diff --git a/cap/zx297520v3/sources/meta-zxic-custom/recipes-lynq/libpoweralarm/libpoweralarm.bb b/cap/zx297520v3/sources/meta-zxic-custom/recipes-lynq/libpoweralarm/libpoweralarm.bb
index aeecf6e..c709cf9 100755
--- a/cap/zx297520v3/sources/meta-zxic-custom/recipes-lynq/libpoweralarm/libpoweralarm.bb
+++ b/cap/zx297520v3/sources/meta-zxic-custom/recipes-lynq/libpoweralarm/libpoweralarm.bb
@@ -4,7 +4,7 @@
#LICENSE = "Mobiletek""
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d759532d295a4ec07250edf931caef80"
-DEPENDS += "bootchart liblynq-log libsctel libscrtc"
+DEPENDS += "bootchart liblynq-log libsctel libscrtc libsoftap"
#inherit workonsrc
WORKONSRC = "${TOPDIR}/../src/lynq/lib/libpoweralarm/"
diff --git a/cap/zx297520v3/src/lynq/lib/libpoweralarm/libpoweralarm.cpp b/cap/zx297520v3/src/lynq/lib/libpoweralarm/libpoweralarm.cpp
index af24cd9..8c91c57 100755
--- a/cap/zx297520v3/src/lynq/lib/libpoweralarm/libpoweralarm.cpp
+++ b/cap/zx297520v3/src/lynq/lib/libpoweralarm/libpoweralarm.cpp
@@ -48,6 +48,7 @@
extern int sc_rtc_add_poweroff_alarm(int srcid, int alarm_modid, int rtc_id, struct tm *utc_sec, sc_rtc_timer_exp_cb rtc_notify);
*/
+extern void loglevel_init(void);
/*****************************************
* @brief:lynq_rtc_service_init
@@ -64,7 +65,7 @@
LYLOGSET(LOG_INFO);
LYLOGEINIT(USER_LOG_TAG);
-
+ loglevel_init();
src_id = sc_rtc_timer_init();
if (src_id <= 0)
{
diff --git a/cap/zx297520v3/src/lynq/lib/libpoweralarm/makefile b/cap/zx297520v3/src/lynq/lib/libpoweralarm/makefile
index 309f928..a28c9bb 100755
--- a/cap/zx297520v3/src/lynq/lib/libpoweralarm/makefile
+++ b/cap/zx297520v3/src/lynq/lib/libpoweralarm/makefile
@@ -37,7 +37,7 @@
-llynq-log \
-lsctel \
-lscrtc \
-
+ -lsoftap \
SOURCES = $(wildcard *.cpp)