OSDN Git Service

android-x86/build.git
8 years agoMerge "Add NATIVE_TESTS class, move host native tests"
Dan Willemsen [Tue, 7 Jun 2016 00:05:35 +0000 (00:05 +0000)]
Merge "Add NATIVE_TESTS class, move host native tests"
am: e72fc63901

* commit 'e72fc639014809b4d4239d7f7754c6950f1ad546':
  Add NATIVE_TESTS class, move host native tests

Change-Id: Ifb0401242afe1e6e16666001faf3d55471200c3f

8 years agoMerge "Add NATIVE_TESTS class, move host native tests"
Dan Willemsen [Mon, 6 Jun 2016 23:59:23 +0000 (23:59 +0000)]
Merge "Add NATIVE_TESTS class, move host native tests"

8 years agoMerge "Switch some build tools to Soong"
Dan Willemsen [Mon, 6 Jun 2016 22:58:28 +0000 (22:58 +0000)]
Merge "Switch some build tools to Soong"
am: c52d09e694

* commit 'c52d09e6944e531e02242cf971020cb2c0cf9844':
  Switch some build tools to Soong

Change-Id: I4ba945cad1eda7c696cd770243e226a09ff735ac

8 years agoMerge "Switch some build tools to Soong"
Treehugger Robot [Mon, 6 Jun 2016 22:51:56 +0000 (22:51 +0000)]
Merge "Switch some build tools to Soong"

8 years agoSwitch some build tools to Soong
Dan Willemsen [Mon, 6 Jun 2016 21:41:32 +0000 (14:41 -0700)]
Switch some build tools to Soong

In preparation for including them in prebuilts/build-tools.

acp: We use a prebuilt in prebuilts/sdk, but it's not part of the sdk.

ijar: We use the host libstdc++ to workaround the lack of libc++ on
some unbundled branches.

ziptime: We disable this on unbundled builds, due to the lack of libc++.

Change-Id: Ib9766b1dbddd151c38ff27c529865200ab37fce1

8 years agoMerge "Remove dead rgb2565"
Dan Willemsen [Mon, 6 Jun 2016 21:39:48 +0000 (21:39 +0000)]
Merge "Remove dead rgb2565"
am: a571e83095

* commit 'a571e83095a72d595e5e4e365e0ae52aefd64356':
  Remove dead rgb2565

Change-Id: I6dae3bbd804591a0e91f3467f021c5ee2dde4bf7

8 years agoMerge "Remove dead rgb2565"
Treehugger Robot [Mon, 6 Jun 2016 21:35:47 +0000 (21:35 +0000)]
Merge "Remove dead rgb2565"

8 years agoMerge "Drop CLANG and CLANG_CXX in the environment"
Dan Willemsen [Mon, 6 Jun 2016 21:27:10 +0000 (21:27 +0000)]
Merge "Drop CLANG and CLANG_CXX in the environment"
am: 27a55cd3c7

* commit '27a55cd3c703c190f933630e503d963ef7478183':
  Drop CLANG and CLANG_CXX in the environment

Change-Id: I3850b1783fb47cda05f1a7799ff8ceddb589e033

8 years agoMerge "Drop CLANG and CLANG_CXX in the environment"
Treehugger Robot [Mon, 6 Jun 2016 21:22:57 +0000 (21:22 +0000)]
Merge "Drop CLANG and CLANG_CXX in the environment"

8 years agoMerge "Improve efficiency of using the DataSource abstraction."
Alex Klyubin [Mon, 6 Jun 2016 21:17:02 +0000 (21:17 +0000)]
Merge "Improve efficiency of using the DataSource abstraction."
am: 7353eabd14

* commit '7353eabd14cbfae2c123a58cae4ce1e770ee351d':
  Improve efficiency of using the DataSource abstraction.

Change-Id: Ia1ab6c7d0b94c59ab6d7b41828e8e5d676c212e5

8 years agoMerge "Improve efficiency of using the DataSource abstraction."
Alex Klyubin [Mon, 6 Jun 2016 21:07:52 +0000 (21:07 +0000)]
Merge "Improve efficiency of using the DataSource abstraction."

8 years agoRemove dead rgb2565
Dan Willemsen [Mon, 6 Jun 2016 20:32:11 +0000 (13:32 -0700)]
Remove dead rgb2565

Change-Id: I2397dc97768f24a7c416bff96dd983fc796cbb53

8 years agoDrop CLANG and CLANG_CXX in the environment
Dan Willemsen [Mon, 6 Jun 2016 19:21:06 +0000 (12:21 -0700)]
Drop CLANG and CLANG_CXX in the environment

We'll explicitly pass these variables to the static analyzer builds in
binary.mk

Bug: 29071982
Change-Id: Ifc7633d36f5785fe16b63f54b885396c2cab542a

8 years agoMerge "Switch signapk to apksigner-core."
Alex Klyubin [Mon, 6 Jun 2016 19:52:25 +0000 (19:52 +0000)]
Merge "Switch signapk to apksigner-core."
am: 1a39e8eb34

* commit '1a39e8eb3408f45d5f75b261fc073843ab83645b':
  Switch signapk to apksigner-core.

Change-Id: I39af8650adfc9ee12f5d6256e4a2083d4f87acfb

8 years agoMerge "Switch signapk to apksigner-core."
Alex Klyubin [Mon, 6 Jun 2016 19:40:23 +0000 (19:40 +0000)]
Merge "Switch signapk to apksigner-core."

8 years agoImprove efficiency of using the DataSource abstraction.
Alex Klyubin [Mon, 6 Jun 2016 18:12:50 +0000 (11:12 -0700)]
Improve efficiency of using the DataSource abstraction.

This adds getByteBuffer and copyTo methods to the DataSource
abstraction. These methods enable the client to avoid unnecessary
copying of the data source's data.

Bug: 27461702
Change-Id: If4e9f902ea75c1ca5c7be0e20c0e7218faf9c504

8 years agoMerge "Error on external includes"
Dan Willemsen [Sat, 4 Jun 2016 01:09:52 +0000 (01:09 +0000)]
Merge "Error on external includes"
am: 4b33f51043

* commit '4b33f510436f88774f5217b472835973fd8d5b2b':
  Error on external includes

Change-Id: Ib2fb1470cee531cb043e7fe4a8e310fb026dcb3c

8 years agoMerge "Error on external includes"
Dan Willemsen [Sat, 4 Jun 2016 01:03:20 +0000 (01:03 +0000)]
Merge "Error on external includes"

8 years agoMerge "Default to enable tidy warnings in header files."
Chih-Hung Hsieh [Thu, 2 Jun 2016 23:27:17 +0000 (23:27 +0000)]
Merge "Default to enable tidy warnings in header files."
am: 6a7cf55a7d

* commit '6a7cf55a7dfe844b4df173520890b4daee60ea63':
  Default to enable tidy warnings in header files.

Change-Id: Ib4ca529f2f81d05db8392a4f501bea3400f17d57

8 years agoMerge "Default to enable tidy warnings in header files."
Treehugger Robot [Thu, 2 Jun 2016 23:17:59 +0000 (23:17 +0000)]
Merge "Default to enable tidy warnings in header files."

8 years agoMerge "Add support for TARGET_RECOVERY_BRICK."
Tao Bao [Thu, 2 Jun 2016 22:54:25 +0000 (22:54 +0000)]
Merge "Add support for TARGET_RECOVERY_BRICK."
am: daf55776be

* commit 'daf55776beefeb3f59d2f7ca61796ad07fa1d738':
  Add support for TARGET_RECOVERY_BRICK.

Change-Id: I70a4682caca250d557975dcf19bfbf63bc567a24

8 years agoMerge "Add support for TARGET_RECOVERY_BRICK."
Treehugger Robot [Thu, 2 Jun 2016 22:44:55 +0000 (22:44 +0000)]
Merge "Add support for TARGET_RECOVERY_BRICK."

8 years agoDefault to enable tidy warnings in header files.
Chih-Hung Hsieh [Thu, 2 Jun 2016 22:20:05 +0000 (15:20 -0700)]
Default to enable tidy warnings in header files.

Change-Id: I3831f03facbbd6d17117d82f9ccac49bc2645237

8 years agoAdd support for TARGET_RECOVERY_BRICK.
Tao Bao [Wed, 1 Jun 2016 06:56:23 +0000 (23:56 -0700)]
Add support for TARGET_RECOVERY_BRICK.

TARGET_RECOVERY_BRICK specifies the file that lists all the partitions
to be bricked under recovery. The file, if present, will be copied to
'$(TARGET_RECOVERY_ROOT_OUT)/etc/recovery.brick'.

Bug: 27253717
Change-Id: Id84195b5ee1031a83bf7a077be070a3728416580
(cherry picked from commit 3051f4f11aef75af1d7cf623506ad6b4b648f3bd)

8 years agoMerge "Add LOCAL_LOGTAGS_FILES that prebuilts can use"
Dan Willemsen [Wed, 1 Jun 2016 23:47:18 +0000 (23:47 +0000)]
Merge "Add LOCAL_LOGTAGS_FILES that prebuilts can use"
am: 476b5b1616

* commit '476b5b161613cc352961414b549a0553361d533b':
  Add LOCAL_LOGTAGS_FILES that prebuilts can use

Change-Id: Ib0b5bb5aac8b2d1c9896d58bb2c7928a63de4241

8 years agoMerge "disable unpriv perf by default in user{,debug} builds"
Daniel Micay [Wed, 1 Jun 2016 23:47:15 +0000 (23:47 +0000)]
Merge "disable unpriv perf by default in user{,debug} builds"
am: 4bc8280a98

* commit '4bc8280a9886d93870fab02eea73986d8ca08965':
  disable unpriv perf by default in user{,debug} builds

Change-Id: Icb4e1ad8ec0bd491a99b541ac98dc95bf509aa63

8 years agoMerge "Add LOCAL_LOGTAGS_FILES that prebuilts can use"
Treehugger Robot [Wed, 1 Jun 2016 23:28:10 +0000 (23:28 +0000)]
Merge "Add LOCAL_LOGTAGS_FILES that prebuilts can use"

8 years agoMerge "disable unpriv perf by default in user{,debug} builds"
Jeffrey Vander Stoep [Wed, 1 Jun 2016 23:18:45 +0000 (23:18 +0000)]
Merge "disable unpriv perf by default in user{,debug} builds"

8 years agoAdd LOCAL_LOGTAGS_FILES that prebuilts can use
Dan Willemsen [Wed, 1 Jun 2016 22:27:11 +0000 (15:27 -0700)]
Add LOCAL_LOGTAGS_FILES that prebuilts can use

Soong modules can define logtags files that need to be combined into
/system/etc/event-log-tags, so add a new LOCAL_LOGTAGS_FILES variable
that can be used to specify *.logtags file outside of LOCAL_SRC_FILES.

Bug: 28989759
Change-Id: I53c5d396dfb7c6006806758f351eb5cdde90fe74

8 years agoMerge "Update default NINJA_STATUS to show finished edges"
Colin Cross [Wed, 1 Jun 2016 05:01:30 +0000 (05:01 +0000)]
Merge "Update default NINJA_STATUS to show finished edges"
am: 27032630c0

* commit '27032630c0683c30fa78a7bf9432c5b651707f7b':
  Update default NINJA_STATUS to show finished edges

Change-Id: I8e9989722cc5855640a0fcd68597926ce7f0dfda

8 years agoMerge "Update Android.mk finder to work with Android.bp files"
Colin Cross [Wed, 1 Jun 2016 05:01:28 +0000 (05:01 +0000)]
Merge "Update Android.mk finder to work with Android.bp files"
am: 520442f053

* commit '520442f0537c72276147e86116a1170ea1ddc9d7':
  Update Android.mk finder to work with Android.bp files

Change-Id: Ic737bc2d3e693dc7398fff665f7557c3e2e2a72b

8 years agoMerge "Update default NINJA_STATUS to show finished edges"
Colin Cross [Wed, 1 Jun 2016 04:52:59 +0000 (04:52 +0000)]
Merge "Update default NINJA_STATUS to show finished edges"

8 years agoMerge "Update Android.mk finder to work with Android.bp files"
Colin Cross [Wed, 1 Jun 2016 04:52:47 +0000 (04:52 +0000)]
Merge "Update Android.mk finder to work with Android.bp files"

8 years agoMerge "Add Soong tools to PATH"
Dan Willemsen [Wed, 1 Jun 2016 02:45:03 +0000 (02:45 +0000)]
Merge "Add Soong tools to PATH"
am: b09e644e1d

* commit 'b09e644e1db3439d85ce6dd9e371ac6514a4343c':
  Add Soong tools to PATH

Change-Id: I7ba514ee46489e44ff64b5e1be8459567102a33c

8 years agoMerge "Add Soong tools to PATH"
Dan Willemsen [Wed, 1 Jun 2016 02:37:18 +0000 (02:37 +0000)]
Merge "Add Soong tools to PATH"

8 years agoAdd Soong tools to PATH
Dan Willemsen [Fri, 27 May 2016 22:15:47 +0000 (15:15 -0700)]
Add Soong tools to PATH

Change-Id: I8f8649106df4ba7cefbfa37a724ebe0635d90b76

8 years agoMerge "Allow arm prebuilts for x86_arm builds"
Dan Willemsen [Tue, 31 May 2016 22:20:19 +0000 (22:20 +0000)]
Merge "Allow arm prebuilts for x86_arm builds"
am: fcaae6bee8

* commit 'fcaae6bee83c62703339f0e54751b244ef7fd7b7':
  Allow arm prebuilts for x86_arm builds

Change-Id: Ia8a3cd4736afbf7920f4b5383cb24c99a0f9df41

8 years agoMerge "Allow arm prebuilts for x86_arm builds"
Treehugger Robot [Tue, 31 May 2016 22:08:15 +0000 (22:08 +0000)]
Merge "Allow arm prebuilts for x86_arm builds"

8 years agodisable unpriv perf by default in user{,debug} builds
Daniel Micay [Tue, 17 May 2016 04:40:52 +0000 (00:40 -0400)]
disable unpriv perf by default in user{,debug} builds

Bug: 29054680

Change-Id: If04bc63fc366006cde842a50b7c764f89d7449a6

8 years agoAllow arm prebuilts for x86_arm builds
Dan Willemsen [Tue, 31 May 2016 20:59:38 +0000 (13:59 -0700)]
Allow arm prebuilts for x86_arm builds

But only for static and shared libraries -- we disable building other
types of modules for arm, so don't support the prebuilts for them
either.

This is needed so that we can build these libraries under Soong, and
expose them to Make using BUILD_PREBUILT.

Bug: 27526885
Change-Id: I4f6ec922aed37591b6257b7022b81fb65d05b0fe

8 years agoUpdate default NINJA_STATUS to show finished edges
Colin Cross [Tue, 31 May 2016 19:38:04 +0000 (12:38 -0700)]
Update default NINJA_STATUS to show finished edges

Update default NINJA_STATUS that includes percentage to match
https://github.com/ninja-build/ninja/commit/6c2c2eecbfd2e4ddeeacb0129944618a6ce3dc4f

Change-Id: I5694308abe26b71999d944c40962d59d50a73077

8 years agoUpdate Android.mk finder to work with Android.bp files
Colin Cross [Fri, 27 May 2016 22:23:13 +0000 (15:23 -0700)]
Update Android.mk finder to work with Android.bp files

The Android.mk finder should stop traversing when it finds an Android.bp
file, and any Android.soong.mk file at the same path should be included.

Update filter-soong-makefiles to accept a mixed list of Android.bp files
and Android.mk files, convert Android.bp files to Android.soong.mk files
if they exist, and ignore Android.mk files that have an Android.bp file.

Update first-makefiles-under to use the new --dir syntax for
findleaves.py and search for both Android.bp and Android.mk files.

Update all-makefiles-under and all-named-subdir-makefiles to search for
both Android.bp and Android.mk files.

Change-Id: Iddc51bf84593d5de3add02f2b2c065da08962af4

8 years agoMerge "Add --dir option to findleaves.py"
Colin Cross [Sat, 28 May 2016 01:01:43 +0000 (01:01 +0000)]
Merge "Add --dir option to findleaves.py"
am: 40623e2a99

* commit '40623e2a995247907028b12538a2732ac107a057':
  Add --dir option to findleaves.py

Change-Id: I6708e21ca14a5d4e7218c792b6bc6ee0fd6818e8

8 years agoMerge "Add --dir option to findleaves.py"
Treehugger Robot [Sat, 28 May 2016 00:53:47 +0000 (00:53 +0000)]
Merge "Add --dir option to findleaves.py"

8 years agoAdd --dir option to findleaves.py
Colin Cross [Fri, 27 May 2016 22:20:31 +0000 (15:20 -0700)]
Add --dir option to findleaves.py

findleaves.py needs to be able to search multiple directories for
multiple filenames (Android.bp and Android.mk).  Add support for a new
--dir= option to specify one or more directories to search, and then
treat any remaining options as filenames.  If no directories are
specified, fall back to treating only the last option as a filename and
the rest as directories.

Change-Id: Ie879facd49192c6b4fafae070ad00eb21b1faa32

8 years agoSwitch signapk to apksigner-core.
Alex Klyubin [Fri, 27 May 2016 21:36:05 +0000 (14:36 -0700)]
Switch signapk to apksigner-core.

This switches signapk's APK signing from its own signing logic to that
offered by apksigner-core library. OTA update package signing logic
remains inside signapk codebase.

Bug: 27461702
Change-Id: Ibf8435c555fe3f2b621d5189e7ae44f79082c810

8 years agoMerge "Improve DataSource interface."
Alex Klyubin [Fri, 27 May 2016 20:07:42 +0000 (20:07 +0000)]
Merge "Improve DataSource interface."
am: ce4c9d7108

* commit 'ce4c9d71080d27ce321b1aa49e2189ee55bb25fa':
  Improve DataSource interface.

Change-Id: I8a1df06ee64785ae48414b2468e760c41d7f41f3

8 years agoMerge "Store entry alignment information in APK."
Alex Klyubin [Fri, 27 May 2016 20:02:10 +0000 (20:02 +0000)]
Merge "Store entry alignment information in APK."
am: 85f004c6c5

* commit '85f004c6c5995da4f9175eb65b90f48f601d658d':
  Store entry alignment information in APK.

Change-Id: I937cd36edbce072bcf329699f2bd3265205a8a11

8 years agoMerge "Improve DataSource interface."
Alex Klyubin [Fri, 27 May 2016 20:00:59 +0000 (20:00 +0000)]
Merge "Improve DataSource interface."

8 years agoMerge "Store entry alignment information in APK."
Alex Klyubin [Fri, 27 May 2016 19:57:11 +0000 (19:57 +0000)]
Merge "Store entry alignment information in APK."

8 years agoImprove DataSource interface.
Alex Klyubin [Fri, 27 May 2016 17:00:53 +0000 (10:00 -0700)]
Improve DataSource interface.

1. This adds way to obtain a DataSource which represents a region of
   data contained in the DataSource.
2. This fixes a design bug in "feed" method where the size parameter
   was an int instead of long.
3. This fixes a bug in ByteBufferDataSource where its mSize field was
   a long instead of an int (ByteBuffer's length cannot be more than
   2^31).

Bug: 27461702
Change-Id: Ib0812784beb581f19d2412e667b8bd018f0a3c78

8 years agoMerge "Fix mm and mmm in Android.bp directories"
Colin Cross [Fri, 27 May 2016 00:26:30 +0000 (00:26 +0000)]
Merge "Fix mm and mmm in Android.bp directories"
am: 8ed91b6624

* commit '8ed91b66240d3071a42365737f4cd5c7dbe601e1':
  Fix mm and mmm in Android.bp directories

Change-Id: Id8d80175a2ab27c6ea5a969eb37ad12726e68376

8 years agoMerge "Fix mm and mmm in Android.bp directories"
Treehugger Robot [Fri, 27 May 2016 00:23:24 +0000 (00:23 +0000)]
Merge "Fix mm and mmm in Android.bp directories"

8 years agoFix mm and mmm in Android.bp directories
Colin Cross [Thu, 26 May 2016 22:32:15 +0000 (15:32 -0700)]
Fix mm and mmm in Android.bp directories

mm and mmm were not parsing out/soong/Android.mk, so they were ignoring
all modules defined in an Android.bp file.  Always include
out/soong/Android.mk when ONE_SHOT_MAKEFILE is set, and convert the mm
and mmm functions to build MODULES-IN-$DIR instead of all_modules so
that only the subset of modules defined in out/soong/Android.mk for the
requested directory are built.

Bug: 28986194
Change-Id: I6e1ff8cacfc668a4154a0d5937450db840bb7a6b

8 years agoMerge "Remove unnecessary variables"
Dan Willemsen [Thu, 26 May 2016 21:52:54 +0000 (21:52 +0000)]
Merge "Remove unnecessary variables"
am: 2eb45d9ab2

* commit '2eb45d9ab29b0923aeeea51ae0c58e32fea23941':
  Remove unnecessary variables

Change-Id: I645c34edb93ce262d245867c4efea2d409366a09

8 years agoMerge "Remove unnecessary variables"
Dan Willemsen [Thu, 26 May 2016 21:49:01 +0000 (21:49 +0000)]
Merge "Remove unnecessary variables"

8 years agoRemove unnecessary variables
Dan Willemsen [Tue, 17 May 2016 05:07:31 +0000 (22:07 -0700)]
Remove unnecessary variables

These are all either recently unused due to the removal of CFLAGS/etc,
or have been exported by Soong and are no longer necessary.

Change-Id: I5930d43fda21acc8202b3d8ea010fbefb6ae4cf1

8 years agoMerge "Remove USE_SOONG=false option"
Colin Cross [Thu, 26 May 2016 00:57:54 +0000 (00:57 +0000)]
Merge "Remove USE_SOONG=false option"
am: 5413fb4b3e

* commit '5413fb4b3e2310be8568f5024fdc4d0900bf9f9e':
  Remove USE_SOONG=false option

Change-Id: I83c44d57917a10838dd9626d382b4e992c58f822

8 years agoMerge "Remove USE_SOONG=false option"
Colin Cross [Thu, 26 May 2016 00:46:39 +0000 (00:46 +0000)]
Merge "Remove USE_SOONG=false option"

8 years agoRemove USE_SOONG=false option
Colin Cross [Wed, 25 May 2016 19:55:43 +0000 (12:55 -0700)]
Remove USE_SOONG=false option

Soong is always required to build now.

Change-Id: I4e310e98e912b370ebf980bf609f04212a7e9a50

8 years agoError on external includes
Dan Willemsen [Tue, 24 May 2016 20:06:07 +0000 (13:06 -0700)]
Error on external includes

To make the build hermetic, all include files should be located within
the source tree (or generated as output).

There was an Android.mk that was adding /usr/include to its include
path.

Change-Id: I4c40b908314239c8239c7835d592e409248a3150

8 years agoAdd NATIVE_TESTS class, move host native tests
Dan Willemsen [Wed, 2 Mar 2016 21:54:51 +0000 (13:54 -0800)]
Add NATIVE_TESTS class, move host native tests

Host native tests have been getting installed into
out/host/linux-x86/bin/..., but this pollutes the bin directory with a
lot of poorly named tests. Also, to support 32-bit and 64-bit tests, we
need to have different names with different suffixes. This causes
problems when tests expect to be named something specific (like gtest).
It's also convenient to store test data next to the test itself.

So with this change, native tests will be installed in
out/host/linux-x86/nativetest[64]/$(LOCAL_MODULE)/$(LOCAL_MODULE_STEM)
just like target tests get installed into /data/nativetest[64].

Implement this using a new NATIVE_TESTS class, which is like
EXECUTABLES, but sets up the install path differently, and configures
the rpath to load shared libraries with the proper relative path.
LOCAL_MODULE_RELATIVE_PATH can be used to control the directory name, it
will default to $(LOCAL_MODULE). This way multiple related tests can be
grouped together.

Target native tests also use NATIVE_TESTS now, but nothing should change
other than LOCAL_MODULE_RELATIVE_PATH can be used.

Change-Id: I535e42b1a6b21c5b8d6a580aa2f944d2be35e27d

8 years agoStore entry alignment information in APK.
Alex Klyubin [Mon, 23 May 2016 21:19:51 +0000 (14:19 -0700)]
Store entry alignment information in APK.

Data of uncompressed APK entries is often aligned to a multiple of 4
or 4096 in the APK to make it easier to mmap the data. Unfortunately,
the current method for achieving alignment suffers from two issues:
(1) the way it uses the Local File Header extra field is not compliant
with ZIP format (for example, this prevents older versions of Python's
zipfile from reading APKs: https://bugs.python.org/issue14315), and
(2) it does not store information about the alignment multiple in the
APK, making it harder/impossible to preserve the intended alignment
when rearranging entries in the APK.

This change solves these issues by switching to a different method for
aligning data of uncompressed APK entries. Same as before, alignment
is achieved using Local File Header entry field. What's different is
that alignment is achieved by placing a well-formed extensible data
field/block into the extra field. The new field/block contains the
alignment multiple (e.g., 4 or 4096) as well as the necessary padding
(if any). Compared to the original alignment method, the new method
uses 6 more bytes for each uncompressed entry.

Bug: 27461702
Change-Id: I8cffbecc50bf634b28fca5bc39eb23f671961cf9

8 years agoMerge "Double quote some statements for zsh compatibility"
Vishwath Mohan [Mon, 23 May 2016 22:25:45 +0000 (22:25 +0000)]
Merge "Double quote some statements for zsh compatibility"
am: 576fd3ebb9

* commit '576fd3ebb92d2200ea8c02cd6f3b7ba21ced9030':
  Double quote some statements for zsh compatibility

Change-Id: I30ff4c9d527907772d11d557097fafb2cbeeb590

8 years agoMerge "Double quote some statements for zsh compatibility"
Vishwath Mohan [Mon, 23 May 2016 22:17:35 +0000 (22:17 +0000)]
Merge "Double quote some statements for zsh compatibility"

8 years agoMerge "Error on USE_CLANG_PLATFORM_BUILD="
Colin Cross [Mon, 23 May 2016 22:17:34 +0000 (22:17 +0000)]
Merge "Error on USE_CLANG_PLATFORM_BUILD="
am: 7b31dd1094

* commit '7b31dd10948abccc9c8b2f949edbe84de15702d5':
  Error on USE_CLANG_PLATFORM_BUILD=

Change-Id: Iea742a5cd8230587656460cc5ad6b979ba2189a5

8 years agoMerge "Error on USE_CLANG_PLATFORM_BUILD="
Colin Cross [Mon, 23 May 2016 22:05:27 +0000 (22:05 +0000)]
Merge "Error on USE_CLANG_PLATFORM_BUILD="

8 years agoMerge "Add LOCAL_CTS_GTEST_LIST_EXECUTABLE"
Dan Willemsen [Mon, 23 May 2016 21:28:36 +0000 (21:28 +0000)]
Merge "Add LOCAL_CTS_GTEST_LIST_EXECUTABLE"
am: c11ae6c569

* commit 'c11ae6c569c26607a165e6fe491008bdd272d981':
  Add LOCAL_CTS_GTEST_LIST_EXECUTABLE

Change-Id: Id305d60c8db698fa90b09fb547f606b62bb37ad9

8 years agoMerge "Add LOCAL_CTS_GTEST_LIST_EXECUTABLE"
Treehugger Robot [Mon, 23 May 2016 21:18:57 +0000 (21:18 +0000)]
Merge "Add LOCAL_CTS_GTEST_LIST_EXECUTABLE"

8 years agoMerge "Improve concurrency for JAR entry inspection requests."
Alex Klyubin [Mon, 23 May 2016 19:31:14 +0000 (19:31 +0000)]
Merge "Improve concurrency for JAR entry inspection requests."
am: ac68c28831

* commit 'ac68c28831f3947e47a924cb677b740975dbbc6f':
  Improve concurrency for JAR entry inspection requests.

Change-Id: I144f7c3f60e8a95785fcdd380e98df867a84bd70

8 years agoMerge "Improve concurrency for JAR entry inspection requests."
Alex Klyubin [Mon, 23 May 2016 19:26:14 +0000 (19:26 +0000)]
Merge "Improve concurrency for JAR entry inspection requests."

8 years agoMerge "Move to a single clang unknown flags list"
Dan Willemsen [Mon, 23 May 2016 17:40:42 +0000 (17:40 +0000)]
Merge "Move to a single clang unknown flags list"
am: 06935290ac

* commit '06935290ac12d03a5a4f287f4743ada996305235':
  Move to a single clang unknown flags list

Change-Id: Ia02030229a089e531c7258780fb7837240e2b47f

8 years agoMerge "Move to a single clang unknown flags list"
Dan Willemsen [Mon, 23 May 2016 17:30:18 +0000 (17:30 +0000)]
Merge "Move to a single clang unknown flags list"

8 years agoMove to a single clang unknown flags list
Dan Willemsen [Thu, 19 May 2016 21:39:25 +0000 (14:39 -0700)]
Move to a single clang unknown flags list

Soong is using a single list of unknown clang flags for all
architectures, instead of the per-architecture list here. Collapse this
down to a single list as well so that it can be verified against the
Soong list, and eventually replaced by the Soong version.

Change-Id: If43cd892105da5155907c05965a74b835920a369

8 years agoMerge "Remove (C|CPP|CONLY|LD)FLAGS checked by Soong"
Dan Willemsen [Thu, 19 May 2016 22:18:04 +0000 (22:18 +0000)]
Merge "Remove (C|CPP|CONLY|LD)FLAGS checked by Soong"
am: 15409e8f20

* commit '15409e8f20195edce9ccda48836082e4c6bad4f8':
  Remove (C|CPP|CONLY|LD)FLAGS checked by Soong

Change-Id: I412ec02d9825f6f6c857df84744b198e7ce9901a

8 years agoMerge "Remove (C|CPP|CONLY|LD)FLAGS checked by Soong"
Dan Willemsen [Thu, 19 May 2016 22:09:45 +0000 (22:09 +0000)]
Merge "Remove (C|CPP|CONLY|LD)FLAGS checked by Soong"

8 years agoError on USE_CLANG_PLATFORM_BUILD=
Colin Cross [Thu, 19 May 2016 19:59:54 +0000 (12:59 -0700)]
Error on USE_CLANG_PLATFORM_BUILD=

A blank USE_CLANG_PLATFORM_BUILD= on the command line for make causes
confusion between make and kati.  make ignores writes to variables set
on the command line, so envsetup.mk cannot set it to true,
USE_CLANG_PLATFORM_BUILD is still empty in soong.mk, and soong.variables
gets DeviceUsesClang: false.  kati gets USE_CLANG_PLATFORM_BUILD= in its
environment instead of on its command line, so envsetup.mk when parsed
by kati sets USE_CLANG_PLATFORM_BUILD=true.

Error out early if USE_CLANG_PLATFORM_BUILD is not true or false after
attempting to set it to true if it is empty.

Change-Id: I0e2731315711db9a6ac6ea2bf49c88bccacd35f7

8 years agoDouble quote some statements for zsh compatibility
Vishwath Mohan [Fri, 11 Mar 2016 18:00:40 +0000 (10:00 -0800)]
Double quote some statements for zsh compatibility

Two eval commands did not enclose their arguments in double quotes, and
this broke compatibility on zsh - preventing lunch from running to
completion. This CL adds the double quotes and fixes the issue.

Change-Id: I5ed884b455e2e61182f6c29fb807ed92372af039

8 years agoMerge "Windows: Stop adding to GLOBAL_LD_DIRS"
Dan Willemsen [Thu, 19 May 2016 01:23:22 +0000 (01:23 +0000)]
Merge "Windows: Stop adding to GLOBAL_LD_DIRS"
am: e23a49157f

* commit 'e23a49157f34a3c3f82115a117908d32b14a6262':
  Windows: Stop adding to GLOBAL_LD_DIRS

Change-Id: I8b834feed668c311169ec5da294414f47d4175be

8 years agoRemove (C|CPP|CONLY|LD)FLAGS checked by Soong
Dan Willemsen [Thu, 19 May 2016 00:39:04 +0000 (17:39 -0700)]
Remove (C|CPP|CONLY|LD)FLAGS checked by Soong

At the beginning of every build, Soong has exported its version of these
variables, and has been ensuring that when sorted, the result is the
same. So these variables all have the same flags of the Soong ones, but
may be in different orders. We don't believe any of the remaining order
differences matter. As we remove the Make definitions, the exported
Soong variables will take over.

This only removes lines that change one of these variables:

  [2ND_][CLANG_]HOST_CROSS_GLOBAL_CFLAGS
  [2ND_][CLANG_]HOST_CROSS_GLOBAL_CONLYFLAGS
  [2ND_][CLANG_]HOST_CROSS_GLOBAL_CPPFLAGS
  [2ND_][CLANG_]HOST_CROSS_GLOBAL_LDFLAGS
  [2ND_][CLANG_]HOST_GLOBAL_CFLAGS
  [2ND_][CLANG_]HOST_GLOBAL_CONLYFLAGS
  [2ND_][CLANG_]HOST_GLOBAL_CPPFLAGS
  [2ND_][CLANG_]HOST_GLOBAL_LDFLAGS
  [2ND_][CLANG_]TARGET_GLOBAL_CFLAGS
  [2ND_][CLANG_]TARGET_GLOBAL_CONLYFLAGS
  [2ND_][CLANG_]TARGET_GLOBAL_CPPFLAGS
  [2ND_][CLANG_]TARGET_GLOBAL_LDFLAGS

Many other variables are unnecessary now too, but those will be removed
in another change. For those we can ensure the build.ninja file does not
change, but we expect it to change here due to the ordering differences.

Change-Id: I0bd0778706d02ee27b2784dd8dc6b2c71d37bd3a

8 years agoMerge "Windows: Stop adding to GLOBAL_LD_DIRS"
Dan Willemsen [Thu, 19 May 2016 01:09:28 +0000 (01:09 +0000)]
Merge "Windows: Stop adding to GLOBAL_LD_DIRS"

8 years agoMerge "Remove trailing newline from TARGET_C_INCLUDES"
Dan Willemsen [Thu, 19 May 2016 00:05:26 +0000 (00:05 +0000)]
Merge "Remove trailing newline from TARGET_C_INCLUDES"
am: 6864e3790c

* commit '6864e3790c80d3044307f0d260cf0e2b962ae82d':
  Remove trailing newline from TARGET_C_INCLUDES

Change-Id: I615050a58cca90291f2c07cae4397a711c69e585

8 years agoWindows: Stop adding to GLOBAL_LD_DIRS
Dan Willemsen [Wed, 18 May 2016 23:18:13 +0000 (16:18 -0700)]
Windows: Stop adding to GLOBAL_LD_DIRS

Soong does not have the idea of global linking directories, so move the
windows prebuilt library directory to GLOBAL_LDFLAGS instead.

Change-Id: Ie101146f4682cd85924463aa5acaa46869938e6c

8 years agoMerge "Remove trailing newline from TARGET_C_INCLUDES"
Dan Willemsen [Wed, 18 May 2016 23:50:27 +0000 (23:50 +0000)]
Merge "Remove trailing newline from TARGET_C_INCLUDES"

8 years agoRemove trailing newline from TARGET_C_INCLUDES
Dan Willemsen [Wed, 18 May 2016 22:36:37 +0000 (15:36 -0700)]
Remove trailing newline from TARGET_C_INCLUDES

In preparation for comparing with the Soong variable.

Change-Id: I159507757ed7678a33a3c94e6d01d170485e251a

8 years agoMerge "Add fake libart"
Alex Light [Wed, 18 May 2016 21:17:09 +0000 (21:17 +0000)]
Merge "Add fake libart"
am: 49a4be8130

* commit '49a4be81304d2292bb6bd67ddaabe759d9e8c273':
  Add fake libart

Change-Id: Iacc59ada5b3323c81a8c70464f5634ab722c4f2b

8 years agoMerge "Add fake libart"
Alex Light [Wed, 18 May 2016 21:05:41 +0000 (21:05 +0000)]
Merge "Add fake libart"

8 years agoMerge "Remove (TARGET|HOST)_NO_UNDEFINED_LDFLAGS"
Dan Willemsen [Wed, 18 May 2016 20:52:31 +0000 (20:52 +0000)]
Merge "Remove (TARGET|HOST)_NO_UNDEFINED_LDFLAGS"
am: ac7a7bb0ba

* commit 'ac7a7bb0ba7b864a07ceb159dcd6a8b177866fb3':
  Remove (TARGET|HOST)_NO_UNDEFINED_LDFLAGS

Change-Id: I7e880084b72d90dc4de16fd674692b53b1e67de2

8 years agoMerge "Remove (TARGET|HOST)_NO_UNDEFINED_LDFLAGS"
Treehugger Robot [Wed, 18 May 2016 20:45:19 +0000 (20:45 +0000)]
Merge "Remove (TARGET|HOST)_NO_UNDEFINED_LDFLAGS"

8 years agoRemove (TARGET|HOST)_NO_UNDEFINED_LDFLAGS
Dan Willemsen [Wed, 18 May 2016 19:50:53 +0000 (12:50 -0700)]
Remove (TARGET|HOST)_NO_UNDEFINED_LDFLAGS

We never use it for host modules, and all the target configurations use
the same linker argument. This matches Soong.

Change-Id: Ibcba9a4ce340c7a12306d1fee620a04027c0e292

8 years agoAdd fake libart
Alex Light [Fri, 15 Apr 2016 17:19:02 +0000 (10:19 -0700)]
Add fake libart

Bug: 27775991

Change-Id: I54cbdf2340dcfdd9b3973d9d10c8bd94492736fb
(cherry picked from commit 6da74d8f1f0a06366fe93b885dc26f53401ec6b4)

8 years agoMerge "Remove make variables exported from Soong"
Dan Willemsen [Wed, 18 May 2016 00:40:31 +0000 (00:40 +0000)]
Merge "Remove make variables exported from Soong"
am: 30b57cd7d5

* commit '30b57cd7d5459c69fbd4332b988b5e636b529f4d':
  Remove make variables exported from Soong

Change-Id: I2b7a6baf5d8a8b3b0bb52e8fc4b16a5616f8f939

8 years agoMerge "Pass BUILD_HOST_static to Soong"
Dan Willemsen [Wed, 18 May 2016 00:40:30 +0000 (00:40 +0000)]
Merge "Pass BUILD_HOST_static to Soong"
am: 3b0990cbdc

* commit '3b0990cbdc941b584fb3000f76607c2a8065b603':
  Pass BUILD_HOST_static to Soong

Change-Id: I8292e35b7ca3fe14133b8675dbf8d6c54736e5aa

8 years agoMerge "Remove make variables exported from Soong"
Dan Willemsen [Wed, 18 May 2016 00:36:46 +0000 (00:36 +0000)]
Merge "Remove make variables exported from Soong"

8 years agoMerge "Pass BUILD_HOST_static to Soong"
Treehugger Robot [Wed, 18 May 2016 00:33:07 +0000 (00:33 +0000)]
Merge "Pass BUILD_HOST_static to Soong"

8 years agoPass BUILD_HOST_static to Soong
Dan Willemsen [Tue, 17 May 2016 23:40:03 +0000 (16:40 -0700)]
Pass BUILD_HOST_static to Soong

Change-Id: I0ac43a1dedf20e5251e05f12d120d0e6e2e1b1ee

8 years agoMerge "Remove redundant clang cppflags"
Dan Willemsen [Tue, 17 May 2016 19:51:27 +0000 (19:51 +0000)]
Merge "Remove redundant clang cppflags"
am: 8bbed5a635

* commit '8bbed5a6350a2a7ca1eb7d0886b783fa5b681180':
  Remove redundant clang cppflags

Change-Id: Ic45e02c74ec154bc74b42dd12df2c162b4a862ce

8 years agoMerge "Remove redundant clang cppflags"
Dan Willemsen [Tue, 17 May 2016 19:46:23 +0000 (19:46 +0000)]
Merge "Remove redundant clang cppflags"

8 years agoRemove redundant clang cppflags
Dan Willemsen [Tue, 17 May 2016 07:41:25 +0000 (00:41 -0700)]
Remove redundant clang cppflags

Cppflags always get added to cflags, so we don't need to duplicate clang
cppflags extras that are already in the clang cflags extras

Change-Id: Ic099f565f20fd993fc0713c033fbc5154373c98f

8 years agoMerge "Make apks depend on their certificates"
Shinichiro Hamaji [Tue, 17 May 2016 04:05:46 +0000 (04:05 +0000)]
Merge "Make apks depend on their certificates"
am: f0a465c2cb

* commit 'f0a465c2cb5921762d7d17d65cd7352d0f64c261':
  Make apks depend on their certificates

Change-Id: I1f89af20d7d4cb337a91203631ff68eb654b0e0c