Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f749b4b6 authored by Jesse Zhao's avatar Jesse Zhao Committed by Dan Albert
Browse files

DO NOT MERGE: Bundle libc++.so into otatools-package.

Change-Id: I6b7d16eca18dce3e2990464f3d1a34740ad8a8ee
(cherry picked from commit f7daa92c)
parent 0c6c0326
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1270,16 +1270,19 @@ $(BUILT_OTATOOLS_PACKAGE): \
$(BUILT_OTATOOLS_PACKAGE): \
	zip_root := $(intermediate)/otatools

otatools_lib_path := $(notdir $(HOST_OUT_SHARED_LIBRARIES))
$(BUILT_OTATOOLS_PACKAGE): \
		$(OTATOOLS)
		$(OTATOOLS) \
		$(HOST_OUT_SHARED_LIBRARIES)/libc++.so
	@echo "Package OTA tools: $@"
	$(hide) rm -rf $@ $(zip_root)
	$(hide) mkdir -p $(dir $@) $(zip_root)/bin $(zip_root)/framework $(zip_root)/releasetools
	$(hide) mkdir -p $(dir $@) $(zip_root)/bin $(zip_root)/framework $(zip_root)/releasetools $(zip_root)/$(otatools_lib_path)
	$(hide) $(ACP) -p $(OTATOOLS) $(zip_root)/bin
	$(hide) mv $(zip_root)/bin/*.jar $(zip_root)/framework/
	$(hide) $(ACP) $(HOST_OUT_SHARED_LIBRARIES)/libc++.so $(zip_root)/$(otatools_lib_path)
	$(hide) $(ACP) -r -d -p build/tools/releasetools/* $(zip_root)/releasetools
	$(hide) rm -rf $@ $(zip_root)/releasetools/*.pyc
	$(hide) (cd $(zip_root) && zip -qry $(abspath $@) bin framework releasetools)
	$(hide) (cd $(zip_root) && zip -qry $(abspath $@) bin framework releasetools $(otatools_lib_path))
	$(hide) zip -qry $(abspath $@) build/target/product/security/
	$(hide) find device vendor -name \*.pk8 -o -name \*.x509.pem | xargs zip -qry $(abspath $@)