OSDN Git Service

android-x86/build.git
7 years agoMerge "Revert "Revert "Merge changes from topic 'fsconfig-2'""" am: 5f60b74297 am...
Elliott Hughes [Tue, 27 Dec 2016 21:16:08 +0000 (21:16 +0000)]
Merge "Revert "Revert "Merge changes from topic 'fsconfig-2'""" am: 5f60b74297 am: 71f582ac30
am: 9d5a9e7c6e

Change-Id: I2af7cd105fa6e200ed28156f83c30c57b66f6d3c

7 years agoRevert "Revert "Merge changes from topic 'fsconfig-2'"" am: 2d7c86dfea am: feb4f2e54a
Elliott Hughes [Tue, 27 Dec 2016 21:15:54 +0000 (21:15 +0000)]
Revert "Revert "Merge changes from topic 'fsconfig-2'"" am: 2d7c86dfea am: feb4f2e54a
am: 8a2ed5159c

Change-Id: I7ff77ba1282fbddedbd10a3a63b055ac36ee83ae

7 years agoMerge "Revert "Revert "Merge changes from topic 'fsconfig-2'""" am: 5f60b74297
Elliott Hughes [Tue, 27 Dec 2016 21:09:07 +0000 (21:09 +0000)]
Merge "Revert "Revert "Merge changes from topic 'fsconfig-2'""" am: 5f60b74297
am: 71f582ac30

Change-Id: If090fbd6fef18dbed6258d58c7aa45d6ace27e14

7 years agoRevert "Revert "Merge changes from topic 'fsconfig-2'"" am: 2d7c86dfea
Elliott Hughes [Tue, 27 Dec 2016 21:08:52 +0000 (21:08 +0000)]
Revert "Revert "Merge changes from topic 'fsconfig-2'"" am: 2d7c86dfea
am: feb4f2e54a

Change-Id: I5e6d138662e8f21f85e77466f897ffab9afd0f2d

7 years agoMerge "Revert "Revert "Merge changes from topic 'fsconfig-2'"""
Elliott Hughes [Tue, 27 Dec 2016 21:01:24 +0000 (21:01 +0000)]
Merge "Revert "Revert "Merge changes from topic 'fsconfig-2'"""
am: 5f60b74297

Change-Id: Ib88d2780ee2a7ba0b070087cc1ed8921f4247100

7 years agoRevert "Revert "Merge changes from topic 'fsconfig-2'""
Elliott Hughes [Tue, 27 Dec 2016 21:01:23 +0000 (21:01 +0000)]
Revert "Revert "Merge changes from topic 'fsconfig-2'""
am: 2d7c86dfea

Change-Id: I825336a18f7d7525bb49dd65d24ddccbfef84ba5

7 years agoMerge "Revert "Revert "Merge changes from topic 'fsconfig-2'"""
Elliott Hughes [Tue, 27 Dec 2016 20:51:06 +0000 (20:51 +0000)]
Merge "Revert "Revert "Merge changes from topic 'fsconfig-2'"""

7 years agoMerge "Update pathmap.mk for renderscript support library migration" am: cafc7efee0...
Alan Viverette [Fri, 23 Dec 2016 03:21:05 +0000 (03:21 +0000)]
Merge "Update pathmap.mk for renderscript support library migration" am: cafc7efee0 am: 7621a86097
am: 670a4b4fa6

Change-Id: Ibae6e9e2b0eed11390b3d36970894952116c1a90

7 years agoMerge "Update pathmap.mk for renderscript support library migration" am: cafc7efee0
Alan Viverette [Fri, 23 Dec 2016 03:15:04 +0000 (03:15 +0000)]
Merge "Update pathmap.mk for renderscript support library migration" am: cafc7efee0
am: 7621a86097

Change-Id: I9adc6741d91caf5c575c11070b2277a50c3dc940

7 years agoMerge "Update pathmap.mk for renderscript support library migration"
Alan Viverette [Fri, 23 Dec 2016 03:08:34 +0000 (03:08 +0000)]
Merge "Update pathmap.mk for renderscript support library migration"
am: cafc7efee0

Change-Id: Ic85e61e12524b46073a0fd3b092eb42bc6d5c283

7 years agoMerge "Update pathmap.mk for renderscript support library migration"
Treehugger Robot [Fri, 23 Dec 2016 03:02:54 +0000 (03:02 +0000)]
Merge "Update pathmap.mk for renderscript support library migration"

7 years agoUpdate pathmap.mk for renderscript support library migration am: b78260919d
Alan Viverette [Fri, 23 Dec 2016 01:44:29 +0000 (01:44 +0000)]
Update pathmap.mk for renderscript support library migration am: b78260919d
am: e8b339d1d3

Change-Id: Ibe6eee89e8e1d847f42d1a79eb7ccb6d2fe39d8a

7 years agoUpdate pathmap.mk for renderscript support library migration
Alan Viverette [Fri, 23 Dec 2016 01:38:28 +0000 (01:38 +0000)]
Update pathmap.mk for renderscript support library migration
am: b78260919d

Change-Id: Ic8bdcfa3e55cb6b1f501efbff9aee9304811f41f

7 years agoUpdate pathmap.mk for renderscript support library migration
Alan Viverette [Tue, 26 Jul 2016 17:06:37 +0000 (13:06 -0400)]
Update pathmap.mk for renderscript support library migration

Bug: 30255901
Change-Id: I213baaf4c76a7e5b8d20168624b74eb61582d215
(cherry picked from commit 49f03349c818de16be3a0c74f6dc07c85b94b7b0)

7 years agoMerge "Update pathmap.mk for renderscript support library migration" into nyc-mr1...
Colin Cross [Fri, 23 Dec 2016 01:02:06 +0000 (01:02 +0000)]
Merge "Update pathmap.mk for renderscript support library migration" into nyc-mr1-dev-plus-aosp
am: 5b0573233f

Change-Id: Ie35be50e72068a71bc0e5cb64c48da529a60ffb2

7 years agoUpdate pathmap.mk for renderscript support library migration
Alan Viverette [Fri, 23 Dec 2016 01:01:56 +0000 (01:01 +0000)]
Update pathmap.mk for renderscript support library migration
am: 74b13397d9

Change-Id: I503654db7c70d6785e9b2559e9709fb06177733e

7 years agoUpdate pathmap.mk for renderscript support library migration
Alan Viverette [Tue, 26 Jul 2016 17:06:37 +0000 (13:06 -0400)]
Update pathmap.mk for renderscript support library migration

Bug: 30255901
Change-Id: I213baaf4c76a7e5b8d20168624b74eb61582d215
(cherry picked from commit 49f03349c818de16be3a0c74f6dc07c85b94b7b0)

7 years agoMerge "Update pathmap.mk for renderscript support library migration" into nyc-mr1...
Colin Cross [Fri, 23 Dec 2016 00:54:32 +0000 (00:54 +0000)]
Merge "Update pathmap.mk for renderscript support library migration" into nyc-mr1-dev-plus-aosp

7 years agoMerge "Remove --ignore_dirty=$(OUT_DIR)/% from Kati flags" am: fb2efba189 am: 952d5adcde
Dan Willemsen [Thu, 22 Dec 2016 23:45:17 +0000 (23:45 +0000)]
Merge "Remove --ignore_dirty=$(OUT_DIR)/% from Kati flags" am: fb2efba189 am: 952d5adcde
am: bbf841d45f

Change-Id: I0086eb66a855525560c3b962773350c221f9bb3d

7 years agoMerge "Remove --ignore_dirty=$(OUT_DIR)/% from Kati flags" am: fb2efba189
Dan Willemsen [Thu, 22 Dec 2016 23:39:47 +0000 (23:39 +0000)]
Merge "Remove --ignore_dirty=$(OUT_DIR)/% from Kati flags" am: fb2efba189
am: 952d5adcde

Change-Id: I57b99cf8d157dbcf8f10e8d1d4b56a8529d1354f

7 years agoMerge "Remove --ignore_dirty=$(OUT_DIR)/% from Kati flags"
Dan Willemsen [Thu, 22 Dec 2016 23:33:46 +0000 (23:33 +0000)]
Merge "Remove --ignore_dirty=$(OUT_DIR)/% from Kati flags"
am: fb2efba189

Change-Id: I63dd0ac17a099ac6da5e8e63be280983e042a839

7 years agoMerge "Remove --ignore_dirty=$(OUT_DIR)/% from Kati flags"
Dan Willemsen [Thu, 22 Dec 2016 23:27:37 +0000 (23:27 +0000)]
Merge "Remove --ignore_dirty=$(OUT_DIR)/% from Kati flags"

7 years agoUpdate pathmap.mk for renderscript support library migration
Alan Viverette [Tue, 26 Jul 2016 17:06:37 +0000 (13:06 -0400)]
Update pathmap.mk for renderscript support library migration

Bug: 30255901
Change-Id: I213baaf4c76a7e5b8d20168624b74eb61582d215
(cherry picked from commit 49f03349c818de16be3a0c74f6dc07c85b94b7b0)

7 years agoUpdate pathmap.mk for renderscript support library migration
Alan Viverette [Tue, 26 Jul 2016 17:06:37 +0000 (13:06 -0400)]
Update pathmap.mk for renderscript support library migration

Bug: 30255901
Change-Id: I213baaf4c76a7e5b8d20168624b74eb61582d215
(cherry picked from commit 49f03349c818de16be3a0c74f6dc07c85b94b7b0)

7 years agoRemove --ignore_dirty=$(OUT_DIR)/% from Kati flags
Dan Willemsen [Sat, 10 Sep 2016 06:18:22 +0000 (23:18 -0700)]
Remove --ignore_dirty=$(OUT_DIR)/% from Kati flags

We really should be re-running Kati when a file in here changes, since
it may actually affect the result. The general problem we've run into is
when there are two kati output files that are clean according to the
current rules, but if they actually ran we'd force an installclean.

This also had the side-effect of not running shell commands that touched
$OUT_DIR, like writing files using $(shell echo ... >out/...), now those
may be run.

This will cause Kati to re-read the makefiles more often -- twice when a
CleanSpec.mk changes, twice when switching products on the same device.
Basically every time we read the old state, do something about it, and
write out the new state, we need to rerun the next time so we aren't
continuously cleaning up what changed.

Bug: 30947985
Test: Manual, switching between configurations; enable --regen_debug
Change-Id: I888f9f8295f318f8214b2c79525cf94f457a5a8b

7 years agoMerge "Fix incremental builds with AAPT2" am: d25d80e193 am: b99d4b9e55
Dan Willemsen [Thu, 22 Dec 2016 21:41:49 +0000 (21:41 +0000)]
Merge "Fix incremental builds with AAPT2" am: d25d80e193 am: b99d4b9e55
am: 59ac51ee24

Change-Id: I78e58b155cee575e5313effb642d3843ef9d75cc

7 years agoMerge "embedded.mk: +android.hidl.memory@1.0-service" am: c1a11ec83f am: fbeb6b5f8f
Steven Moreland [Thu, 22 Dec 2016 21:40:43 +0000 (21:40 +0000)]
Merge "embedded.mk: +android.hidl.memory@1.0-service" am: c1a11ec83f am: fbeb6b5f8f
am: cfeaa71933

Change-Id: I0dd9004b41917caba17adc5af2a263212eef3da3

7 years agoMerge "Fix incremental builds with AAPT2" am: d25d80e193
Dan Willemsen [Thu, 22 Dec 2016 21:37:04 +0000 (21:37 +0000)]
Merge "Fix incremental builds with AAPT2" am: d25d80e193
am: b99d4b9e55

Change-Id: Ia623c9d0dddd26478174044c83c3eab34edc322b

7 years agoMerge "embedded.mk: +android.hidl.memory@1.0-service" am: c1a11ec83f
Steven Moreland [Thu, 22 Dec 2016 21:35:42 +0000 (21:35 +0000)]
Merge "embedded.mk: +android.hidl.memory@1.0-service" am: c1a11ec83f
am: fbeb6b5f8f

Change-Id: I4ceba4ea994f9c9304f7c54c16cf373f0170ac22

7 years agoMerge "Fix incremental builds with AAPT2"
Dan Willemsen [Thu, 22 Dec 2016 21:31:32 +0000 (21:31 +0000)]
Merge "Fix incremental builds with AAPT2"
am: d25d80e193

Change-Id: Iaee5e4d0588fcf15c73005f3ca68c5db51dcc5b7

7 years agoMerge "embedded.mk: +android.hidl.memory@1.0-service"
Steven Moreland [Thu, 22 Dec 2016 21:30:13 +0000 (21:30 +0000)]
Merge "embedded.mk: +android.hidl.memory@1.0-service"
am: c1a11ec83f

Change-Id: Ib83eb02579543c0ad4b0954c9632cc26cd568d85

7 years agoMerge "Fix incremental builds with AAPT2"
Dan Willemsen [Thu, 22 Dec 2016 21:28:24 +0000 (21:28 +0000)]
Merge "Fix incremental builds with AAPT2"

7 years agoMerge "embedded.mk: +android.hidl.memory@1.0-service"
Treehugger Robot [Thu, 22 Dec 2016 21:20:36 +0000 (21:20 +0000)]
Merge "embedded.mk: +android.hidl.memory@1.0-service"

7 years agoFix incremental builds with AAPT2
Dan Willemsen [Thu, 22 Dec 2016 21:17:17 +0000 (13:17 -0800)]
Fix incremental builds with AAPT2

When we removed the src/ directory, the R.stamp file was removed -- with
AAPT, this triggers src/android/Manifest.java to be regenerated. But
AAPT2 only uses the R.stamp file as a timestamp to find the
Manifest.java file, not to create it.

So add a new CleanSpec.mk to fix the builds by removing the target that
AAPT2 uses to generate the src/android/Manifest.java file.

Test: None
Change-Id: If56f326ad701f7f92aa7c8aeda57e92d9c62cff9

7 years agoMerge "Support non-gtest NATIVE_TESTS" am: 561b0a3753 am: 1ef5112475
Dan Willemsen [Thu, 22 Dec 2016 20:47:36 +0000 (20:47 +0000)]
Merge "Support non-gtest NATIVE_TESTS" am: 561b0a3753 am: 1ef5112475
am: 4ad881c067

Change-Id: Id4968904ba43183e38c04aa3cc83754bd599c1fb

7 years agoMerge "Support non-gtest NATIVE_TESTS" am: 561b0a3753
Dan Willemsen [Thu, 22 Dec 2016 20:42:06 +0000 (20:42 +0000)]
Merge "Support non-gtest NATIVE_TESTS" am: 561b0a3753
am: 1ef5112475

Change-Id: I7c16881f0efb637bf13a0af1e4c89640d7e218e6

7 years agoMerge "Support non-gtest NATIVE_TESTS"
Dan Willemsen [Thu, 22 Dec 2016 20:36:06 +0000 (20:36 +0000)]
Merge "Support non-gtest NATIVE_TESTS"
am: 561b0a3753

Change-Id: I2da6eb4db2e4ee03b2699c60540f79b580a1fad0

7 years agoMerge "Remove generated java source post clean logic" am: f57aa792c3 am: 5208e4f473
Dan Willemsen [Thu, 22 Dec 2016 20:30:06 +0000 (20:30 +0000)]
Merge "Remove generated java source post clean logic" am: f57aa792c3 am: 5208e4f473
am: 5ae5671a3b

Change-Id: Id43b680d5297ea0f3bcff3cbd42e6b16b50de167

7 years agoMerge "Support non-gtest NATIVE_TESTS"
Dan Willemsen [Thu, 22 Dec 2016 20:29:41 +0000 (20:29 +0000)]
Merge "Support non-gtest NATIVE_TESTS"

7 years agoMerge "Remove generated java source post clean logic" am: f57aa792c3
Dan Willemsen [Thu, 22 Dec 2016 20:24:35 +0000 (20:24 +0000)]
Merge "Remove generated java source post clean logic" am: f57aa792c3
am: 5208e4f473

Change-Id: I18c9cf7fa19346e08d25d9fcba3b5538a7bf1127

7 years agoMerge "Remove generated java source post clean logic"
Dan Willemsen [Thu, 22 Dec 2016 20:18:35 +0000 (20:18 +0000)]
Merge "Remove generated java source post clean logic"
am: f57aa792c3

Change-Id: I03b0b0368cd3e5500d60981c06135490af8eb3a9

7 years agoMerge "Remove generated java source post clean logic"
Treehugger Robot [Thu, 22 Dec 2016 20:09:13 +0000 (20:09 +0000)]
Merge "Remove generated java source post clean logic"

7 years agoembedded.mk: +android.hidl.memory@1.0-service
Steven Moreland [Thu, 15 Dec 2016 20:30:23 +0000 (12:30 -0800)]
embedded.mk: +android.hidl.memory@1.0-service

This is the service that provides shared memory for hidl/treble
processes.

Bug: 32185232
Test: builds
Change-Id: I79162a781daad7aa704f4ee071fef0bbdea59a18

7 years agoRemove generated java source post clean logic
Dan Willemsen [Thu, 22 Dec 2016 01:37:00 +0000 (17:37 -0800)]
Remove generated java source post clean logic

Just move the proto and renderscript sources into their own directories
-- the entire directory is wiped if the file list changes since the
command line will change. So we can just enable/disable pulling sources
from those directories based on whether there were files in the list or
not.

Bug: 30947985
Test: m -j java
Test: Remove a proto file from a java lib, ensure the generated source
      is not included.
Change-Id: If7529979de6fa62a651933a3a974f47b033851d6

7 years agoMerge "Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for...
Vijay Venkatraman [Thu, 22 Dec 2016 06:13:30 +0000 (06:13 +0000)]
Merge "Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules going into vendor partition, except when they already have LOCAL_SDK_VERSION set.""" am: 0c29ffb74d am: 01fa928500
am: 029741e4a8

Change-Id: I491bb7a8928691b85da1ed2dba53ecf339bafdd4

7 years agoRevert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules...
Vijay Venkatraman [Thu, 22 Dec 2016 06:13:17 +0000 (06:13 +0000)]
Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules going into vendor partition, except when they already have LOCAL_SDK_VERSION set."" am: 43a7f0c765 am: b3ada4048f
am: 64a1b146af

Change-Id: Ia5dda34e4fae98f0fe7dbe0b4a402d6cb45c1fc7

7 years agoMerge "Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for...
Vijay Venkatraman [Thu, 22 Dec 2016 06:09:00 +0000 (06:09 +0000)]
Merge "Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules going into vendor partition, except when they already have LOCAL_SDK_VERSION set.""" am: 0c29ffb74d
am: 01fa928500

Change-Id: Iec4bb1e049e1c531744a3aeeed074488e22a3e34

7 years agoRevert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules...
Vijay Venkatraman [Thu, 22 Dec 2016 06:08:46 +0000 (06:08 +0000)]
Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules going into vendor partition, except when they already have LOCAL_SDK_VERSION set."" am: 43a7f0c765
am: b3ada4048f

Change-Id: Iebc8f31f1d8bd5fab5557a706f8d2d25d97e507a

7 years agoMerge "Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for...
Vijay Venkatraman [Thu, 22 Dec 2016 06:03:17 +0000 (06:03 +0000)]
Merge "Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules going into vendor partition, except when they already have LOCAL_SDK_VERSION set."""
am: 0c29ffb74d

Change-Id: Idd3792357787a0265aca742fd82439dad394a2e7

7 years agoRevert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules...
Vijay Venkatraman [Thu, 22 Dec 2016 06:03:16 +0000 (06:03 +0000)]
Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules going into vendor partition, except when they already have LOCAL_SDK_VERSION set.""
am: 43a7f0c765

Change-Id: Ie5bfee7624066314f3446c8eeb5e7d202702016e

7 years agoMerge "Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for...
Vijay Venkatraman [Thu, 22 Dec 2016 05:54:02 +0000 (05:54 +0000)]
Merge "Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules going into vendor partition, except when they already have LOCAL_SDK_VERSION set."""

7 years agoRevert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules...
Vijay Venkatraman [Tue, 20 Dec 2016 17:50:21 +0000 (17:50 +0000)]
Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules going into vendor partition, except when they already have LOCAL_SDK_VERSION set.""

This reverts commit 823172e209ab92dbae6dd5a4ef750f73dbfc5aa8.

Test: build.ninja for any target doesnt change, unless
BOARD_VNDK_VERSION is turned on in BoardConfig.mk
Change-Id: I4e1baaf5a2251de20f71a47096ce53e23d7e2d80

7 years agoSupport non-gtest NATIVE_TESTS
Dan Willemsen [Thu, 22 Dec 2016 04:27:06 +0000 (20:27 -0800)]
Support non-gtest NATIVE_TESTS

We've had this in Soong for a while, but never supported it in Make.

Bug: 33819328
Test: Change LOCAL_GTEST on a module, check m -j ... showcommands
Change-Id: Id8f4b9908c82c05d9a986a38945b33bac578e991

7 years agoMerge "HOST_OUT_EXECUTABLES path is not needed in misc_info file" am: 376c0146b3...
Tao Bao [Wed, 21 Dec 2016 06:27:53 +0000 (06:27 +0000)]
Merge "HOST_OUT_EXECUTABLES path is not needed in misc_info file" am: 376c0146b3 am: 7def52bfe8
am: f2cffd6849

Change-Id: I7c43d7d46b4ea22e30c3ae36bc65408985df8783

7 years agoMerge "HOST_OUT_EXECUTABLES path is not needed in misc_info file" am: 376c0146b3
Tao Bao [Wed, 21 Dec 2016 06:22:52 +0000 (06:22 +0000)]
Merge "HOST_OUT_EXECUTABLES path is not needed in misc_info file" am: 376c0146b3
am: 7def52bfe8

Change-Id: I4473d91d021fc17bd3412bae0967a68dc7283aff

7 years agoMerge "HOST_OUT_EXECUTABLES path is not needed in misc_info file"
Tao Bao [Wed, 21 Dec 2016 06:17:22 +0000 (06:17 +0000)]
Merge "HOST_OUT_EXECUTABLES path is not needed in misc_info file"
am: 376c0146b3

Change-Id: I97065c6e4e0a6d90dde92b96deb97f520b83c21b

7 years agoMerge "HOST_OUT_EXECUTABLES path is not needed in misc_info file"
Tao Bao [Wed, 21 Dec 2016 06:08:23 +0000 (06:08 +0000)]
Merge "HOST_OUT_EXECUTABLES path is not needed in misc_info file"

7 years agoMerge "otatools: added missing shared library for make_ext4fs" am: 0ced0a1f50 am...
Tao Bao [Wed, 21 Dec 2016 04:46:48 +0000 (04:46 +0000)]
Merge "otatools: added missing shared library for make_ext4fs" am: 0ced0a1f50 am: 372a877659
am: b6f7b14c0e

Change-Id: Icb8c38c7f2440664c02c14d1c7b04ba03e7949b5

7 years agoMerge "otatools: added missing shared library for make_ext4fs" am: 0ced0a1f50
Tao Bao [Wed, 21 Dec 2016 04:41:17 +0000 (04:41 +0000)]
Merge "otatools: added missing shared library for make_ext4fs" am: 0ced0a1f50
am: 372a877659

Change-Id: I5cc501bd8f78cb4b1611bbc7e0e3b0a58bfd91f4

7 years agoMerge "otatools: added missing shared library for make_ext4fs"
Tao Bao [Wed, 21 Dec 2016 04:35:46 +0000 (04:35 +0000)]
Merge "otatools: added missing shared library for make_ext4fs"
am: 0ced0a1f50

Change-Id: I6586f71273ff21a6f9ca44cfba6808248e62bd3b

7 years agoMerge "otatools: added missing shared library for make_ext4fs"
Tao Bao [Wed, 21 Dec 2016 04:30:26 +0000 (04:30 +0000)]
Merge "otatools: added missing shared library for make_ext4fs"

7 years agoMerge "logpersist: introduce split to logcat and logpersist domains" am: 04f2cbd92a...
Mark Salyzyn [Tue, 20 Dec 2016 22:20:23 +0000 (22:20 +0000)]
Merge "logpersist: introduce split to logcat and logpersist domains" am: 04f2cbd92a am: 76b36cfb98
am: 76e0e2a53e

Change-Id: I306a26f8e8b6743b5e6c17c73bcfcb889c2f22e0

7 years agoMerge "logpersist: introduce split to logcat and logpersist domains" am: 04f2cbd92a
Mark Salyzyn [Tue, 20 Dec 2016 22:16:22 +0000 (22:16 +0000)]
Merge "logpersist: introduce split to logcat and logpersist domains" am: 04f2cbd92a
am: 76b36cfb98

Change-Id: Iec4ad75f0cd7d7171b506df7ea529a8152e3f4f5

7 years agoMerge "logpersist: introduce split to logcat and logpersist domains"
Mark Salyzyn [Tue, 20 Dec 2016 22:12:29 +0000 (22:12 +0000)]
Merge "logpersist: introduce split to logcat and logpersist domains"
am: 04f2cbd92a

Change-Id: I58f23b14630913eebe8ada09fa23c8ed9fbd90b0

7 years agoMerge "logpersist: introduce split to logcat and logpersist domains"
Treehugger Robot [Tue, 20 Dec 2016 22:08:41 +0000 (22:08 +0000)]
Merge "logpersist: introduce split to logcat and logpersist domains"

7 years agoMerge "Add ART_USE_READ_BARRIER to product variables." am: e34819ccce am: f9e277e1fe
Hiroshi Yamauchi [Tue, 20 Dec 2016 20:58:42 +0000 (20:58 +0000)]
Merge "Add ART_USE_READ_BARRIER to product variables." am: e34819ccce am: f9e277e1fe
am: 9876e6483b

Change-Id: I6a0d6c40edf0a80fb1402068b2ae4b845dcd5da5

7 years agoMerge "Add ART_USE_READ_BARRIER to product variables." am: e34819ccce
Hiroshi Yamauchi [Tue, 20 Dec 2016 20:40:10 +0000 (20:40 +0000)]
Merge "Add ART_USE_READ_BARRIER to product variables." am: e34819ccce
am: f9e277e1fe

Change-Id: I4a0addd85f0e1dcc98250a60084f88be118276cc

7 years agologpersist: introduce split to logcat and logpersist domains
Mark Salyzyn [Wed, 26 Oct 2016 21:19:32 +0000 (14:19 -0700)]
logpersist: introduce split to logcat and logpersist domains

logcat_exec transition to logpersist from init with perms

Test: compile
Bug: 30566487
Change-Id: I0cea55f71be011e921841ef9d3e1283f11606f36

7 years agoMerge "Add ART_USE_READ_BARRIER to product variables."
Hiroshi Yamauchi [Tue, 20 Dec 2016 19:04:19 +0000 (19:04 +0000)]
Merge "Add ART_USE_READ_BARRIER to product variables."
am: e34819ccce

Change-Id: Iaa92156d93110ddfd1a95f677bc02abc6dbcb5c5

7 years agoMerge "Add ART_USE_READ_BARRIER to product variables."
Hiroshi Yamauchi [Tue, 20 Dec 2016 18:56:19 +0000 (18:56 +0000)]
Merge "Add ART_USE_READ_BARRIER to product variables."

7 years agoHOST_OUT_EXECUTABLES path is not needed in misc_info file
Vikram Dattu [Fri, 16 Dec 2016 08:45:19 +0000 (09:45 +0100)]
HOST_OUT_EXECUTABLES path is not needed in misc_info file

HOST_OUT_EXECUTABLES is already added to the PATH variable,
so it is not needed to add the path info for binaries in
misc_info.txt and <partition>_image_info.txt.

Earlier the mkuserimg item in the build_image dictionary is
hardcoded to "mkuserimg.sh", but now it is customized for
mkuserimg.sh and mkuserimg_mke2fs.sh, and maintained in
dictionary "ext_mkuserimg=$(MKEXTUSERIMG)" in misc_info.txt
and <partition>_image_info.txt, where it is used in the
build_image script while creating the images.

The problem here is the value for this key is set to build
path of the file mkuserimg file
$(HOST_OUT_EXECUTABLES)/mkuserimg.sh,
i.e. out/host/linux_x86/bin/mkuserimg.sh,
there by standalone signing the images using otatools is
not working as the executables are packed in bin folder.

Test: tools/releasetools/sign_target_files_apks
    -p <extracted ota-tools.zip folder>
    --extra_signapk_args=-f /etc/opt/cert_data.dat
    -v
    --replace_verity_private_key ~/build/target/product/security/verity
    --replace_verity_public_key ~/build/target/product/security/verity.x509.pem
    -k <key maping>
    <input target files zip>
    <output target files zip>

Change-Id: I57af1025ec38f3794f779c49faa0bf965afc6a5d

7 years agootatools: added missing shared library for make_ext4fs
Vikram Dattu [Fri, 16 Dec 2016 15:33:03 +0000 (16:33 +0100)]
otatools: added missing shared library for make_ext4fs

Added the missing shared library libpcre2.so for make_ext4fs
in the otatools.zip.
Standalone signing the images with otatools zip is not working
due to missing library for make_ext4fs.

Test: tools/releasetools/sign_target_files_apks
    -p <extracted ota-tools.zip folder>
    --extra_signapk_args=-f /etc/opt/cert_data.dat
    -v
    --replace_verity_private_key ~/build/target/product/security/verity
    --replace_verity_public_key ~/build/target/product/security/verity.x509.pem
    -k <key maping>
    <input target files zip>
    <output target files zip>

Change-Id: I4fc71a1c710f3075bb3bdb90d915538526004ee6

7 years agoAdd ART_USE_READ_BARRIER to product variables.
Hiroshi Yamauchi [Fri, 16 Dec 2016 00:00:41 +0000 (16:00 -0800)]
Add ART_USE_READ_BARRIER to product variables.

Bug: 33492005
Test: top-level build for angler.
Change-Id: I12aa2e18487c16423223f110b6dfb0d6dff1e7e8

7 years agoMerge "blockimgdiff.py: Add a test case for ReviseStashSize()." am: f967849693 am...
Tao Bao [Mon, 19 Dec 2016 21:29:16 +0000 (21:29 +0000)]
Merge "blockimgdiff.py: Add a test case for ReviseStashSize()." am: f967849693 am: a10cd259fc
am: 2137170e03

Change-Id: Ibc4c89be69129a3c1c728b21d8f9dd8563ed71d3

7 years agoMerge "blockimgdiff.py: Add a test case for ReviseStashSize()." am: f967849693
Tao Bao [Mon, 19 Dec 2016 21:25:46 +0000 (21:25 +0000)]
Merge "blockimgdiff.py: Add a test case for ReviseStashSize()." am: f967849693
am: a10cd259fc

Change-Id: Ib8102e58f5c5df97550aa200a392ff4e0d567f00

7 years agoMerge "blockimgdiff.py: Add a test case for ReviseStashSize()."
Tao Bao [Mon, 19 Dec 2016 21:22:45 +0000 (21:22 +0000)]
Merge "blockimgdiff.py: Add a test case for ReviseStashSize()."
am: f967849693

Change-Id: Ibb1ffeb5c5e13578b4669c5525d270c4f3b7175d

7 years agoMerge "blockimgdiff.py: Add a test case for ReviseStashSize()."
Tao Bao [Mon, 19 Dec 2016 21:15:17 +0000 (21:15 +0000)]
Merge "blockimgdiff.py: Add a test case for ReviseStashSize()."

7 years agoblockimgdiff.py: Add a test case for ReviseStashSize().
Tao Bao [Mon, 19 Dec 2016 19:01:38 +0000 (11:01 -0800)]
blockimgdiff.py: Add a test case for ReviseStashSize().

Bug: 33687949
Test: python -m unittest test_blockimgdiff
Change-Id: I31e42648d2c0e60b941908c098ce5ccc967861ca

7 years agoRevert "Revert "Merge changes from topic 'fsconfig-2'""
Elliott Hughes [Tue, 13 Dec 2016 23:37:07 +0000 (23:37 +0000)]
Revert "Revert "Merge changes from topic 'fsconfig-2'""

This reverts commit fad4b4b715be25e874829345a14219716fc8c157.

Incorporating the following fixes:

1.

fsconfig: fix fs_config_* build for discovered headers

When android_file system_config.h is picked up from the device
directory, neither TARGET_FS_CONFIG_GEN or TARGET_ANDROID_FILESYSTEM_CONFIG_H
are specified. Thus, the build is not generating the required fs_config_files
and fs_config_dirs.

Test: Ensure that make fs_config_files works, and produces the same output as before
      Build the system image and mount it as a loop back and dump the file system
      capabilities with getcap. Verify that output to the supplied
      android_file system_config.h

From the loopback of the system.img mount, from CWD system/bin:
$ getcap *
cnss-daemon = cap_net_bind_service+ep
hostapd = cap_net_admin,cap_net_raw+ep
imsdatadaemon = cap_net_bind_service+ep
ims_rtp_daemon = cap_net_bind_service+ep
logd = cap_setgid,cap_audit_control,cap_syslog+ep
mm-qcamera-daemon = cap_sys_nice+ep
pm-service = cap_net_bind_service+ep
run-as = cap_setgid,cap_setuid+ep
surfaceflinger = cap_sys_nice+ep
webview_zygote32 = cap_setgid,cap_setuid,cap_setpcap+ep
webview_zygote64 = cap_setgid,cap_setuid,cap_setpcap+ep

Compared to the android_filesystem_config.h:
    { 00700, AID_CAMERA,    AID_SHELL,     (1ULL << CAP_SYS_NICE), "system/bin/mm-qcamera-daemon" },
    { 00755, AID_SYSTEM,    AID_SYSTEM,    (1ULL << CAP_NET_BIND_SERVICE), "system/bin/pm-service" },
    { 00755, AID_SYSTEM,    AID_SYSTEM,    (1ULL << CAP_NET_BIND_SERVICE), "system/bin/imsdatadaemon" },
    { 00755, AID_SYSTEM,    AID_RADIO,     (1ULL << CAP_NET_BIND_SERVICE), "system/bin/ims_rtp_daemon" },
    { 00755, AID_SYSTEM,    AID_SYSTEM,    (1ULL << CAP_NET_BIND_SERVICE), "system/bin/cnss-daemon"},

2.

fsconfig: fix error message for duplicate AID

Fixes:
    raise ValueError('Duplicate aid value "%u" for %s' % value,
TypeError: %u format: a number is required, not str

and

    raise ValueError('Duplicate aid value "%s" for %s' % value,
TypeError: not enough arguments for format string

3.

fsconfig: add test for duplicate ranges

Add a test for duplicate range detection.

4.

fsconfig: skip AID_APP, AID_USER and all ranges

Do not output AID_APP, AID_USER and ranges. A range
is defined as ending with AID_ and ending in _START or
_END.

5.

fsconfig: test for skip AID_APP, AID_USER and all ranges

Test against AIDs that caused the bionic tests to fail.

Change-Id: I95569a9ccc83bd3231f8a6f395532cc2de316bd2
Signed-off-by: William Roberts <william.c.roberts@intel.com>
7 years agoMerge "Revert "Add build dependencies for split sepolicy files."" am: cbdc0bd096...
Daniel Cashman [Sat, 17 Dec 2016 01:26:13 +0000 (01:26 +0000)]
Merge "Revert "Add build dependencies for split sepolicy files."" am: cbdc0bd096 am: 5e8be7b822
am: 6549a83888

Change-Id: I5e6b621a55b6bd67f53559bc89dc0e757c1e74a5

7 years agoMerge "Revert "Add build dependencies for split sepolicy files."" am: cbdc0bd096
Daniel Cashman [Sat, 17 Dec 2016 01:16:42 +0000 (01:16 +0000)]
Merge "Revert "Add build dependencies for split sepolicy files."" am: cbdc0bd096
am: 5e8be7b822

Change-Id: I6b1e6db6a505f8a65879228dc8fa9b1863724ca1

7 years agoMerge "Revert "Add build dependencies for split sepolicy files.""
Daniel Cashman [Sat, 17 Dec 2016 01:08:18 +0000 (01:08 +0000)]
Merge "Revert "Add build dependencies for split sepolicy files.""
am: cbdc0bd096

Change-Id: Ie73ea2b943a153422e0373ef291f7306747e5420

7 years agoMerge "Revert "Add build dependencies for split sepolicy files.""
Daniel Cashman [Sat, 17 Dec 2016 00:59:42 +0000 (00:59 +0000)]
Merge "Revert "Add build dependencies for split sepolicy files.""

7 years agoRevert "Add build dependencies for split sepolicy files."
Daniel Cashman [Sat, 17 Dec 2016 00:53:52 +0000 (00:53 +0000)]
Revert "Add build dependencies for split sepolicy files."

This reverts commit 086189145caa9b154d02aa3a888a8815bb60a0d5.

Change-Id: Idfd210d1f16eefcedda6154b0361611f53c5158f

7 years agoMerge "Add build dependencies for split sepolicy files." am: 298f9b5925 am: bc1832f381
dcashman [Sat, 17 Dec 2016 00:41:10 +0000 (00:41 +0000)]
Merge "Add build dependencies for split sepolicy files." am: 298f9b5925 am: bc1832f381
am: ced437a479

Change-Id: I06a95e8a22569ad4ab0d2586ba630910278c36df

7 years agoMerge "Add build dependencies for split sepolicy files." am: 298f9b5925
dcashman [Sat, 17 Dec 2016 00:32:40 +0000 (00:32 +0000)]
Merge "Add build dependencies for split sepolicy files." am: 298f9b5925
am: bc1832f381

Change-Id: Ic0a40500003afdd54e1a68cfec2937ae0f2aee06

7 years agoMerge "Add build dependencies for split sepolicy files."
dcashman [Sat, 17 Dec 2016 00:23:38 +0000 (00:23 +0000)]
Merge "Add build dependencies for split sepolicy files."
am: 298f9b5925

Change-Id: I8e8ef53b98d4341deab6f5ddb54cac6f30329e9c

7 years agoMerge "releasetools: Fix the computation in ReviseStashSize()." am: 9cc98767ad am...
Tao Bao [Sat, 17 Dec 2016 00:23:34 +0000 (00:23 +0000)]
Merge "releasetools: Fix the computation in ReviseStashSize()." am: 9cc98767ad am: bf32e87669
am: b317d1c6ec

Change-Id: I9d00270c1ce02b1b93067d4aa0a09ed64f3daf9a

7 years agoMerge "Add build dependencies for split sepolicy files."
Treehugger Robot [Sat, 17 Dec 2016 00:17:12 +0000 (00:17 +0000)]
Merge "Add build dependencies for split sepolicy files."

7 years agoMerge "releasetools: Fix the computation in ReviseStashSize()." am: 9cc98767ad
Tao Bao [Sat, 17 Dec 2016 00:15:05 +0000 (00:15 +0000)]
Merge "releasetools: Fix the computation in ReviseStashSize()." am: 9cc98767ad
am: bf32e87669

Change-Id: I505288a01a652337a8290ee148959b24a0d79ea4

7 years agoMerge "releasetools: Fix the computation in ReviseStashSize()."
Tao Bao [Sat, 17 Dec 2016 00:07:34 +0000 (00:07 +0000)]
Merge "releasetools: Fix the computation in ReviseStashSize()."
am: 9cc98767ad

Change-Id: I2fbadc053c017b3a52cc2856f9b86511b8cb6a44

7 years agoMerge "releasetools: Fix the computation in ReviseStashSize()."
Tao Bao [Fri, 16 Dec 2016 23:57:40 +0000 (23:57 +0000)]
Merge "releasetools: Fix the computation in ReviseStashSize()."

7 years agoAdd build dependencies for split sepolicy files.
dcashman [Mon, 28 Nov 2016 15:19:35 +0000 (07:19 -0800)]
Add build dependencies for split sepolicy files.

Add build targets for split sepolicy files so they'll appear in the root dir for
on-device compilation.  nonplat_sepolicy will eventually be removed as it should
be provided by a different partition.  Also replace sepolicy.recovery with the
appropriate split components.

Bug: 31363362
Test: Policy builds on-device and boots.
Change-Id: I017dabe6940c3cd20de6c00bb5253274d5a9269b

7 years agoMerge "Add default NetworkRecommendation to core.mk" am: 95f616b960 am: f4251ee777
Joe LaPenna [Fri, 16 Dec 2016 20:51:02 +0000 (20:51 +0000)]
Merge "Add default NetworkRecommendation to core.mk" am: 95f616b960 am: f4251ee777
am: e07d894eb5

Change-Id: Id652ac50d15879466431cc01083e771f92044cc2

7 years agoMerge "Add default NetworkRecommendation to core.mk" am: 95f616b960
Joe LaPenna [Fri, 16 Dec 2016 20:43:06 +0000 (20:43 +0000)]
Merge "Add default NetworkRecommendation to core.mk" am: 95f616b960
am: f4251ee777

Change-Id: I95ab94b579c4e72f685bcfc2d7b68127dbc060e8

7 years agoMerge "Add default NetworkRecommendation to core.mk"
Joe LaPenna [Fri, 16 Dec 2016 20:35:04 +0000 (20:35 +0000)]
Merge "Add default NetworkRecommendation to core.mk"
am: 95f616b960

Change-Id: Ice21caa64e01e15911d9f5979cd0db345e5686f1

7 years agoMerge "Add default NetworkRecommendation to core.mk"
Treehugger Robot [Fri, 16 Dec 2016 20:23:47 +0000 (20:23 +0000)]
Merge "Add default NetworkRecommendation to core.mk"

7 years agoreleasetools: Fix the computation in ReviseStashSize().
Tao Bao [Fri, 16 Dec 2016 19:13:55 +0000 (11:13 -0800)]
releasetools: Fix the computation in ReviseStashSize().

We compute the max stashed_blocks in ReviseStashSize(), prior to calling
WriteTransfers(), to avoid running out of space due to stashing.

There is a bug when computing the to-be-freed stashed blocks, where we
wrongly free the space _before_ executing the transfer command. This leads
to a script failure where the max stash size violates the max allowed
size in WriteTransfers().

Note that this bug doesn't affect already generated packages. It's only
an underestimate in ReviseStashSize(). The check in WriteTransfers() has
been correct to ensure the max stash size.

Bug: 33687949
Test: Successfully generated incremental OTA which failed previously.
Change-Id: I4f4f043c6f521fce81ca5286e6156f22d99bf7f7

7 years agoAdd default NetworkRecommendation to core.mk
Joe LaPenna [Thu, 8 Dec 2016 00:06:43 +0000 (16:06 -0800)]
Add default NetworkRecommendation to core.mk

This makes the apk avaiable on all devices and can be overridden on a
per-product basis using LOCAL_OVERRIDES_PACKAGES.

BUG: 33224286
Test: Verified with lunch aosp_bullhead-userdebug; make

Change-Id: Ib345193caa4431b6405294bd8759d93349335814

7 years agoMerge "aapt no longer needed for signing APKs" am: 3cfff7386f am: 2c70770e93
Alex Klyubin [Fri, 16 Dec 2016 17:47:24 +0000 (17:47 +0000)]
Merge "aapt no longer needed for signing APKs" am: 3cfff7386f am: 2c70770e93
am: bf78cdd81e

Change-Id: I25988629bf8c0a8f2a6f8894511b199cd2d2aed4