-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Android sparse image (simg) tools
libsparse is already built for fastboot, so building the simg tools only requires a few build rules to link the executables. Adds the following tools: simgtoimg, img2simg, and append2simg.
- Loading branch information
1 parent
bf68304
commit db84fde
Showing
4 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
add_library(libsparse STATIC | ||
core/libsparse/backed_block.cpp | ||
core/libsparse/output_file.cpp | ||
core/libsparse/sparse.cpp | ||
core/libsparse/sparse_crc32.cpp | ||
core/libsparse/sparse_err.cpp | ||
core/libsparse/sparse_read.cpp) | ||
|
||
target_include_directories(libsparse PUBLIC | ||
core/libsparse/include core/base/include) | ||
|
||
add_executable(simg2img | ||
core/libsparse/simg2img.cpp) | ||
target_link_libraries(simg2img | ||
libsparse z libbase) | ||
|
||
add_executable(img2simg | ||
core/libsparse/img2simg.cpp) | ||
target_link_libraries(img2simg | ||
libsparse z libbase) | ||
|
||
add_executable(append2simg | ||
core/libsparse/append2simg.cpp) | ||
target_link_libraries(append2simg | ||
libsparse z libbase) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters