From eeecd3a3e0e95266324a5c073eec3fa522ce2a56 Mon Sep 17 00:00:00 2001 From: zhushengle Date: Tue, 27 Dec 2022 17:20:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DUniProton=E5=86=85?= =?UTF-8?q?=E6=A0=B8=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原因: UniProton 内核不支持init_lite子系统 Close #I67PGC Signed-off-by: zhushengle Change-Id: I09e451a9c1dd3d28b2845894530af6ec69af4e96 --- services/source/BUILD.gn | 5 +++-- services/source/system_init.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/services/source/BUILD.gn b/services/source/BUILD.gn index 4b7b87c..7a87cf8 100644 --- a/services/source/BUILD.gn +++ b/services/source/BUILD.gn @@ -26,7 +26,8 @@ static_library("bootstrap") { } else if (ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") { include_dirs += [ "//third_party/bounds_checking_function/include" ] } - - deps = [ "//base/startup/init/interfaces/innerkits:libbegetutil" ] + if (ohos_kernel_type != "uniproton") { + deps = [ "//base/startup/init/interfaces/innerkits:libbegetutil" ] + } cflags = [ "-Wall" ] } diff --git a/services/source/system_init.c b/services/source/system_init.c index 4fabc27..e42df58 100644 --- a/services/source/system_init.c +++ b/services/source/system_init.c @@ -25,5 +25,7 @@ void OHOS_SystemInit(void) SYS_INIT(feature); MODULE_INIT(run); SAMGR_Bootstrap(); +#ifndef __UNIPROTON__ LiteParamService(); +#endif } -- Gitee