Commit graph

21448 commits

Author SHA1 Message Date
Mohamad Ayyash
b97746ef09 Allow flashing a squashfs system image
Change-Id: Ic51d11274784a8d2e9d57d5f0b821ebc89680e5a
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
2015-03-03 18:54:50 -08:00
Dan Albert
b5eb905729 Catch more cases of static host executables.
Bug: 19567451
Change-Id: Ie1de436db74b727421449b43b192e9599ca8fca6
2015-03-03 18:30:27 -08:00
Dan Albert
4162cc606c am 21b75e26: am d52afdd6: Merge "(Hopefully) fix the Mac build."
* commit '21b75e269e13f4e8ccec001d9de676c1d64e4644':
  (Hopefully) fix the Mac build.
2015-03-04 01:57:06 +00:00
Dan Albert
21b75e269e am d52afdd6: Merge "(Hopefully) fix the Mac build."
* commit 'd52afdd682b26ea6a13c066d6f037c9df6693489':
  (Hopefully) fix the Mac build.
2015-03-04 01:50:21 +00:00
Dan Albert
d52afdd682 Merge "(Hopefully) fix the Mac build." 2015-03-04 01:46:22 +00:00
Dan Albert
4f2afde252 (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
2015-03-03 17:42:28 -08:00
Dan Albert
619c52124b am 94451789: am cfafe554: Merge "Fix building static host executables."
* commit '94451789f4ec9d0ea884c0af4856aa846bc71d2e':
  Fix building static host executables.
2015-03-04 00:27:10 +00:00
Dan Albert
94451789f4 am cfafe554: Merge "Fix building static host executables."
* commit 'cfafe554c0852f5b2c05e5d895b47d032daeec2e':
  Fix building static host executables.
2015-03-03 23:24:40 +00:00
Dan Albert
cfafe554c0 Merge "Fix building static host executables." 2015-03-03 23:20:53 +00:00
Dan Albert
8bf4cc97c2 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
2015-03-03 15:08:11 -08:00
Greg Hackmann
01e0cb2ce0 am fc93e284: am 6492792d: Merge "Consult tput about color control sequence support"
* commit 'fc93e284ddc127d51455da98426dec4b8221b1a5':
  Consult tput about color control sequence support
2015-03-03 19:10:31 +00:00
Greg Hackmann
fc93e284dd am 6492792d: Merge "Consult tput about color control sequence support"
* commit '6492792d8a30f218fff6d54765ba5502de0a9a2a':
  Consult tput about color control sequence support
2015-03-03 19:02:37 +00:00
Greg Hackmann
6492792d8a Merge "Consult tput about color control sequence support" 2015-03-03 18:55:21 +00:00
Chih-Hung Hsieh
d40a53b494 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.
2015-03-03 01:50:55 +00:00
Chih-Hung Hsieh
9a75b4ec35 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.
2015-03-03 01:44:26 +00:00
Chih-Hung Hsieh
d408e60718 Merge "Disable tail call optimization and use -mstackrealign to boot up on fugu." 2015-03-03 01:39:28 +00:00
Chih-Hung Hsieh
73e734bea5 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
2015-03-02 16:50:39 -08:00
Narayan Kamath
de979a0205 am 2479a098: am 30b5ed7b: Merge "Fix zipalign README file and usage strings."
* commit '2479a0987da03f0059c42991bf59e3b32551e107':
  Fix zipalign README file and usage strings.
2015-02-27 17:35:57 +00:00
Narayan Kamath
2479a0987d am 30b5ed7b: Merge "Fix zipalign README file and usage strings."
* commit '30b5ed7b1e8c67c816d64ad1b7c9bde3c3b5019c':
  Fix zipalign README file and usage strings.
2015-02-27 17:26:49 +00:00
Narayan Kamath
30b5ed7b1e Merge "Fix zipalign README file and usage strings." 2015-02-27 17:21:30 +00:00
Ryosuke Matsuuchi
41d35af217 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.
2015-02-27 17:03:18 +00:00
Ryosuke Matsuuchi
3e7688d041 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.
2015-02-27 16:51:04 +00:00
Ryosuke Matsuuchi
3c242c5ddb 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.
2015-02-27 16:42:54 +00:00
Narayan Kamath
cafb413c2d am 59c24c79: am 095c4515: Merge "Remove unused variables."
* commit '59c24c790ab04127330d58459ceee1dcd6dd3ab1':
  Remove unused variables.
2015-02-27 16:39:59 +00:00
Ryosuke Matsuuchi
4b2537f39d 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.
2015-02-27 16:38:38 +00:00
Ryosuke Matsuuchi
e34b4ec484 am 2b486dc8: Merge "doc: Add Japanese version of DAC/distribute/ page." into lmp-docs
* commit '2b486dc8c3af8cb82f49933356d1d49ad48da619':
  doc: Add Japanese version of DAC/distribute/ page.
2015-02-27 16:33:43 +00:00
Narayan Kamath
59c24c790a am 095c4515: Merge "Remove unused variables."
* commit '095c451541765c7efb9d5a8152f8ef15626ccedb':
  Remove unused variables.
2015-02-27 16:33:23 +00:00
Narayan Kamath
e0b8d19f31 Fix zipalign README file and usage strings.
Addresses comments from change 13e5965306.

Change-Id: I0a2c0048781858d3aa06347a77220547cfcdcebe
2015-02-27 14:17:17 +00:00
Narayan Kamath
095c451541 Merge "Remove unused variables." 2015-02-27 11:43:34 +00:00
Ryosuke Matsuuchi
2b486dc8c3 Merge "doc: Add Japanese version of DAC/distribute/ page." into lmp-docs 2015-02-27 07:58:58 +00:00
Ying Wang
c896d822ab 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
2015-02-26 23:53:02 +00:00
Ying Wang
7faa768301 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
2015-02-26 23:37:48 +00:00
Ying Wang
1447cc3411 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
2015-02-26 23:37:04 +00:00
Ying Wang
a6d5250ae1 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
2015-02-26 23:28:21 +00:00
Ying Wang
8b321d9176 am 0e36bfeb: Use ALL_MODULES..INSTALLED in modules-for-tag-list
* commit '0e36bfeb3ffc78658cda3ca6931c66fe3f5b3d3b':
  Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list
2015-02-26 23:16:21 +00:00
Ying Wang
41e3685f97 am bf565365: Use ALL_MODULES..INSTALLED in modules-for-tag-list
* commit 'bf565365debd77424dbcf0877089f6f33100d8db':
  Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list
2015-02-26 23:15:32 +00:00
Ying Wang
bf565365de 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 0e36bfeb3f)
2015-02-26 22:18:18 +00:00
Ying Wang
0e36bfeb3f 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
2015-02-26 14:12:25 -08:00
Ying Wang
641e283f5e am 8485fb07: am 4eec22a6: Merge "Use a less freqent dummy file name: zipdummy"
* commit '8485fb074bb1b751224b167273de0f443b94680f':
  Use a less freqent dummy file name: zipdummy
2015-02-26 18:11:36 +00:00
Ying Wang
8485fb074b am 4eec22a6: Merge "Use a less freqent dummy file name: zipdummy"
* commit '4eec22a6627927aaa11a67e3e18d36534af81856':
  Use a less freqent dummy file name: zipdummy
2015-02-26 18:04:07 +00:00
Ying Wang
4eec22a662 Merge "Use a less freqent dummy file name: zipdummy" 2015-02-26 17:57:58 +00:00
Ying Wang
dcd90831e5 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
2015-02-26 09:36:27 -08:00
Narayan Kamath
738871f6eb am e886392c: am 37a44faa: Merge "Store native libs aligned to PAGE_SIZE"
* commit 'e886392c37a24e25ee1b0e439d74e9b07df2d608':
  Store native libs aligned to PAGE_SIZE
2015-02-26 12:51:28 +00:00
Narayan Kamath
e886392c37 am 37a44faa: Merge "Store native libs aligned to PAGE_SIZE"
* commit '37a44faa7266c8a7e0cc5077a4c028d6f5bfa7f7':
  Store native libs aligned to PAGE_SIZE
2015-02-26 12:45:34 +00:00
Narayan Kamath
bc0d368896 Remove unused variables.
Follow up from 13e5965306.

Change-Id: I370e52acd998ce72b4d7dbf2aba604d4b08bb0cf
2015-02-26 12:40:34 +00:00
Narayan Kamath
37a44faa72 Merge "Store native libs aligned to PAGE_SIZE" 2015-02-26 12:38:33 +00:00
Dmitriy Ivanov
13e5965306 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
2015-02-26 12:31:40 +00:00
Dan Albert
9ddc52c1e4 am 13baa319: am 876f45e7: Merge "Make some warnings impossible to override."
* commit '13baa3192149a8a1de5885c8a85f95155ff5d83d':
  Make some warnings impossible to override.
2015-02-25 23:24:35 +00:00
Dan Albert
13baa31921 am 876f45e7: Merge "Make some warnings impossible to override."
* commit '876f45e73f938cdaa7cfc25c43822fc6b274f105':
  Make some warnings impossible to override.
2015-02-25 23:17:56 +00:00
Dan Albert
876f45e73f Merge "Make some warnings impossible to override." 2015-02-25 23:13:13 +00:00