未验证 提交 bb6ee406 编写于 作者: O openharmony_ci 提交者: Gitee

!1834 reboot插件改为扫描目录安装,方便扩展

Merge pull request !1834 from ldy/master
......@@ -30,9 +30,9 @@ ohos_shared_library("rebootmodule") {
part_name = "init"
subsystem_name = "startup"
if (target_cpu == "arm64") {
module_install_dir = "lib64/init"
module_install_dir = "lib64/init/reboot"
} else {
module_install_dir = "lib/init"
module_install_dir = "lib/init/reboot"
}
install_images = [
"system",
......
......@@ -157,7 +157,7 @@ const ParamCmdInfo *GetStartupPowerCtl(size_t *size)
static void InitRebootHook_(RebootHookCtx *ctx)
{
#ifndef STARTUP_INIT_TEST // do not install
InitModuleMgrInstall("rebootmodule");
ModuleMgrScan("init/reboot");
#endif
PLUGIN_LOGI("Install rebootmodule.");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册