diff options
author | Tom Marshall <tdm@cyngn.com> | 2015-12-02 15:09:20 -0800 |
---|---|---|
committer | Tom Marshall <tdm@cyngn.com> | 2015-12-02 15:14:53 -0800 |
commit | d4ca7f0fca235c273cc6968c762e2e1e536eefe0 (patch) | |
tree | e10d1ac98e99c0ea1b8d37fdaa298a4eb30c41b5 | |
parent | 0657fd2184884e311817e787e969a17838c28bae (diff) | |
download | bootable_recovery-d4ca7f0fca235c273cc6968c762e2e1e536eefe0.zip bootable_recovery-d4ca7f0fca235c273cc6968c762e2e1e536eefe0.tar.gz bootable_recovery-d4ca7f0fca235c273cc6968c762e2e1e536eefe0.tar.bz2 |
recovery: Assimilate minivold
Reduces recovery footprint by ~306kb.
Change-Id: Ibc2d791b6dbf7e125cd95f753d0b4e46fca1e827
-rw-r--r-- | Android.mk | 15 | ||||
-rw-r--r-- | recovery_cmds.h | 2 |
2 files changed, 14 insertions, 3 deletions
@@ -73,6 +73,7 @@ LOCAL_C_INCLUDES += \ external/e2fsprogs/lib LOCAL_STATIC_LIBRARIES := \ + libminivold_static \ libext4_utils_static \ libmake_ext4fs_static \ libminizip_static \ @@ -93,11 +94,20 @@ LOCAL_STATIC_LIBRARIES := \ libfusesideload \ libminui \ libpng \ + libf2fs_sparseblock \ + libdiskconfig \ + libsysutils \ libfs_mgr \ + libsquashfs_utils \ libbase \ libcutils \ + libutils \ liblog \ + liblogwrap \ libselinux \ + libcrypto_static \ + libscrypt_static \ + libnl \ libc++_static \ libm \ libc \ @@ -148,8 +158,7 @@ LOCAL_C_INCLUDES += external/boringssl/include ifeq ($(ONE_SHOT_MAKEFILE),) LOCAL_ADDITIONAL_DEPENDENCIES += \ fstools \ - recovery_mkshrc \ - minivold + recovery_mkshrc endif @@ -161,7 +170,7 @@ LOCAL_ADDITIONAL_DEPENDENCIES += toybox_recovery_links # Set up the static symlinks RECOVERY_TOOLS := \ - gunzip gzip make_ext4fs reboot setup_adbd sh start stop toybox unzip vdc zip + gunzip gzip make_ext4fs minivold reboot setup_adbd sh start stop toybox unzip vdc zip LOCAL_POST_INSTALL_CMD := \ $(hide) $(foreach t,$(RECOVERY_TOOLS),ln -sf recovery $(TARGET_RECOVERY_ROOT_OUT)/sbin/$(t);) diff --git a/recovery_cmds.h b/recovery_cmds.h index 09a92d9..8fc4d3e 100644 --- a/recovery_cmds.h +++ b/recovery_cmds.h @@ -20,6 +20,7 @@ #include <stdio.h> #include <string.h> +int vold_main(int argc, char **argv); int minizip_main(int argc, char **argv); int miniunz_main(int argc, char **argv); int make_ext4fs_main(int argc, char **argv); @@ -41,6 +42,7 @@ struct recovery_cmd { }; static const struct recovery_cmd recovery_cmds[] = { + { "minivold", vold_main }, { "minizip", minizip_main }, { "make_ext4fs", make_ext4fs_main }, { "reboot", reboot_main }, |