提交 f17b102a 编写于 作者: L lanxueyuan 提交者: Gitee

add OHOS_LITE

上级 b43f461a
......@@ -28,8 +28,10 @@
#include "init_service_manager.h"
#include "securec.h"
#ifndef __LINUX__
#ifdef OHOS_LITE
#include "init_stage.h"
#endif
#endif
static const long MAX_JSON_FILE_LEN = 102400; // max init.cfg size 100KB
static const int MAX_PATH_ARGS_CNT = 20; // max path and args count
......@@ -353,19 +355,25 @@ void InitReadCfg()
// do jobs
DoJob("pre-init");
#ifndef __LINUX__
#ifdef OHOS_LITE
TriggerStage(EVENT1, EVENT1_WAITTIME, QS_STAGE1);
#endif
#endif
DoJob("init");
#ifndef __LINUX__
#ifdef OHOS_LITE
TriggerStage(EVENT2, EVENT2_WAITTIME, QS_STAGE2);
#endif
#endif
DoJob("post-init");
#ifndef __LINUX__
#ifdef OHOS_LITE
TriggerStage(EVENT3, EVENT3_WAITTIME, QS_STAGE3);
InitStageFinished();
#endif
#endif
ReleaseAllJobs();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册