summaryrefslogtreecommitdiffstats
path: root/core/prebuilt_internal.mk
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2014-07-23 15:27:21 -0700
committerNarayan Kamath <narayan@google.com>2015-02-26 12:31:40 +0000
commit13e5965306212a9051772ff1d5bc3a88e5fb519a (patch)
treea7f9df0715cae66a22c1901522f520bd561e3b70 /core/prebuilt_internal.mk
parent876f45e73f938cdaa7cfc25c43822fc6b274f105 (diff)
downloadbuild-13e5965306212a9051772ff1d5bc3a88e5fb519a.zip
build-13e5965306212a9051772ff1d5bc3a88e5fb519a.tar.gz
build-13e5965306212a9051772ff1d5bc3a88e5fb519a.tar.bz2
Store native libs aligned to PAGE_SIZE
- Add a new flag to zipalign (-p) that page aligns shared libraries (zip entries ending with ".so") in the archive. - Add a new build variable LOCAL_PAGE_ALIGN_SHARED_LIBRARIES to turn on this behaviour in zipalign. - Add a new LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS to control zip behaviour. Bug: 8076853 Bug: 19330157 Co-Authored-By: Simon Baldwin <simonb@google.com> Co-Authored-By: Dimitry Ivanov <dimitry@google.com> Change-Id: I1aa2c039bb2a590ae72f256acc9ba5401c2c59b1
Diffstat (limited to 'core/prebuilt_internal.mk')
-rw-r--r--core/prebuilt_internal.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/prebuilt_internal.mk b/core/prebuilt_internal.mk
index 2e0d2ef..7359513 100644
--- a/core/prebuilt_internal.mk
+++ b/core/prebuilt_internal.mk
@@ -170,6 +170,7 @@ endif
include $(BUILD_SYSTEM)/dex_preopt_odex_install.mk
#######################################
# Sign and align non-presigned .apks.
+$(built_module) : PRIVATE_PAGE_ALIGN_JNI_SHARED_LIBRARIES := $(LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES)
$(built_module) : $(my_prebuilt_src_file) | $(ACP) $(ZIPALIGN) $(SIGNAPK_JAR)
$(transform-prebuilt-to-target)
ifdef extracted_jni_libs