OSDN Git Service

android-x86/build.git
9 years agoam ae524f60: am daebaa6e: Restrict the verification in block-based incremental OTAs
Tao Bao [Thu, 12 Mar 2015 23:08:54 +0000 (23:08 +0000)]
am ae524f60: am daebaa6e: Restrict the verification in block-based incremental OTAs

* commit 'ae524f60bce085971480f27a6b75db13ad970c11':
  Restrict the verification in block-based incremental OTAs

9 years agoam daebaa6e: Restrict the verification in block-based incremental OTAs
Tao Bao [Thu, 12 Mar 2015 22:56:28 +0000 (22:56 +0000)]
am daebaa6e: Restrict the verification in block-based incremental OTAs

* commit 'daebaa6ed3fbf4e7943e6c8290ec6b9233b542e9':
  Restrict the verification in block-based incremental OTAs

9 years agoRestrict the verification in block-based incremental OTAs
Tao Bao [Thu, 12 Mar 2015 19:32:37 +0000 (12:32 -0700)]
Restrict the verification in block-based incremental OTAs

BlockImageDiff has three versions. Only the incremental OTAs generated
with the latest version (3) can be re-applied to the system that's
already on the target build. Otherwise, operations like move will make
unconditional changes and damage the system. During the verification
phase, abort the OTA update if BlockImageDiff is less than 3 and it
doesn't match the checksum of the source build.

Change-Id: I3a776495b69e1d174fcb01b10e40c0e912914fd8

9 years agoam d3d682e3: Merge "Use "rsync -a" to copy over to "
Ying Wang [Thu, 12 Mar 2015 01:00:09 +0000 (01:00 +0000)]
am d3d682e3: Merge "Use "rsync -a" to copy over  to "

* commit 'd3d682e3751f6418ea5519a484542e687c44addb':
  Use "rsync -a" to copy over $(TARGET_ROOT_OUT) to $(TARGET_RECOVERY_OUT)

9 years agoMerge "Use "rsync -a" to copy over $(TARGET_ROOT_OUT) to $(TARGET_RECOVERY_OUT)"
Ying Wang [Wed, 11 Mar 2015 23:57:07 +0000 (23:57 +0000)]
Merge "Use "rsync -a" to copy over $(TARGET_ROOT_OUT) to $(TARGET_RECOVERY_OUT)"

9 years agoUse "rsync -a" to copy over $(TARGET_ROOT_OUT) to $(TARGET_RECOVERY_OUT)
Ying Wang [Wed, 11 Mar 2015 23:44:12 +0000 (16:44 -0700)]
Use "rsync -a" to copy over $(TARGET_ROOT_OUT) to $(TARGET_RECOVERY_OUT)

"cp -Rf" fails on Mac OS when some broken symlinks exist in the dest
dir.
Also switch to better shell error handling when copying
init.recovery.*.rc.

Change-Id: Idd05f7604736b234619f62be12dd108fac91fed1

9 years agoam dedff62c: Merge "Contain obj of ../ source files in their intermediate dir."
Ying Wang [Wed, 11 Mar 2015 20:59:44 +0000 (20:59 +0000)]
am dedff62c: Merge "Contain obj of ../ source files in their intermediate dir."

* commit 'dedff62c8e44320dec8f667e27fdcd4cdff1430d':
  Contain obj of ../ source files in their intermediate dir.

9 years agoam fe593edd: Merge "Build only 64-bit odex for system server jars."
Ying Wang [Wed, 11 Mar 2015 20:59:43 +0000 (20:59 +0000)]
am fe593edd: Merge "Build only 64-bit odex for system server jars."

* commit 'fe593edd5377f5046ef07d2efa53670451bd13a4':
  Build only 64-bit odex for system server jars.

9 years agoMerge "Contain obj of ../ source files in their intermediate dir."
Ying Wang [Wed, 11 Mar 2015 20:43:40 +0000 (20:43 +0000)]
Merge "Contain obj of ../ source files in their intermediate dir."

9 years agoMerge "Build only 64-bit odex for system server jars."
Ying Wang [Wed, 11 Mar 2015 20:43:32 +0000 (20:43 +0000)]
Merge "Build only 64-bit odex for system server jars."

9 years agoam a2ad467f: Merge "Support modules to be installed directly to recovery.img"
Ying Wang [Wed, 11 Mar 2015 17:57:02 +0000 (17:57 +0000)]
am a2ad467f: Merge "Support modules to be installed directly to recovery.img"

* commit 'a2ad467f7a82511901625aa8dd8253c19df87a1c':
  Support modules to be installed directly to recovery.img

9 years agoMerge "Support modules to be installed directly to recovery.img"
Ying Wang [Wed, 11 Mar 2015 17:40:54 +0000 (17:40 +0000)]
Merge "Support modules to be installed directly to recovery.img"

9 years agoSupport modules to be installed directly to recovery.img
Ying Wang [Tue, 10 Mar 2015 19:02:57 +0000 (12:02 -0700)]
Support modules to be installed directly to recovery.img

Previously the recovery binary was configured to be installed to the
system.img and then got copied to recovery.img in the recovery.img's
build rule.
With this change, a module, such as the recovery binary, can configure
itself to be installed directly to the recovery.img, just like how other
modules get installed to system.img.

Bug: 19667686
Change-Id: I46b0b4a95cf078a68999db9c0f6635d6a3f5cd86

9 years agoam fafe5ac8: Merge "Signapk.java: hide the password"
Ying Wang [Wed, 11 Mar 2015 17:00:10 +0000 (17:00 +0000)]
am fafe5ac8: Merge "Signapk.java: hide the password"

* commit 'fafe5ac81940caaa6b222433a2fd9ef5e1239686':
  Signapk.java: hide the password

9 years agoam 168357ae: Merge "Support .asm being compiled by yasm targeted for x86_64."
Ying Wang [Wed, 11 Mar 2015 16:49:07 +0000 (16:49 +0000)]
am 168357ae: Merge "Support .asm being compiled by yasm targeted for x86_64."

* commit '168357aeda0c71cd54f9bcfe72f2fca2d3baad36':
  Support .asm being compiled by yasm targeted for x86_64.

9 years agoam 501af528: Merge "Increase system and userdata partition sizes."
Ying Wang [Wed, 11 Mar 2015 16:49:06 +0000 (16:49 +0000)]
am 501af528: Merge "Increase system and userdata partition sizes."

* commit '501af5280fd36c6634b91ac87a55c780d8634a43':
  Increase system and userdata partition sizes.

9 years agoMerge "Signapk.java: hide the password"
Ying Wang [Wed, 11 Mar 2015 16:45:59 +0000 (16:45 +0000)]
Merge "Signapk.java: hide the password"

9 years agoMerge "Support .asm being compiled by yasm targeted for x86_64."
Ying Wang [Wed, 11 Mar 2015 16:37:25 +0000 (16:37 +0000)]
Merge "Support .asm being compiled by yasm targeted for x86_64."

9 years agoMerge "Increase system and userdata partition sizes."
Ying Wang [Wed, 11 Mar 2015 16:37:08 +0000 (16:37 +0000)]
Merge "Increase system and userdata partition sizes."

9 years agoIncrease system and userdata partition sizes.
Douglas Leung [Tue, 10 Mar 2015 23:09:19 +0000 (16:09 -0700)]
Increase system and userdata partition sizes.

The extra system space is needed for mips64r6/mips32r6 quick
mode images and the extra userdata is needed to run ART tests.

Change-Id: I96dc1553d950dcf046b57feff10a369e9155bd4d

9 years agoContain obj of ../ source files in their intermediate dir.
Ying Wang [Wed, 11 Mar 2015 01:03:11 +0000 (18:03 -0700)]
Contain obj of ../ source files in their intermediate dir.

Previously when a file in LOCAL_SRC_FILES starts with "../", the object
file may escape out of the module's intermediate directory, because we
insert the source file's path (but not with LOCAL_PATH) to the object
file's path. Even worse when two object files escape to the same destination
and cause conflict.
This change fixes the issue by removing the "../" inside the object
files' paths. To do that, we have to set up the compilation rules for
those files one by one, instead of using the one-for-all static
pattern rules.

Bug: 19641115
Change-Id: I19f3c48ece3244fa14acb2caa609deea710840d3

9 years agoBuild only 64-bit odex for system server jars.
Ying Wang [Tue, 10 Mar 2015 00:17:51 +0000 (17:17 -0700)]
Build only 64-bit odex for system server jars.

By default we build both 64-bit and 32-bit odex files for a Java library.
With this change:
- For system server jars (PRODUCT_SYSTEM_SERVER_JARS), we build only
  64-bit odex;
- A library can opt to build only 64-bit odex with
  "LOCAL_MULTILIB := first".

Bug: 19650934
Change-Id: Ic0b7fd381396ed276e6129f883881c5c41c6e154

9 years agoSupport .asm being compiled by yasm targeted for x86_64.
Ying Wang [Tue, 10 Mar 2015 01:57:40 +0000 (18:57 -0700)]
Support .asm being compiled by yasm targeted for x86_64.

Change-Id: Ia6425c38dd2f7ad2dc697213cd61b7515b9e7aff

9 years agoam 46ba5456: am 708b56ed: Merge "Make sure DEX2OAT_TARGET_CPU_VARIANT is not empty."
Christopher Ferris [Sun, 8 Mar 2015 00:07:59 +0000 (00:07 +0000)]
am 46ba5456: am 708b56ed: Merge "Make sure DEX2OAT_TARGET_CPU_VARIANT is not empty."

* commit '46ba5456ad33e0674929eefff0753e21301e6eba':
  Make sure DEX2OAT_TARGET_CPU_VARIANT is not empty.

9 years agoam e380c11d: am 9a0382ff: Merge "Build: Fail preopting apps when there are verifier...
Andreas Gampe [Sun, 8 Mar 2015 00:07:41 +0000 (00:07 +0000)]
am e380c11d: am 9a0382ff: Merge "Build: Fail preopting apps when there are verifier errors"

* commit 'e380c11dde6a9bffa786c0ea7a72608001c7d48e':
  Build: Fail preopting apps when there are verifier errors

9 years agoam 137a9fd6: am 9575e13a: Merge "Filter out unsupported flag: -fprefetch-loop-arrays"
Chih-Hung Hsieh [Sun, 8 Mar 2015 00:06:48 +0000 (00:06 +0000)]
am 137a9fd6: am 9575e13a: Merge "Filter out unsupported flag: -fprefetch-loop-arrays"

* commit '137a9fd6229b6391fa99bb5a99a087c04094b759':
  Filter out unsupported flag: -fprefetch-loop-arrays

9 years agoam 708b56ed: Merge "Make sure DEX2OAT_TARGET_CPU_VARIANT is not empty."
Christopher Ferris [Sat, 7 Mar 2015 17:09:20 +0000 (17:09 +0000)]
am 708b56ed: Merge "Make sure DEX2OAT_TARGET_CPU_VARIANT is not empty."

* commit '708b56edc879847f418108cf360bc990bb2a502a':
  Make sure DEX2OAT_TARGET_CPU_VARIANT is not empty.

9 years agoMerge "Make sure DEX2OAT_TARGET_CPU_VARIANT is not empty."
Christopher Ferris [Fri, 6 Mar 2015 21:27:47 +0000 (21:27 +0000)]
Merge "Make sure DEX2OAT_TARGET_CPU_VARIANT is not empty."

9 years agoam 9a0382ff: Merge "Build: Fail preopting apps when there are verifier errors"
Andreas Gampe [Fri, 6 Mar 2015 19:16:47 +0000 (19:16 +0000)]
am 9a0382ff: Merge "Build: Fail preopting apps when there are verifier errors"

* commit '9a0382ffe64ad8ccecc15141779627a882f31ee0':
  Build: Fail preopting apps when there are verifier errors

9 years agoMerge "Build: Fail preopting apps when there are verifier errors"
Andreas Gampe [Fri, 6 Mar 2015 19:12:08 +0000 (19:12 +0000)]
Merge "Build: Fail preopting apps when there are verifier errors"

9 years agoMake sure DEX2OAT_TARGET_CPU_VARIANT is not empty.
Christopher Ferris [Fri, 6 Mar 2015 18:19:12 +0000 (10:19 -0800)]
Make sure DEX2OAT_TARGET_CPU_VARIANT is not empty.

On non-arm architectures, there is no TARGET_CPU_VARIANT set. For x86,
art assumes that the CPU variant is actually the TARGET_ARCH_VARIANT.
Therefore, if no TARGET_CPU_VARIANT is set, use the TARGET_ARCH_VARIANT.
If TARGET_ARCH_VARIANT is not set, then use default as the value.

Change-Id: I17fc9e3ac7412462103b8f0b287fce106298b741

9 years agoBuild: Fail preopting apps when there are verifier errors
Andreas Gampe [Fri, 6 Mar 2015 03:18:18 +0000 (19:18 -0800)]
Build: Fail preopting apps when there are verifier errors

Expectation is that classes in pre-compiled apps should be structurally
sound and not cause a hard failure.

Bug: 19606409
Change-Id: Idc9da4d4c6bd259555671c657d3414a97940717f

9 years agoam 9575e13a: Merge "Filter out unsupported flag: -fprefetch-loop-arrays"
Chih-Hung Hsieh [Fri, 6 Mar 2015 01:02:27 +0000 (01:02 +0000)]
am 9575e13a: Merge "Filter out unsupported flag: -fprefetch-loop-arrays"

* commit '9575e13aa71248b1ded3e07849a4a7523e76d639':
  Filter out unsupported flag: -fprefetch-loop-arrays

9 years agoMerge "Filter out unsupported flag: -fprefetch-loop-arrays"
Chih-Hung Hsieh [Fri, 6 Mar 2015 00:48:52 +0000 (00:48 +0000)]
Merge "Filter out unsupported flag: -fprefetch-loop-arrays"

9 years agoFilter out unsupported flag: -fprefetch-loop-arrays
Chih-Hung Hsieh [Fri, 6 Mar 2015 00:02:04 +0000 (16:02 -0800)]
Filter out unsupported flag: -fprefetch-loop-arrays

Change-Id: I55ba9045948a910ebd76c09f9f4ebb6b37eed1e7

9 years agoam a7c669f2: am 71c64dc1: Merge "Reorder lib paths in transform-bc-to-so to avoid...
Ying Wang [Thu, 5 Mar 2015 20:11:17 +0000 (20:11 +0000)]
am a7c669f2: am 71c64dc1: Merge "Reorder lib paths in transform-bc-to-so to avoid build race condition."

* commit 'a7c669f25b087c02fae43d8ead9e9ebae3f448a3':
  Reorder lib paths in transform-bc-to-so to avoid build race condition.

9 years agoam 71c64dc1: Merge "Reorder lib paths in transform-bc-to-so to avoid build race condi...
Ying Wang [Thu, 5 Mar 2015 20:05:17 +0000 (20:05 +0000)]
am 71c64dc1: Merge "Reorder lib paths in transform-bc-to-so to avoid build race condition."

* commit '71c64dc1033aed7de0ebb215fc35d09e7fcd9db0':
  Reorder lib paths in transform-bc-to-so to avoid build race condition.

9 years agoMerge "Reorder lib paths in transform-bc-to-so to avoid build race condition."
Ying Wang [Thu, 5 Mar 2015 20:00:32 +0000 (20:00 +0000)]
Merge "Reorder lib paths in transform-bc-to-so to avoid build race condition."

9 years agoReorder lib paths in transform-bc-to-so to avoid build race condition.
Ying Wang [Thu, 5 Mar 2015 19:29:30 +0000 (11:29 -0800)]
Reorder lib paths in transform-bc-to-so to avoid build race condition.

We should put the NDK library path before
$(TARGET_OUT_INTERMEDIATE_LIBRARIES), so that we link against the NDK
libc/libm, instead of the platform libc/libm in
$(TARGET_OUT_INTERMEDIATE_LIBRARIES), which may still being written out,
because we don't have dependency on them.

Bug: 19613709
Change-Id: I26a8b272e38b7436bca3324246b21cd71349662b

9 years agoam 9b19382f: resolved conflicts for merge of fc759204 to stage-aosp-master
Mohamad Ayyash [Thu, 5 Mar 2015 00:01:46 +0000 (00:01 +0000)]
am 9b19382f: resolved conflicts for merge of fc759204 to stage-aosp-master

* commit '9b19382f0e55be199da4b3f604fc114aba8fb2fc':
  Allow flashing a squashfs system image

9 years agoresolved conflicts for merge of fc759204 to stage-aosp-master
Mohamad Ayyash [Wed, 4 Mar 2015 23:43:45 +0000 (15:43 -0800)]
resolved conflicts for merge of fc759204 to stage-aosp-master

Change-Id: Icf58e881286a66cb3ca4cb122fa8c11ec217fbab

9 years agoMerge "Allow flashing a squashfs system image"
Mohamad Ayyash [Wed, 4 Mar 2015 22:55:21 +0000 (22:55 +0000)]
Merge "Allow flashing a squashfs system image"

9 years agoam a10263ed: am ccf1cc55: Merge "Fix the mac build."
Dan Albert [Wed, 4 Mar 2015 06:29:34 +0000 (06:29 +0000)]
am a10263ed: am ccf1cc55: Merge "Fix the mac build."

* commit 'a10263ed1f1532127a135943dce993443c5dca51':
  Fix the mac build.

9 years agoam ccf1cc55: Merge "Fix the mac build."
Dan Albert [Wed, 4 Mar 2015 06:23:10 +0000 (06:23 +0000)]
am ccf1cc55: Merge "Fix the mac build."

* commit 'ccf1cc55a4448dc43302624da07d3211356473e2':
  Fix the mac build.

9 years agoMerge "Fix the mac build."
Dan Albert [Wed, 4 Mar 2015 06:17:19 +0000 (06:17 +0000)]
Merge "Fix the mac build."

9 years agoFix the mac build.
Dan Albert [Wed, 4 Mar 2015 05:47:04 +0000 (21:47 -0800)]
Fix the mac build.

Bug: 19567451
Change-Id: I6d15259520c9813df1a44d9244c99482f713d114

9 years agoam 850e0b3a: am edab98a4: Merge "Catch more cases of static host executables."
Ying Wang [Wed, 4 Mar 2015 03:35:38 +0000 (03:35 +0000)]
am 850e0b3a: am edab98a4: Merge "Catch more cases of static host executables."

* commit '850e0b3affe8a1b047eeb136bf104ed8759f8dad':
  Catch more cases of static host executables.

9 years agoam edab98a4: Merge "Catch more cases of static host executables."
Ying Wang [Wed, 4 Mar 2015 03:28:53 +0000 (03:28 +0000)]
am edab98a4: Merge "Catch more cases of static host executables."

* commit 'edab98a40a0954789c21eaf6c122c99be2ce2d99':
  Catch more cases of static host executables.

9 years agoMerge "Catch more cases of static host executables."
Ying Wang [Wed, 4 Mar 2015 03:24:03 +0000 (03:24 +0000)]
Merge "Catch more cases of static host executables."

9 years agoAllow flashing a squashfs system image
Mohamad Ayyash [Tue, 3 Mar 2015 20:30:37 +0000 (12:30 -0800)]
Allow flashing a squashfs system image

Change-Id: Ic51d11274784a8d2e9d57d5f0b821ebc89680e5a
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
9 years agoCatch more cases of static host executables.
Dan Albert [Wed, 4 Mar 2015 02:30:27 +0000 (18:30 -0800)]
Catch more cases of static host executables.

Bug: 19567451
Change-Id: Ie1de436db74b727421449b43b192e9599ca8fca6

9 years agoam 21b75e26: am d52afdd6: Merge "(Hopefully) fix the Mac build."
Dan Albert [Wed, 4 Mar 2015 01:57:06 +0000 (01:57 +0000)]
am 21b75e26: am d52afdd6: Merge "(Hopefully) fix the Mac build."

* commit '21b75e269e13f4e8ccec001d9de676c1d64e4644':
  (Hopefully) fix the Mac build.

9 years agoam d52afdd6: Merge "(Hopefully) fix the Mac build."
Dan Albert [Wed, 4 Mar 2015 01:50:21 +0000 (01:50 +0000)]
am d52afdd6: Merge "(Hopefully) fix the Mac build."

* commit 'd52afdd682b26ea6a13c066d6f037c9df6693489':
  (Hopefully) fix the Mac build.

9 years agoMerge "(Hopefully) fix the Mac build."
Dan Albert [Wed, 4 Mar 2015 01:46:22 +0000 (01:46 +0000)]
Merge "(Hopefully) fix the Mac build."

9 years ago(Hopefully) fix the Mac build.
Dan Albert [Wed, 4 Mar 2015 01:42:28 +0000 (17:42 -0800)]
(Hopefully) fix the Mac build.

The Mac linker doesn't understand --start-group, which is needed for
properly linking libgcc/libc statically. It isn't needed for dynamic
executables though, so use that driver behavior where appropriate.

Bug: 19567451
Change-Id: Ifeb03bea55bc87561c64ddafdb99f664fef0f00e

9 years agoam 94451789: am cfafe554: Merge "Fix building static host executables."
Dan Albert [Wed, 4 Mar 2015 00:27:10 +0000 (00:27 +0000)]
am 94451789: am cfafe554: Merge "Fix building static host executables."

* commit '94451789f4ec9d0ea884c0af4856aa846bc71d2e':
  Fix building static host executables.

9 years agoam cfafe554: Merge "Fix building static host executables."
Dan Albert [Tue, 3 Mar 2015 23:24:40 +0000 (23:24 +0000)]
am cfafe554: Merge "Fix building static host executables."

* commit 'cfafe554c0852f5b2c05e5d895b47d032daeec2e':
  Fix building static host executables.

9 years agoMerge "Fix building static host executables."
Dan Albert [Tue, 3 Mar 2015 23:20:52 +0000 (23:20 +0000)]
Merge "Fix building static host executables."

9 years agoFix building static host executables.
Dan Albert [Tue, 3 Mar 2015 22:10:27 +0000 (14:10 -0800)]
Fix building static host executables.

BUILD_HOST_static=1 forces all host binaries to be statically linked.
Since -nodefaultlibs was passed (to disable libstdc++), libgcc wasn't
being passed. This change emulates the driver's behavior.

Also fix default STL selection for BUILD_HOST_static.

Bug: 19567451
Change-Id: I617aab782d40ac76ca5a7d9dddf0f202a4e3a69b

9 years agoam fc93e284: am 6492792d: Merge "Consult tput about color control sequence support"
Greg Hackmann [Tue, 3 Mar 2015 19:10:31 +0000 (19:10 +0000)]
am fc93e284: am 6492792d: Merge "Consult tput about color control sequence support"

* commit 'fc93e284ddc127d51455da98426dec4b8221b1a5':
  Consult tput about color control sequence support

9 years agoam 6492792d: Merge "Consult tput about color control sequence support"
Greg Hackmann [Tue, 3 Mar 2015 19:02:37 +0000 (19:02 +0000)]
am 6492792d: Merge "Consult tput about color control sequence support"

* commit '6492792d8a30f218fff6d54765ba5502de0a9a2a':
  Consult tput about color control sequence support

9 years agoMerge "Consult tput about color control sequence support"
Greg Hackmann [Tue, 3 Mar 2015 18:55:20 +0000 (18:55 +0000)]
Merge "Consult tput about color control sequence support"

9 years agoam 9a75b4ec: am d408e607: Merge "Disable tail call optimization and use -mstackrealig...
Chih-Hung Hsieh [Tue, 3 Mar 2015 01:50:55 +0000 (01:50 +0000)]
am 9a75b4ec: am d408e607: Merge "Disable tail call optimization and use -mstackrealign to boot up on fugu."

* commit '9a75b4ec35eaddb38a49c8283ef0f1db2c827a52':
  Disable tail call optimization and use -mstackrealign to boot up on fugu.

9 years agoam d408e607: Merge "Disable tail call optimization and use -mstackrealign to boot...
Chih-Hung Hsieh [Tue, 3 Mar 2015 01:44:26 +0000 (01:44 +0000)]
am d408e607: Merge "Disable tail call optimization and use -mstackrealign to boot up on fugu."

* commit 'd408e6071831f150a08f895ee2de6cfe8c7ff858':
  Disable tail call optimization and use -mstackrealign to boot up on fugu.

9 years agoMerge "Disable tail call optimization and use -mstackrealign to boot up on fugu."
Chih-Hung Hsieh [Tue, 3 Mar 2015 01:39:27 +0000 (01:39 +0000)]
Merge "Disable tail call optimization and use -mstackrealign to boot up on fugu."

9 years agoDisable tail call optimization and use -mstackrealign to boot up on fugu.
Chih-Hung Hsieh [Wed, 25 Feb 2015 00:06:15 +0000 (16:06 -0800)]
Disable tail call optimization and use -mstackrealign to boot up on fugu.

http://llvm.org/bugs/show_bug.cgi?id=15086,
llvm tail call optimization is wrong for x86.

For Android/x86 to use SSE* instructions safely, stack should be 16-byte
aligned before JNI function call, which isn't true for all x86 device,
so -mstackrealign should be the default.

BUG: 19234330
Change-Id: I4c6676366788772dbe64fd7f0dd33b3ed5c9b80e

9 years agoam 2479a098: am 30b5ed7b: Merge "Fix zipalign README file and usage strings."
Narayan Kamath [Fri, 27 Feb 2015 17:35:57 +0000 (17:35 +0000)]
am 2479a098: am 30b5ed7b: Merge "Fix zipalign README file and usage strings."

* commit '2479a0987da03f0059c42991bf59e3b32551e107':
  Fix zipalign README file and usage strings.

9 years agoam 30b5ed7b: Merge "Fix zipalign README file and usage strings."
Narayan Kamath [Fri, 27 Feb 2015 17:26:49 +0000 (17:26 +0000)]
am 30b5ed7b: Merge "Fix zipalign README file and usage strings."

* commit '30b5ed7b1e8c67c816d64ad1b7c9bde3c3b5019c':
  Fix zipalign README file and usage strings.

9 years agoMerge "Fix zipalign README file and usage strings."
Narayan Kamath [Fri, 27 Feb 2015 17:21:29 +0000 (17:21 +0000)]
Merge "Fix zipalign README file and usage strings."

9 years agoam 3e7688d0: am 3c242c5d: am 4b2537f3: am e34b4ec4: am 2b486dc8: Merge "doc: Add...
Ryosuke Matsuuchi [Fri, 27 Feb 2015 17:03:18 +0000 (17:03 +0000)]
am 3e7688d0: am 3c242c5d: am 4b2537f3: am e34b4ec4: am 2b486dc8: Merge "doc: Add Japanese version of DAC/distribute/ page." into lmp-docs

* commit '3e7688d0415af5cb805f3ece39fec4303eb834a9':
  doc: Add Japanese version of DAC/distribute/ page.

9 years agoam 3c242c5d: am 4b2537f3: am e34b4ec4: am 2b486dc8: Merge "doc: Add Japanese version...
Ryosuke Matsuuchi [Fri, 27 Feb 2015 16:51:04 +0000 (16:51 +0000)]
am 3c242c5d: am 4b2537f3: am e34b4ec4: am 2b486dc8: Merge "doc: Add Japanese version of DAC/distribute/ page." into lmp-docs

* commit '3c242c5ddb8b867b916875c8e05c260a9d8571b6':
  doc: Add Japanese version of DAC/distribute/ page.

9 years agoam 4b2537f3: am e34b4ec4: am 2b486dc8: Merge "doc: Add Japanese version of DAC/distri...
Ryosuke Matsuuchi [Fri, 27 Feb 2015 16:42:54 +0000 (16:42 +0000)]
am 4b2537f3: am e34b4ec4: am 2b486dc8: Merge "doc: Add Japanese version of DAC/distribute/ page." into lmp-docs

* commit '4b2537f39d7ac29258908e1a38ebdf085fd44c5f':
  doc: Add Japanese version of DAC/distribute/ page.

9 years agoam 59c24c79: am 095c4515: Merge "Remove unused variables."
Narayan Kamath [Fri, 27 Feb 2015 16:39:59 +0000 (16:39 +0000)]
am 59c24c79: am 095c4515: Merge "Remove unused variables."

* commit '59c24c790ab04127330d58459ceee1dcd6dd3ab1':
  Remove unused variables.

9 years agoam e34b4ec4: am 2b486dc8: Merge "doc: Add Japanese version of DAC/distribute/ page...
Ryosuke Matsuuchi [Fri, 27 Feb 2015 16:38:38 +0000 (16:38 +0000)]
am e34b4ec4: am 2b486dc8: Merge "doc: Add Japanese version of DAC/distribute/ page." into lmp-docs

* commit 'e34b4ec484faf5dac8286bb17bedeed0e83a6962':
  doc: Add Japanese version of DAC/distribute/ page.

9 years agoam 2b486dc8: Merge "doc: Add Japanese version of DAC/distribute/ page." into lmp...
Ryosuke Matsuuchi [Fri, 27 Feb 2015 16:33:43 +0000 (16:33 +0000)]
am 2b486dc8: Merge "doc: Add Japanese version of DAC/distribute/ page." into lmp-docs

* commit '2b486dc8c3af8cb82f49933356d1d49ad48da619':
  doc: Add Japanese version of DAC/distribute/ page.

9 years agoam 095c4515: Merge "Remove unused variables."
Narayan Kamath [Fri, 27 Feb 2015 16:33:23 +0000 (16:33 +0000)]
am 095c4515: Merge "Remove unused variables."

* commit '095c451541765c7efb9d5a8152f8ef15626ccedb':
  Remove unused variables.

9 years agoFix zipalign README file and usage strings.
Narayan Kamath [Thu, 26 Feb 2015 17:57:55 +0000 (17:57 +0000)]
Fix zipalign README file and usage strings.

Addresses comments from change 13e5965306.

Change-Id: I0a2c0048781858d3aa06347a77220547cfcdcebe

9 years agoMerge "Remove unused variables."
Narayan Kamath [Fri, 27 Feb 2015 11:43:33 +0000 (11:43 +0000)]
Merge "Remove unused variables."

9 years agoMerge "doc: Add Japanese version of DAC/distribute/ page." into lmp-docs
Ryosuke Matsuuchi [Fri, 27 Feb 2015 07:58:57 +0000 (07:58 +0000)]
Merge "doc: Add Japanese version of DAC/distribute/ page." into lmp-docs

9 years agoam 1447cc34: am a6d5250a: am 41e3685f: am bf565365: Use ALL_MODULES..INSTALLED in...
Ying Wang [Thu, 26 Feb 2015 23:53:02 +0000 (23:53 +0000)]
am 1447cc34: am a6d5250a: am 41e3685f: am bf565365: Use ALL_MODULES..INSTALLED in modules-for-tag-list

* commit '1447cc34118c408e61f4fd77b742a9d8e77bf1d0':
  Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list

9 years agoam 8b321d91: am 0e36bfeb: Use ALL_MODULES..INSTALLED in modules-for-tag-list
Ying Wang [Thu, 26 Feb 2015 23:37:48 +0000 (23:37 +0000)]
am 8b321d91: am 0e36bfeb: Use ALL_MODULES..INSTALLED in modules-for-tag-list

* commit '8b321d917616360e9b527d9d6428b6acbbcb816e':
  Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list

9 years agoam a6d5250a: am 41e3685f: am bf565365: Use ALL_MODULES..INSTALLED in modules-for...
Ying Wang [Thu, 26 Feb 2015 23:37:04 +0000 (23:37 +0000)]
am a6d5250a: am 41e3685f: am bf565365: Use ALL_MODULES..INSTALLED in modules-for-tag-list

* commit 'a6d5250ae1e9032f2360962084e5969ccaa1ffd8':
  Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list

9 years agoam 41e3685f: am bf565365: Use ALL_MODULES..INSTALLED in modules-for-tag-list
Ying Wang [Thu, 26 Feb 2015 23:28:21 +0000 (23:28 +0000)]
am 41e3685f: am bf565365: Use ALL_MODULES..INSTALLED in modules-for-tag-list

* commit '41e3685f97d4b8034034c89676e88f7a7caa47c2':
  Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list

9 years agoam 0e36bfeb: Use ALL_MODULES..INSTALLED in modules-for-tag-list
Ying Wang [Thu, 26 Feb 2015 23:16:21 +0000 (23:16 +0000)]
am 0e36bfeb: Use ALL_MODULES..INSTALLED in modules-for-tag-list

* commit '0e36bfeb3ffc78658cda3ca6931c66fe3f5b3d3b':
  Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list

9 years agoam bf565365: Use ALL_MODULES..INSTALLED in modules-for-tag-list
Ying Wang [Thu, 26 Feb 2015 23:15:32 +0000 (23:15 +0000)]
am bf565365: Use ALL_MODULES..INSTALLED in modules-for-tag-list

* commit 'bf565365debd77424dbcf0877089f6f33100d8db':
  Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list

9 years agoUse ALL_MODULES.$(m).INSTALLED in modules-for-tag-list
Ying Wang [Tue, 18 Nov 2014 20:41:53 +0000 (12:41 -0800)]
Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list

Previously we store tag's installed modules in a separate variable
ALL_MODULE_TAGS.$(tag). However we only record the main installed file
for a module, but omit affiliated files like .odex.
With this change, we handle the tagged module the same way as modules in
PRODUCT_PACKAGES.

Change-Id: I7972528a4df5a4ba8bc98930864da9672d32d7fe
(cherry picked from commit 0e36bfeb3ffc78658cda3ca6931c66fe3f5b3d3b)

9 years agoUse ALL_MODULES.$(m).INSTALLED in modules-for-tag-list
Ying Wang [Tue, 18 Nov 2014 20:41:53 +0000 (12:41 -0800)]
Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list

Previously we store tag's installed modules in a separate variable
ALL_MODULE_TAGS.$(tag). However we only record the main installed file
for a module, but omit affiliated files like .odex.
With this change, we handle the tagged module the same way as modules in
PRODUCT_PACKAGES.

Change-Id: I7972528a4df5a4ba8bc98930864da9672d32d7fe

9 years agoam 8485fb07: am 4eec22a6: Merge "Use a less freqent dummy file name: zipdummy"
Ying Wang [Thu, 26 Feb 2015 18:11:36 +0000 (18:11 +0000)]
am 8485fb07: am 4eec22a6: Merge "Use a less freqent dummy file name: zipdummy"

* commit '8485fb074bb1b751224b167273de0f443b94680f':
  Use a less freqent dummy file name: zipdummy

9 years agoam 4eec22a6: Merge "Use a less freqent dummy file name: zipdummy"
Ying Wang [Thu, 26 Feb 2015 18:04:07 +0000 (18:04 +0000)]
am 4eec22a6: Merge "Use a less freqent dummy file name: zipdummy"

* commit '4eec22a6627927aaa11a67e3e18d36534af81856':
  Use a less freqent dummy file name: zipdummy

9 years agoMerge "Use a less freqent dummy file name: zipdummy"
Ying Wang [Thu, 26 Feb 2015 17:57:57 +0000 (17:57 +0000)]
Merge "Use a less freqent dummy file name: zipdummy"

9 years agoUse a less freqent dummy file name: zipdummy
Ying Wang [Thu, 26 Feb 2015 17:36:27 +0000 (09:36 -0800)]
Use a less freqent dummy file name: zipdummy

Previously if user has a directory with name dummy in the root of the
source tree, "zip -qd package.apk dummy" fails with:
"zip error: Nothing to do!".
This change mitigates the error.

Change-Id: I642e3bf0378e5b9911a068ecb72f795b3e92f1fe

9 years agoam e886392c: am 37a44faa: Merge "Store native libs aligned to PAGE_SIZE"
Narayan Kamath [Thu, 26 Feb 2015 12:51:28 +0000 (12:51 +0000)]
am e886392c: am 37a44faa: Merge "Store native libs aligned to PAGE_SIZE"

* commit 'e886392c37a24e25ee1b0e439d74e9b07df2d608':
  Store native libs aligned to PAGE_SIZE

9 years agoam 37a44faa: Merge "Store native libs aligned to PAGE_SIZE"
Narayan Kamath [Thu, 26 Feb 2015 12:45:34 +0000 (12:45 +0000)]
am 37a44faa: Merge "Store native libs aligned to PAGE_SIZE"

* commit '37a44faa7266c8a7e0cc5077a4c028d6f5bfa7f7':
  Store native libs aligned to PAGE_SIZE

9 years agoRemove unused variables.
Narayan Kamath [Thu, 26 Feb 2015 12:39:44 +0000 (12:39 +0000)]
Remove unused variables.

Follow up from 13e5965306212a9051772ff1d5bc3a88e5fb5.

Change-Id: I370e52acd998ce72b4d7dbf2aba604d4b08bb0cf

9 years agoMerge "Store native libs aligned to PAGE_SIZE"
Narayan Kamath [Thu, 26 Feb 2015 12:38:33 +0000 (12:38 +0000)]
Merge "Store native libs aligned to PAGE_SIZE"

9 years agoStore native libs aligned to PAGE_SIZE
Dmitriy Ivanov [Wed, 23 Jul 2014 22:27:21 +0000 (15:27 -0700)]
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

9 years agoam 13baa319: am 876f45e7: Merge "Make some warnings impossible to override."
Dan Albert [Wed, 25 Feb 2015 23:24:35 +0000 (23:24 +0000)]
am 13baa319: am 876f45e7: Merge "Make some warnings impossible to override."

* commit '13baa3192149a8a1de5885c8a85f95155ff5d83d':
  Make some warnings impossible to override.

9 years agoam 876f45e7: Merge "Make some warnings impossible to override."
Dan Albert [Wed, 25 Feb 2015 23:17:56 +0000 (23:17 +0000)]
am 876f45e7: Merge "Make some warnings impossible to override."

* commit '876f45e73f938cdaa7cfc25c43822fc6b274f105':
  Make some warnings impossible to override.

9 years agoMerge "Make some warnings impossible to override."
Dan Albert [Wed, 25 Feb 2015 23:13:12 +0000 (23:13 +0000)]
Merge "Make some warnings impossible to override."

9 years agoam 2c5b6ab5: am 8389deee: Merge "mips64 should avoid common LP64 errors just like...
Elliott Hughes [Wed, 25 Feb 2015 19:08:05 +0000 (19:08 +0000)]
am 2c5b6ab5: am 8389deee: Merge "mips64 should avoid common LP64 errors just like arm64 and x86-64."

* commit '2c5b6ab5ac5465d8d85bec748b5486b58c514637':
  mips64 should avoid common LP64 errors just like arm64 and x86-64.