init: Separate the required modules of core and recovery variants
So that init_second_stage (core) depends on core variant tools and rc
files, and init_second_stage.recovery depends on recovery variant tools
and recovery specific rc files.
Bug: 191369319
Test: Presubmit
Test: Check the ninja graph, init_second_stage.recovery no longer depend
on core variation modules
Test: Check out/soong/Android-${PRODUCT}.mk
Change-Id: I03f0cf6af10617fe2e7de677e9dde1aecb2afc74
This commit is contained in:
parent
d6ddc20d83
commit
9ba6a5b8a2
1 changed files with 18 additions and 8 deletions
|
|
@ -228,17 +228,19 @@ cc_binary {
|
|||
stem: "init",
|
||||
defaults: ["init_defaults"],
|
||||
static_libs: ["libinit"],
|
||||
required: [
|
||||
"e2fsdroid",
|
||||
"init.rc",
|
||||
"mke2fs",
|
||||
"sload_f2fs",
|
||||
"make_f2fs",
|
||||
"ueventd.rc",
|
||||
],
|
||||
srcs: ["main.cpp"],
|
||||
symlinks: ["ueventd"],
|
||||
target: {
|
||||
platform: {
|
||||
required: [
|
||||
"init.rc",
|
||||
"ueventd.rc",
|
||||
"e2fsdroid",
|
||||
"make_f2fs",
|
||||
"mke2fs",
|
||||
"sload_f2fs",
|
||||
],
|
||||
},
|
||||
recovery: {
|
||||
cflags: ["-DRECOVERY"],
|
||||
exclude_static_libs: [
|
||||
|
|
@ -248,6 +250,14 @@ cc_binary {
|
|||
"libbinder",
|
||||
"libutils",
|
||||
],
|
||||
required: [
|
||||
"init_recovery.rc",
|
||||
"ueventd.rc.recovery",
|
||||
"e2fsdroid.recovery",
|
||||
"make_f2fs.recovery",
|
||||
"mke2fs.recovery",
|
||||
"sload_f2fs.recovery",
|
||||
],
|
||||
},
|
||||
},
|
||||
visibility: ["//packages/modules/Virtualization/microdroid"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue