diff options
author | Colin Cross <ccross@android.com> | 2012-04-25 19:02:58 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-07-09 22:09:37 -0700 |
commit | 0c4c47f88dfc15cada154a1cf9b4db88b49890f0 (patch) | |
tree | 36b4a1635c149cbdb26347387185a5c824cd203a /libsparse/Android.mk | |
parent | 13a560659381b34ce3edbfa8dbe6c0aa6c076f20 (diff) | |
download | system_core-0c4c47f88dfc15cada154a1cf9b4db88b49890f0.tar.gz system_core-0c4c47f88dfc15cada154a1cf9b4db88b49890f0.tar.bz2 system_core-0c4c47f88dfc15cada154a1cf9b4db88b49890f0.zip |
libsparse: add sparse_file read and convert tools to use it
Abstract the logic from simg2img into libsparse, and add logic
for reading a regular image into libsparse. simg2img then
becomes a simple wrapper around libsparse.
img2simg was not actually making the file sparse, it was using
sparse files to create multiple files that could be pieced back
together. Replace it with a simple wrapper around libsparse.
Its functionality will be replaced by an simg2simg that can
resparse a file into smaller chunks.
Change-Id: I266f70e1c750454183ce46c71a7bb66bbb033a26
Diffstat (limited to 'libsparse/Android.mk')
-rw-r--r-- | libsparse/Android.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libsparse/Android.mk b/libsparse/Android.mk index d3eeae651..e83ee1cb0 100644 --- a/libsparse/Android.mk +++ b/libsparse/Android.mk @@ -7,7 +7,8 @@ libsparse_src_files := \ output_file.c \ sparse.c \ sparse_crc32.c \ - sparse_err.c + sparse_err.c \ + sparse_read.c include $(CLEAR_VARS) @@ -48,6 +49,7 @@ LOCAL_SRC_FILES := simg2img.c \ sparse_crc32.c LOCAL_MODULE := simg2img LOCAL_MODULE_TAGS := debug +LOCAL_STATIC_LIBRARIES := libsparse libz include $(BUILD_HOST_EXECUTABLE) @@ -57,6 +59,7 @@ LOCAL_SRC_FILES := simg2img.c \ sparse_crc32.c LOCAL_MODULE := simg2img LOCAL_MODULE_TAGS := optional +LOCAL_STATIC_LIBRARIES := libsparse libz include $(BUILD_EXECUTABLE) @@ -65,6 +68,7 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := img2simg.c LOCAL_MODULE := img2simg LOCAL_MODULE_TAGS := debug +LOCAL_STATIC_LIBRARIES := libsparse libz include $(BUILD_HOST_EXECUTABLE) @@ -73,6 +77,7 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := img2simg.c LOCAL_MODULE := img2simg LOCAL_MODULE_TAGS := optional +LOCAL_STATIC_LIBRARIES := libsparse libz include $(BUILD_EXECUTABLE) |