提交 d7118266 编写于 作者: L lidanyang

change reboot module: install all module in init/reboot dir

Signed-off-by: Nlidanyang <lidanyang12@huawei.com>
上级 5f8bd561
...@@ -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.
先完成此消息的编辑!
想要评论请 注册