summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-08-07 01:16:14 +0200
committerTao Bao <tbao@google.com>2018-08-07 02:06:43 +0200
commit4fd4f89591fe826cf26167bccaeb2802f14fbdc8 (patch)
tree461ec7eedc8884a1abc5d846ced2e246ddc59879
parentMerge "Dynamically load device-specific recovery UI lib." (diff)
downloadandroid_bootable_recovery-4fd4f89591fe826cf26167bccaeb2802f14fbdc8.tar
android_bootable_recovery-4fd4f89591fe826cf26167bccaeb2802f14fbdc8.tar.gz
android_bootable_recovery-4fd4f89591fe826cf26167bccaeb2802f14fbdc8.tar.bz2
android_bootable_recovery-4fd4f89591fe826cf26167bccaeb2802f14fbdc8.tar.lz
android_bootable_recovery-4fd4f89591fe826cf26167bccaeb2802f14fbdc8.tar.xz
android_bootable_recovery-4fd4f89591fe826cf26167bccaeb2802f14fbdc8.tar.zst
android_bootable_recovery-4fd4f89591fe826cf26167bccaeb2802f14fbdc8.zip
-rw-r--r--Android.mk7
-rw-r--r--fuse_sideload/Android.bp3
-rw-r--r--minadbd/Android.bp16
-rw-r--r--tests/Android.mk2
4 files changed, 18 insertions, 10 deletions
diff --git a/Android.mk b/Android.mk
index 9542080ca..9d6a00fca 100644
--- a/Android.mk
+++ b/Android.mk
@@ -114,7 +114,6 @@ include $(BUILD_STATIC_LIBRARY)
librecovery_static_libraries := \
libbootloader_message \
libfusesideload \
- libminadbd \
libminui \
libverifier \
libotautil \
@@ -157,6 +156,9 @@ LOCAL_CFLAGS := $(recovery_common_cflags)
LOCAL_MODULE := librecovery
+LOCAL_SHARED_LIBRARIES := \
+ libminadbd_services \
+
LOCAL_STATIC_LIBRARIES := \
$(librecovery_static_libraries)
@@ -186,6 +188,7 @@ LOCAL_STATIC_LIBRARIES := \
$(librecovery_static_libraries)
LOCAL_SHARED_LIBRARIES := \
+ libminadbd_services \
librecovery_ui \
LOCAL_HAL_STATIC_LIBRARIES := libhealthd
@@ -223,7 +226,9 @@ LOCAL_REQUIRED_MODULES += \
# module is built with Soong (with `recovery: true` flag).
LOCAL_REQUIRED_MODULES += \
libbase.recovery \
+ libcrypto.recovery \
liblog.recovery \
+ libminadbd_services.recovery \
libpng.recovery \
libz.recovery \
diff --git a/fuse_sideload/Android.bp b/fuse_sideload/Android.bp
index 76bc16df9..29404cea2 100644
--- a/fuse_sideload/Android.bp
+++ b/fuse_sideload/Android.bp
@@ -14,6 +14,7 @@
cc_library_static {
name: "libfusesideload",
+ recovery_available: true,
cflags: [
"-D_XOPEN_SOURCE",
@@ -30,7 +31,7 @@ cc_library_static {
"include",
],
- static_libs: [
+ shared_libs: [
"libbase",
"libcrypto",
],
diff --git a/minadbd/Android.bp b/minadbd/Android.bp
index 432b2f0f5..8ccce4f42 100644
--- a/minadbd/Android.bp
+++ b/minadbd/Android.bp
@@ -26,8 +26,9 @@ cc_defaults {
],
}
-cc_library_static {
- name: "libminadbd",
+cc_library {
+ name: "libminadbd_services",
+ recovery_available: true,
defaults: [
"minadbd_defaults",
@@ -39,14 +40,14 @@ cc_library_static {
"minadbd_services.cpp",
],
- static_libs: [
- "libfusesideload",
+ shared_libs: [
+ "libadbd",
"libbase",
"libcrypto",
],
- whole_static_libs: [
- "libadbd",
+ static_libs: [
+ "libfusesideload",
],
}
@@ -62,8 +63,9 @@ cc_test {
],
static_libs: [
+ "libminadbd_services",
+ "libadbd",
"libBionicGtestMain",
- "libminadbd",
],
shared_libs: [
diff --git a/tests/Android.mk b/tests/Android.mk
index 58ef3a2af..8dd454944 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -157,7 +157,7 @@ librecovery_static_libraries := \
librecovery \
libbootloader_message \
libfusesideload \
- libminadbd \
+ libminadbd_services \
librecovery_ui_default \
librecovery_ui \
libminui \