!31 【轻量级 PR】:add OHOS_LITE

Merge pull request !31 from lanxueyuan/N/A
This commit is contained in:
openharmony_ci
2021-05-18 12:38:19 +08:00
committed by Gitee
+8
View File
@@ -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();
}