aboutsummaryrefslogtreecommitdiff
path: root/uncrypt
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-08-22 17:40:26 -0700
committerTao Bao <tbao@google.com>2018-08-22 17:59:21 -0700
commitd881d4f205247bb929c233745fbc7c5b2e30bc5a (patch)
tree2c981b622ad3096bae0d1847581ab86c6466c3a6 /uncrypt
parent0115b79cbd7eaba1dcbbd6e3183fd2aec8446546 (diff)
uncrypt: Depend on commonly used shared libs.
We already have these shared libraries on device. And `uncrypt` doesn't need to be statically linked (it wasn't, even prior to this change). With this change, the size of uncrypt goes down from 139KiB to 33KiB (aosp_marlin-userdebug). Test: Build and flash on marlin. Trigger a factory reset (which calls `uncrypt` to set up the BCB). Change-Id: I77e3c82e8ce3734019da75c48928d881cb7ef0f0
Diffstat (limited to 'uncrypt')
-rw-r--r--uncrypt/Android.bp12
1 files changed, 7 insertions, 5 deletions
diff --git a/uncrypt/Android.bp b/uncrypt/Android.bp
index aa56d2f7..107a7f0f 100644
--- a/uncrypt/Android.bp
+++ b/uncrypt/Android.bp
@@ -24,13 +24,15 @@ cc_binary {
"-Werror",
],
- static_libs: [
- "libbootloader_message",
- "libotautil",
- "libfs_mgr",
+ shared_libs: [
"libbase",
+ "libbootloader_message",
"libcutils",
- "liblog",
+ "libfs_mgr",
+ ],
+
+ static_libs: [
+ "libotautil",
],
init_rc: [