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

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

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