From 8b4d467671ae31f0c16903e5f179b18f3df67201 Mon Sep 17 00:00:00 2001 From: xionglei6 Date: Thu, 28 Oct 2021 11:21:02 +0800 Subject: [PATCH] for build_ramdisk script adjustment Signed-off-by: xionglei6 --- services/BUILD.gn | 5 +++-- ueventd/BUILD.gn | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/services/BUILD.gn b/services/BUILD.gn index 4d4285c0..a5f8d24f 100755 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -150,13 +150,14 @@ if (defined(ohos_lite)) { cflags += [ "-DWITH_SELINUX" ] } - if (disable_init_two_stages) { + if (!enable_ramdisk) { defines = [ "DISABLE_INIT_TWO_STAGES" ] } install_images = [ "system", "updater", + "ramdisk", ] install_enable = true part_name = "init" @@ -184,7 +185,7 @@ if (defined(ohos_lite)) { # init etc files group ohos_prebuilt_etc("init.cfg") { - if (disable_init_two_stages) { + if (!enable_ramdisk) { source = "//base/startup/init_lite/services/etc/init.without_two_stages.cfg" } else { diff --git a/ueventd/BUILD.gn b/ueventd/BUILD.gn index fcc47eb1..00cc772f 100755 --- a/ueventd/BUILD.gn +++ b/ueventd/BUILD.gn @@ -41,6 +41,7 @@ if (!defined(ohos_lite)) { install_images = [ "system", "updater", + "ramdisk", ] install_enable = true part_name = "init" -- GitLab