diff --git a/services/source/BUILD.gn b/services/source/BUILD.gn index 4b7b87c28417d7cfbe06a005510d13b1d912c370..7a87cf8b870f73f3ee5dcec1e51f2baac5525c90 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 4fabc27419597ef4fe022d7288d7596ca184335f..e42df5896f5e9934d499a77be85a03518a7f03b8 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 }