diff --git a/services/modules/BUILD.gn b/services/modules/BUILD.gn index 0662fdd951217411d0ed787d1c62cbce93a52a39..3597ef2d8cc82b2d0762d3d2f6181ea2989d62fb 100755 --- a/services/modules/BUILD.gn +++ b/services/modules/BUILD.gn @@ -36,7 +36,11 @@ ohos_shared_library("bootchart") { external_deps = [ "init:libinit_module_engine" ] part_name = "init" - module_install_dir = "lib/init" + if (target_cpu == "arm64") { + module_install_dir = "lib64/init" + } else { + module_install_dir = "lib/init" + } } config("libbootchart_static_config") { diff --git a/services/param/BUILD.gn b/services/param/BUILD.gn index 3f6488856b57368e0776426c1fba61d0d8191afc..8e1114a8ef381a30cf294b37b43e56c2dd4f17ca 100755 --- a/services/param/BUILD.gn +++ b/services/param/BUILD.gn @@ -167,6 +167,7 @@ if (defined(ohos_lite)) { sources = param_comm_sources sources += param_service_sources sources += param_trigger_sources + sources += [ "adapter/param_dac.c" ] include_dirs = param_include_dirs defines = [ "_GNU_SOURCE" ] @@ -175,6 +176,10 @@ if (defined(ohos_lite)) { defines += [ "BOOT_EXTENDED_CMDLINE=\"${boot_kernel_extended_cmdline}\"" ] } + if ("${product_name}" == "m40") { + defines += [ "USE_MTK_EMMC" ] + } + if (build_selinux) { sources += [ "adapter/param_selinux.c" ] defines += [ "PARAM_SUPPORT_SELINUX" ]