diff --git a/init/Android.bp b/init/Android.bp index ff82f7f18..6d63e41e2 100644 --- a/init/Android.bp +++ b/init/Android.bp @@ -259,6 +259,7 @@ cc_library_static { "avf_build_flags_cc", "libinit_defaults", ], + recovery_available: false, cflags: ["-DMICRODROID=1"], } @@ -276,6 +277,13 @@ cc_defaults { defaults: ["init_defaults"], srcs: ["main.cpp"], symlinks: ["ueventd"], +} + +cc_binary { + name: "init_second_stage", + defaults: ["init_second_stage_defaults"], + static_libs: ["libinit"], + visibility: ["//visibility:any_system_partition"], target: { platform: { required: [ @@ -309,19 +317,13 @@ cc_defaults { }, } -cc_binary { - name: "init_second_stage", - defaults: ["init_second_stage_defaults"], - static_libs: ["libinit"], - visibility: ["//visibility:any_system_partition"], -} - cc_binary { name: "init_second_stage.microdroid", defaults: [ "avf_build_flags_cc", "init_second_stage_defaults", ], + recovery_available: false, static_libs: ["libinit.microdroid"], cflags: ["-DMICRODROID=1"], installable: false,