summaryrefslogtreecommitdiffstats
path: root/recovery_utils/Android.bp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-10-03 18:07:38 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-10-03 18:07:38 +0200
commit80b6831ddbcdc6fa7bd42a6cdb1eda4d28364cb5 (patch)
treee9046ce3607970eb49fa3ebe2f0dd3e829f1d361 /recovery_utils/Android.bp
parentMerge "otautil: Factor out the utils that're private to recovery." (diff)
parentMerge "Refactor battery info querying functions into librecovery_utils." (diff)
downloadandroid_bootable_recovery-80b6831ddbcdc6fa7bd42a6cdb1eda4d28364cb5.tar
android_bootable_recovery-80b6831ddbcdc6fa7bd42a6cdb1eda4d28364cb5.tar.gz
android_bootable_recovery-80b6831ddbcdc6fa7bd42a6cdb1eda4d28364cb5.tar.bz2
android_bootable_recovery-80b6831ddbcdc6fa7bd42a6cdb1eda4d28364cb5.tar.lz
android_bootable_recovery-80b6831ddbcdc6fa7bd42a6cdb1eda4d28364cb5.tar.xz
android_bootable_recovery-80b6831ddbcdc6fa7bd42a6cdb1eda4d28364cb5.tar.zst
android_bootable_recovery-80b6831ddbcdc6fa7bd42a6cdb1eda4d28364cb5.zip
Diffstat (limited to 'recovery_utils/Android.bp')
-rw-r--r--recovery_utils/Android.bp43
1 files changed, 28 insertions, 15 deletions
diff --git a/recovery_utils/Android.bp b/recovery_utils/Android.bp
index 271d0799d..463f27fd8 100644
--- a/recovery_utils/Android.bp
+++ b/recovery_utils/Android.bp
@@ -12,6 +12,32 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+cc_defaults {
+ name: "librecovery_utils_defaults",
+
+ defaults: [
+ "recovery_defaults",
+ ],
+
+ shared_libs: [
+ "android.hardware.health@2.0",
+ "libbase",
+ "libext4_utils",
+ "libfs_mgr",
+ "libhidlbase",
+ "libselinux",
+ "libutils",
+ ],
+
+ static_libs: [
+ "libotautil",
+
+ // External dependencies.
+ "libfstab",
+ "libhealthhalutils",
+ ],
+}
+
// A utility lib that's local to recovery (in contrast, libotautil is exposed to device-specific
// recovery_ui lib as well as device-specific updater).
cc_library_static {
@@ -20,23 +46,17 @@ cc_library_static {
recovery_available: true,
defaults: [
- "recovery_defaults",
+ "librecovery_utils_defaults",
],
srcs: [
+ "battery_utils.cpp",
"logging.cpp",
"parse_install_logs.cpp",
"roots.cpp",
"thermalutil.cpp",
],
- shared_libs: [
- "libbase",
- "libext4_utils",
- "libfs_mgr",
- "libselinux",
- ],
-
export_include_dirs: [
"include",
],
@@ -45,13 +65,6 @@ cc_library_static {
"system/vold",
],
- static_libs: [
- "libotautil",
-
- // external dependency
- "libfstab",
- ],
-
export_static_lib_headers: [
"libfstab",
],