mirror of
https://github.com/expo/bsdiff.git
synced 2026-11-14 17:49:03 -10:00
DO NOT MERGE: Build a static bspatch for recovery.
The recovery image must include only static binary. This patch compiles
bspatch as a static binary and installs it in recovery so it can be used
by update_engine_sideload.
Bug: 27178350
TEST=`mmma external/bsdiff` builds the recovery static file.
(cherry picked from commit 4bbeb1a12d)
Change-Id: I25bd1925b7b04434542a29cd23c2542607b46362
This commit is contained in:
1 parent
b70ee14103
commit
2eea58f169
1 file changed
+14
+14
@@ -62,6 +62,20 @@ LOCAL_C_INCLUDES += external/bzip2
|
||||
LOCAL_STATIC_LIBRARIES := $(bsdiff_common_static_libs)
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
# bspatch used in recovery by update_engine_sideload.
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := bspatch_recovery
|
||||
LOCAL_MODULE_STEM := bspatch
|
||||
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
||||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
||||
LOCAL_CPP_EXTENSION := .cc
|
||||
LOCAL_SRC_FILES := \
|
||||
$(bspatch_src_files) \
|
||||
bspatch_main.cc
|
||||
LOCAL_CFLAGS := $(bsdiff_common_cflags)
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
$(bsdiff_common_static_libs)
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
# Host executables.
|
||||
|
||||
|
||||
Reference in new issue
Block a user