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:
Alex Deymo committed 2016-08-03 16:28:29 -07:00
1 parent b70ee14103
commit 2eea58f169
1 file changed
+14
+14
View File
@@ -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.