This repository was archived by the owner on Nov 23, 2022. It is now read-only.
forked from omnirom/android_bootable_recovery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
if the image has the right magic bytes to be a sparse image, use simg2img to flash the image create a rule to make a fully dynamic simg2img which results in a much smaller increase in gzip ramdisk size (2KB vs 40KB) Change-Id: I1b0f6bc127da46103888b1154a9bddd8ac02c01d
- Loading branch information
1 parent
cac6ace
commit ed974bb
Showing
4 changed files
with
40 additions
and
4 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
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,14 @@ | ||
LOCAL_PATH := system/core/libsparse | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_SRC_FILES := simg2img.c \ | ||
sparse_crc32.c | ||
LOCAL_MODULE := simg2img_twrp | ||
LOCAL_MODULE_STEM := simg2img | ||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_SHARED_LIBRARIES := \ | ||
libsparse \ | ||
libz | ||
LOCAL_CFLAGS := -Werror | ||
include $(BUILD_EXECUTABLE) |