summaryrefslogtreecommitdiffstats
path: root/boot_control/Android.bp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-09-03 22:27:45 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-09-03 22:27:45 +0200
commit0019bdf79c765cfbb92ac11608e10413ddb8194c (patch)
tree80051a074df5d282399cd2d683fe7bb15880dd54 /boot_control/Android.bp
parent[automerger skipped] DO NOT MERGE - Merge build QP1A.190711.019 into stage-aosp-master am: bc7898323c -s ours am: b3aeafddca am: 8fb95b5ae3 (diff)
parentMerge "Refactor boot_control into a separate library." am: eb35817830 am: 754e7fc190 am: 6bf93864ce (diff)
downloadandroid_bootable_recovery-0019bdf79c765cfbb92ac11608e10413ddb8194c.tar
android_bootable_recovery-0019bdf79c765cfbb92ac11608e10413ddb8194c.tar.gz
android_bootable_recovery-0019bdf79c765cfbb92ac11608e10413ddb8194c.tar.bz2
android_bootable_recovery-0019bdf79c765cfbb92ac11608e10413ddb8194c.tar.lz
android_bootable_recovery-0019bdf79c765cfbb92ac11608e10413ddb8194c.tar.xz
android_bootable_recovery-0019bdf79c765cfbb92ac11608e10413ddb8194c.tar.zst
android_bootable_recovery-0019bdf79c765cfbb92ac11608e10413ddb8194c.zip
Diffstat (limited to 'boot_control/Android.bp')
-rw-r--r--boot_control/Android.bp32
1 files changed, 27 insertions, 5 deletions
diff --git a/boot_control/Android.bp b/boot_control/Android.bp
index 7720ead50..0ebce85ea 100644
--- a/boot_control/Android.bp
+++ b/boot_control/Android.bp
@@ -14,13 +14,11 @@
// limitations under the License.
//
-cc_library_shared {
- name: "bootctrl.default",
+cc_defaults {
+ name: "libboot_control_defaults",
recovery_available: true,
relative_install_path: "hw",
- srcs: ["boot_control.cpp"],
-
cflags: [
"-D_FILE_OFFSET_BITS=64",
"-Werror",
@@ -31,7 +29,31 @@ cc_library_shared {
shared_libs: [
"libbase",
"libbootloader_message",
- "libfs_mgr",
"liblog",
],
+ static_libs: [
+ "libfstab",
+ ],
+}
+
+cc_library_static {
+ name: "libboot_control",
+ defaults: ["libboot_control_defaults"],
+ export_include_dirs: ["include"],
+
+ srcs: ["libboot_control.cpp"],
+}
+
+cc_library_shared {
+ name: "bootctrl.default",
+ defaults: ["libboot_control_defaults"],
+
+ srcs: ["legacy_boot_control.cpp"],
+
+ static_libs: [
+ "libboot_control",
+ ],
+ shared_libs: [
+ "libhardware",
+ ],
}