OSDN Git Service

android-x86/build.git
7 years agoresolve merge conflicts of e04c941 to stage-aosp-master
Benoit Lamarche [Tue, 6 Dec 2016 11:11:58 +0000 (11:11 +0000)]
resolve merge conflicts of e04c941 to stage-aosp-master
am: 0e61b46673

Change-Id: I988764ab18ddd8ae3219c0c4c73b4b92e7e83abb

7 years agoresolve merge conflicts of e04c941 to stage-aosp-master
Benoit Lamarche [Tue, 6 Dec 2016 10:32:41 +0000 (11:32 +0100)]
resolve merge conflicts of e04c941 to stage-aosp-master

Change-Id: I92ca7c5a10532220031dc799ad8900c9b20dc6fe

7 years agoMerge "Set platform min sdk for Jack to o-b1"
Benoit Lamarche [Tue, 6 Dec 2016 10:16:25 +0000 (10:16 +0000)]
Merge "Set platform min sdk for Jack to o-b1"

7 years agoMerge "Tell Soong about TARGET_COPY_OUT_VENDOR" am: 47b0322534
Dan Willemsen [Tue, 6 Dec 2016 03:36:34 +0000 (03:36 +0000)]
Merge "Tell Soong about TARGET_COPY_OUT_VENDOR" am: 47b0322534
am: 0deb783a52

Change-Id: Icb3d257945201bdfdff1fb562d06faf3c009788d

7 years agoMerge "Tell Soong about TARGET_COPY_OUT_VENDOR"
Dan Willemsen [Tue, 6 Dec 2016 03:32:05 +0000 (03:32 +0000)]
Merge "Tell Soong about TARGET_COPY_OUT_VENDOR"
am: 47b0322534

Change-Id: I55ac26073caf34173f6c051f87e10b651c23589b

7 years agoMerge "Tell Soong about TARGET_COPY_OUT_VENDOR"
Treehugger Robot [Tue, 6 Dec 2016 03:27:00 +0000 (03:27 +0000)]
Merge "Tell Soong about TARGET_COPY_OUT_VENDOR"

7 years agoMerge "Remove aidl, proto, objc from soong_problems" am: bbc072f716
Dan Willemsen [Tue, 6 Dec 2016 02:34:58 +0000 (02:34 +0000)]
Merge "Remove aidl, proto, objc from soong_problems" am: bbc072f716
am: 55b1651181

Change-Id: Ia18925f8aebf81bcd8707d29f88eef5fa7b6cee0

7 years agoMerge "Remove aidl, proto, objc from soong_problems"
Dan Willemsen [Tue, 6 Dec 2016 02:32:30 +0000 (02:32 +0000)]
Merge "Remove aidl, proto, objc from soong_problems"
am: bbc072f716

Change-Id: Ifba3b1ebb0e9ca018495fc1f93104823d51a516e

7 years agoMerge "Remove aidl, proto, objc from soong_problems"
Treehugger Robot [Tue, 6 Dec 2016 02:28:35 +0000 (02:28 +0000)]
Merge "Remove aidl, proto, objc from soong_problems"

7 years agoMerge "Soong now exports AIDL_CPP" am: 06a2daac72
Dan Willemsen [Tue, 6 Dec 2016 02:28:30 +0000 (02:28 +0000)]
Merge "Soong now exports AIDL_CPP" am: 06a2daac72
am: f1e23b77f4

Change-Id: I0aa93e2a1eb2803b46c70019eee23d08a47b4c9d

7 years agoMerge "Soong now exports AIDL_CPP"
Dan Willemsen [Tue, 6 Dec 2016 02:25:36 +0000 (02:25 +0000)]
Merge "Soong now exports AIDL_CPP"
am: 06a2daac72

Change-Id: I704c568b71cd95c6a17545d6694095b72e5c097c

7 years agoMerge "Soong now exports AIDL_CPP"
Treehugger Robot [Tue, 6 Dec 2016 02:20:39 +0000 (02:20 +0000)]
Merge "Soong now exports AIDL_CPP"

7 years agoTell Soong about TARGET_COPY_OUT_VENDOR
Dan Willemsen [Tue, 6 Dec 2016 01:46:14 +0000 (17:46 -0800)]
Tell Soong about TARGET_COPY_OUT_VENDOR

So that it can properly install proprietary components in system/vendor/
or vendor/

Test: lunch aosp_arm-eng; m -j vulkan.default
Test: lunch aosp_flounder-eng; m -j vulkan.default
Change-Id: I98384d2b4f09c3b5de2ed04417880f366828234e

7 years agoRemove aidl, proto, objc from soong_problems
Dan Willemsen [Tue, 6 Dec 2016 00:38:14 +0000 (16:38 -0800)]
Remove aidl, proto, objc from soong_problems

We support these in Soong now, so stop marking them in soong_to_convert.

Test: Compare soong_to_convert.txt
Change-Id: I89befdfd8c4eaa04ab626d8be090765a1b879d8b

7 years agoSoong now exports AIDL_CPP
Dan Willemsen [Mon, 5 Dec 2016 23:16:38 +0000 (15:16 -0800)]
Soong now exports AIDL_CPP

So remove it here.

Test: mmma -j system/tools/aidl
Change-Id: Ia92ce6499881c1aec42900fcfdb4e790a67b62b5

7 years agoManually merge commit 'c13da91' into stage-aosp-master
Adrien Schildknecht [Sat, 3 Dec 2016 04:12:53 +0000 (04:12 +0000)]
Manually merge commit 'c13da91' into stage-aosp-master
am: ada51f3b8f

Change-Id: Idc324a9e89bd4bf7e099395a72b5868d7040d545

7 years agoManually merge commit 'c13da91' into stage-aosp-master
The Android Automerger [Sat, 3 Dec 2016 04:02:09 +0000 (04:02 +0000)]
Manually merge commit 'c13da91' into stage-aosp-master

* commit 'c13da91':
  Add support for creating ext4 images with mke2fs

BUG:33304034

7 years agoMerge "Add support for creating ext4 images with mke2fs"
Treehugger Robot [Fri, 2 Dec 2016 22:48:21 +0000 (22:48 +0000)]
Merge "Add support for creating ext4 images with mke2fs"

7 years agoMerge "Sort SELinux package inclusion." am: 15e1b5e239
dcashman [Fri, 2 Dec 2016 22:40:54 +0000 (22:40 +0000)]
Merge "Sort SELinux package inclusion." am: 15e1b5e239
am: d1b032237a

Change-Id: Ie3aaaa4ea5963c405b5363cf3258b3817390640a

7 years agoMerge "Sort SELinux package inclusion."
dcashman [Fri, 2 Dec 2016 22:36:28 +0000 (22:36 +0000)]
Merge "Sort SELinux package inclusion."
am: 15e1b5e239

Change-Id: I2411d85662baf7278d34955bd6eb7ae6938b1956

7 years agoMerge "Sort SELinux package inclusion."
Treehugger Robot [Fri, 2 Dec 2016 22:25:42 +0000 (22:25 +0000)]
Merge "Sort SELinux package inclusion."

7 years agoMerge "Fix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES" am: 1498712a6b
Colin Cross [Fri, 2 Dec 2016 22:09:27 +0000 (22:09 +0000)]
Merge "Fix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES" am: 1498712a6b
am: 51c1eeefb3

Change-Id: I5e05a8d69bc1bf02e8831333a1bbe483e13e3227

7 years agoMerge "Fix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES"
Colin Cross [Fri, 2 Dec 2016 22:00:26 +0000 (22:00 +0000)]
Merge "Fix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES"
am: 1498712a6b

Change-Id: Iec7d58d837879bc4a63818d09881873f56d14779

7 years agoMerge "Fix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES"
Colin Cross [Fri, 2 Dec 2016 21:47:57 +0000 (21:47 +0000)]
Merge "Fix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES"

7 years agoSort SELinux package inclusion.
dcashman [Fri, 2 Dec 2016 17:32:15 +0000 (09:32 -0800)]
Sort SELinux package inclusion.

This section will be modified as part of splitting these packages into platform
and non-platform components.  Sort them all to avoid conflicts.

Bug: 31363362
Test: Builds
Change-Id: I91fb4d4d7c0a6971a19047ef2eb2981770a122ff

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff...
Marco Nelissen [Fri, 2 Dec 2016 17:07:23 +0000 (17:07 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff83  -s ours am: 953a9eb3d3 am: 14d24b3d5f  -s ours am: 0d45d96082 am: 6f45a5f721 am: 22b2728055 am: 37d1ec0632  -s ours am: f8dc0c9dc5 am: c65b6de802 am: 56aa9f17ba
am: 6127b67b64

Change-Id: Ie604d50be0d1805595005eadf49457fca95126f0

7 years agoDO NOT MERGE increase generic_mips system partition am: 7824073a36 -s ours am: 0c041...
Marco Nelissen [Fri, 2 Dec 2016 17:07:06 +0000 (17:07 +0000)]
DO NOT MERGE increase generic_mips system partition am: 7824073a36  -s ours am: 0c041e9ada am: 29ee191947  -s ours am: 16ee67f1a7 am: 8fc84f4de0 am: 7474d313f9 am: ac0ca8f326  -s ours am: 58c4e2e48a am: 32711700ab am: 38ae17c46d
am: 85e78564d3

Change-Id: I5ae4cfc8f552b8f9bc94a3546d037ebd716a3d5a

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff...
Marco Nelissen [Fri, 2 Dec 2016 17:00:23 +0000 (17:00 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff83  -s ours am: 953a9eb3d3 am: 14d24b3d5f  -s ours am: 0d45d96082 am: 6f45a5f721 am: 22b2728055 am: 37d1ec0632  -s ours am: f8dc0c9dc5 am: c65b6de802
am: 56aa9f17ba

Change-Id: I323162303f0d7d86d6de82aba740fbd50728714f

7 years agoDO NOT MERGE increase generic_mips system partition am: 7824073a36 -s ours am: 0c041...
Marco Nelissen [Fri, 2 Dec 2016 17:00:05 +0000 (17:00 +0000)]
DO NOT MERGE increase generic_mips system partition am: 7824073a36  -s ours am: 0c041e9ada am: 29ee191947  -s ours am: 16ee67f1a7 am: 8fc84f4de0 am: 7474d313f9 am: ac0ca8f326  -s ours am: 58c4e2e48a am: 32711700ab
am: 38ae17c46d

Change-Id: I2f4d64808446f39ef201b6629eeae432276ead6c

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff...
Marco Nelissen [Fri, 2 Dec 2016 16:53:19 +0000 (16:53 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff83  -s ours am: 953a9eb3d3 am: 14d24b3d5f  -s ours am: 0d45d96082 am: 6f45a5f721 am: 22b2728055 am: 37d1ec0632  -s ours am: f8dc0c9dc5
am: c65b6de802

Change-Id: I76291a36fa5fb74d081432d97c681eafde2caefe

7 years agoDO NOT MERGE increase generic_mips system partition am: 7824073a36 -s ours am: 0c041...
Marco Nelissen [Fri, 2 Dec 2016 16:53:05 +0000 (16:53 +0000)]
DO NOT MERGE increase generic_mips system partition am: 7824073a36  -s ours am: 0c041e9ada am: 29ee191947  -s ours am: 16ee67f1a7 am: 8fc84f4de0 am: 7474d313f9 am: ac0ca8f326  -s ours am: 58c4e2e48a
am: 32711700ab

Change-Id: I0c8041004cd52112234e1ef368bf501262a6668c

7 years agoBuild recovery-two-step.img for two-step OTAs. am: 47ec5ab561
Tao Bao [Fri, 2 Dec 2016 16:53:04 +0000 (16:53 +0000)]
Build recovery-two-step.img for two-step OTAs. am: 47ec5ab561
am: eb9de30596

Change-Id: I5f9b5d5ab4e4b0702dd110b1e70871b8df2db2df

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff...
Marco Nelissen [Fri, 2 Dec 2016 16:46:48 +0000 (16:46 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff83  -s ours am: 953a9eb3d3 am: 14d24b3d5f  -s ours am: 0d45d96082 am: 6f45a5f721 am: 22b2728055 am: 37d1ec0632  -s ours
am: f8dc0c9dc5

Change-Id: Id20a467fc9c4883437cdf22779b6d7466f1b1bcb

7 years agoDO NOT MERGE increase generic_mips system partition am: 7824073a36 -s ours am: 0c041...
Marco Nelissen [Fri, 2 Dec 2016 16:46:34 +0000 (16:46 +0000)]
DO NOT MERGE increase generic_mips system partition am: 7824073a36  -s ours am: 0c041e9ada am: 29ee191947  -s ours am: 16ee67f1a7 am: 8fc84f4de0 am: 7474d313f9 am: ac0ca8f326  -s ours
am: 58c4e2e48a

Change-Id: Iba9549d8886e7b4389dd4b9e7819e0036be27a27

7 years agoBuild recovery-two-step.img for two-step OTAs.
Tao Bao [Fri, 2 Dec 2016 16:46:33 +0000 (16:46 +0000)]
Build recovery-two-step.img for two-step OTAs.
am: 47ec5ab561

Change-Id: I5288993e010fca9abab66a6aece45a48d1844d43

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff...
Marco Nelissen [Fri, 2 Dec 2016 16:39:47 +0000 (16:39 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff83  -s ours am: 953a9eb3d3 am: 14d24b3d5f  -s ours am: 0d45d96082 am: 6f45a5f721 am: 22b2728055
am: 37d1ec0632  -s ours

Change-Id: I428c6d48643b7237bbbf8104589c210d25eb1055

7 years agoDO NOT MERGE increase generic_mips system partition am: 7824073a36 -s ours am: 0c041...
Marco Nelissen [Fri, 2 Dec 2016 16:39:32 +0000 (16:39 +0000)]
DO NOT MERGE increase generic_mips system partition am: 7824073a36  -s ours am: 0c041e9ada am: 29ee191947  -s ours am: 16ee67f1a7 am: 8fc84f4de0 am: 7474d313f9
am: ac0ca8f326  -s ours

Change-Id: Ie648485e2ee7e77f4cb3d1908e77869aeb60b1b0

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff...
Marco Nelissen [Fri, 2 Dec 2016 16:32:19 +0000 (16:32 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff83  -s ours am: 953a9eb3d3 am: 14d24b3d5f  -s ours am: 0d45d96082 am: 6f45a5f721
am: 22b2728055

Change-Id: I6343efb304a4f1fe2bc91991c91fdf654470a5d5

7 years agoDO NOT MERGE increase generic_mips system partition am: 7824073a36 -s ours am: 0c041...
Marco Nelissen [Fri, 2 Dec 2016 16:32:04 +0000 (16:32 +0000)]
DO NOT MERGE increase generic_mips system partition am: 7824073a36  -s ours am: 0c041e9ada am: 29ee191947  -s ours am: 16ee67f1a7 am: 8fc84f4de0
am: 7474d313f9

Change-Id: I46a20b65f19a35f5acded84d69f1357cd2505cb5

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff...
Marco Nelissen [Fri, 2 Dec 2016 16:24:48 +0000 (16:24 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff83  -s ours am: 953a9eb3d3 am: 14d24b3d5f  -s ours am: 0d45d96082
am: 6f45a5f721

Change-Id: I8dcd653967d64d937c6668f5ac96ea9b1e318e1f

7 years agoDO NOT MERGE increase generic_mips system partition am: 7824073a36 -s ours am: 0c041...
Marco Nelissen [Fri, 2 Dec 2016 16:24:32 +0000 (16:24 +0000)]
DO NOT MERGE increase generic_mips system partition am: 7824073a36  -s ours am: 0c041e9ada am: 29ee191947  -s ours am: 16ee67f1a7
am: 8fc84f4de0

Change-Id: I27c7113fe9835abda40aaccab6d51f77fcfa904f

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff...
Marco Nelissen [Fri, 2 Dec 2016 16:17:49 +0000 (16:17 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff83  -s ours am: 953a9eb3d3 am: 14d24b3d5f  -s ours
am: 0d45d96082

Change-Id: I2e344c35fe0e9ee0b54db9ba27767e933d9ab4b9

7 years agoDO NOT MERGE increase generic_mips system partition am: 7824073a36 -s ours am: 0c041...
Marco Nelissen [Fri, 2 Dec 2016 16:17:32 +0000 (16:17 +0000)]
DO NOT MERGE increase generic_mips system partition am: 7824073a36  -s ours am: 0c041e9ada am: 29ee191947  -s ours
am: 16ee67f1a7

Change-Id: I0e49eb7e973eed961be9ad4906ab9973f336d53c

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff...
Marco Nelissen [Fri, 2 Dec 2016 16:10:18 +0000 (16:10 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff83  -s ours am: 953a9eb3d3
am: 14d24b3d5f  -s ours

Change-Id: Ic1a6a4a38bb031d1cafe2a464a7376761905f785

7 years agoDO NOT MERGE increase generic_mips system partition am: 7824073a36 -s ours am: 0c041...
Marco Nelissen [Fri, 2 Dec 2016 16:10:01 +0000 (16:10 +0000)]
DO NOT MERGE increase generic_mips system partition am: 7824073a36  -s ours am: 0c041e9ada
am: 29ee191947  -s ours

Change-Id: If071ac480c61b67b623127d3642948bfcf43a0de

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff...
Marco Nelissen [Fri, 2 Dec 2016 16:03:16 +0000 (16:03 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev am: 198262ff83  -s ours
am: 953a9eb3d3

Change-Id: If584daaf9b59531ebc9854003164ef6d7834c931

7 years agoDO NOT MERGE increase generic_mips system partition am: 7824073a36 -s ours
Marco Nelissen [Fri, 2 Dec 2016 16:03:01 +0000 (16:03 +0000)]
DO NOT MERGE increase generic_mips system partition am: 7824073a36  -s ours
am: 0c041e9ada

Change-Id: I2e774bf919520af01ba19f570c5d97bc8d6c85b0

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev
Marco Nelissen [Fri, 2 Dec 2016 15:55:31 +0000 (15:55 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev
am: 198262ff83  -s ours

Change-Id: I0a336fa847df3c1375e1263e50723f08635d531f

7 years agoDO NOT MERGE increase generic_mips system partition
Marco Nelissen [Fri, 2 Dec 2016 15:55:30 +0000 (15:55 +0000)]
DO NOT MERGE increase generic_mips system partition
am: 7824073a36  -s ours

Change-Id: I1b60e3cfc39735edfdcc48b215d53e7dac5aa207

7 years agoMerge "DO NOT MERGE increase generic_mips system partition" into lmp-dev
Marco Nelissen [Fri, 2 Dec 2016 15:45:17 +0000 (15:45 +0000)]
Merge "DO NOT MERGE increase generic_mips system partition" into lmp-dev

7 years agoMerge "Build recovery-two-step.img for two-step OTAs." am: 06e14e438f
Tao Bao [Fri, 2 Dec 2016 15:26:29 +0000 (15:26 +0000)]
Merge "Build recovery-two-step.img for two-step OTAs." am: 06e14e438f
am: d07f9995b8

Change-Id: I256b7c146db3bfc0df4909f643edee1a7c8dd61b

7 years agoMerge "Build recovery-two-step.img for two-step OTAs."
Tao Bao [Fri, 2 Dec 2016 15:19:00 +0000 (15:19 +0000)]
Merge "Build recovery-two-step.img for two-step OTAs."
am: 06e14e438f

Change-Id: I9c5d6e5f71da88bc0f662373335b024a55ca193e

7 years agoMerge "Build recovery-two-step.img for two-step OTAs."
Tao Bao [Fri, 2 Dec 2016 15:09:13 +0000 (15:09 +0000)]
Merge "Build recovery-two-step.img for two-step OTAs."

7 years agoSet platform min sdk for Jack to o-b1
Yohann Roussel [Fri, 18 Nov 2016 18:30:28 +0000 (19:30 +0100)]
Set platform min sdk for Jack to o-b1

Test: m core-all
(cherry picked from commit 94acfe908b3e70cdd11920c92715ef06de7ed212)

Change-Id: I26a558677f2fa8ede09ad1ae7f31b786c4ba0a43

7 years agoBuild recovery-two-step.img for two-step OTAs.
Tao Bao [Wed, 30 Nov 2016 20:11:57 +0000 (12:11 -0800)]
Build recovery-two-step.img for two-step OTAs.

In two-step OTAs, we write recovery image to /boot as the first step so
that we can reboot from there and install a new recovery image to
/recovery. However, bootloader will show "Your device is corrupt"
message when booting /boot with the recovery image. Because the recovery
image encodes the path of "/recovery" as part of the signature metadata,
which fails the verified boot.

This CL generates a special "recovery-two-step.img" in addition to the
regular recovery.img. This image encodes "/boot" when being signed,
which will be flashed to /boot at stage 1/3 in a two-step OTA.

Here are the desired changes:

- 'IMAGES/recovery-two-step.img' exists in target_files.zip for non-A/B
targets (e.g. bullhead). The image should not exist for targets that
don't have a recovery partition (e.g. A/B devices like sailfish).

- <device>-img.zip should not contain 'recovery-two-step.img'.

- Nothing should change when building non-two-step OTAs. For two-step
OTAs, 'recovery-two-step.img' should be included in the OTA package;
'updater-script' should flash this image to /boot at stage 1/3.

- When building a two-step OTA with an input TF.zip that doesn't have
  IMAGES/recovery-two-step.img, it should use the existing
  IMAGES/recovery.img instead.

Bug: 32986477
Test: Tested the steps above on bullhead and sailfish.
Change-Id: I34e6c599bcf2011d4cd5c926999418b3975d6d0f
(cherry picked from commit d42e97ebb45fdc5a30799a3f37e482948d318010)

7 years agoBuild recovery-two-step.img for two-step OTAs.
Tao Bao [Wed, 30 Nov 2016 20:11:57 +0000 (12:11 -0800)]
Build recovery-two-step.img for two-step OTAs.

In two-step OTAs, we write recovery image to /boot as the first step so
that we can reboot from there and install a new recovery image to
/recovery. However, bootloader will show "Your device is corrupt"
message when booting /boot with the recovery image. Because the recovery
image encodes the path of "/recovery" as part of the signature metadata,
which fails the verified boot.

This CL generates a special "recovery-two-step.img" in addition to the
regular recovery.img. This image encodes "/boot" when being signed,
which will be flashed to /boot at stage 1/3 in a two-step OTA.

Here are the desired changes:

- 'IMAGES/recovery-two-step.img' exists in target_files.zip for non-A/B
targets (e.g. bullhead). The image should not exist for targets that
don't have a recovery partition (e.g. A/B devices like sailfish).

- <device>-img.zip should not contain 'recovery-two-step.img'.

- Nothing should change when building non-two-step OTAs. For two-step
OTAs, 'recovery-two-step.img' should be included in the OTA package;
'updater-script' should flash this image to /boot at stage 1/3.

- When building a two-step OTA with an input TF.zip that doesn't have
  IMAGES/recovery-two-step.img, it should use the existing
  IMAGES/recovery.img instead.

Bug: 32986477
Test: Tested the steps above on bullhead and sailfish.
Change-Id: I34e6c599bcf2011d4cd5c926999418b3975d6d0f

7 years agoMerge "Do not *directly* package libbcc.so" am: ec0d7cbc49
Pirama Arumuga Nainar [Thu, 1 Dec 2016 18:16:13 +0000 (18:16 +0000)]
Merge "Do not *directly* package libbcc.so" am: ec0d7cbc49
am: 0cc559f7d8

Change-Id: Ida5a4c8d5643bbe1bdd3d1b2f106ce06ba95b334

7 years agoMerge "Do not *directly* package libbcc.so"
Pirama Arumuga Nainar [Thu, 1 Dec 2016 18:11:13 +0000 (18:11 +0000)]
Merge "Do not *directly* package libbcc.so"
am: ec0d7cbc49

Change-Id: I15871b1ca4cb5fa5488721a5f6a21bfa2a72feab

7 years agoMerge "Do not *directly* package libbcc.so"
Pirama Arumuga Nainar [Thu, 1 Dec 2016 17:58:46 +0000 (17:58 +0000)]
Merge "Do not *directly* package libbcc.so"

7 years agoMerge "releasetools: Remove dead parameter in GetBootableImage()." am: 8df4fea85f
Tao Bao [Thu, 1 Dec 2016 17:13:37 +0000 (17:13 +0000)]
Merge "releasetools: Remove dead parameter in GetBootableImage()." am: 8df4fea85f
am: 2e3f1c5258

Change-Id: I49a84adeac56d399749920272f07d3eacc436be4

7 years agoMerge "releasetools: Remove dead parameter in GetBootableImage()."
Tao Bao [Thu, 1 Dec 2016 17:09:07 +0000 (17:09 +0000)]
Merge "releasetools: Remove dead parameter in GetBootableImage()."
am: 8df4fea85f

Change-Id: I192af3927849d0d8f995f0002b8b8f2e191b794f

7 years agoMerge "releasetools: Remove dead parameter in GetBootableImage()."
Tao Bao [Thu, 1 Dec 2016 17:02:06 +0000 (17:02 +0000)]
Merge "releasetools: Remove dead parameter in GetBootableImage()."

7 years agoMerge "Replace core-junit with legacy-test" am: 32cc1f80e5
Paul Duffin [Thu, 1 Dec 2016 10:48:46 +0000 (10:48 +0000)]
Merge "Replace core-junit with legacy-test" am: 32cc1f80e5
am: 74f8ee05de

Change-Id: Id32488dfe7498c7b00ba05c2fa88de6465b362ee

7 years agoMerge "Replace core-junit with legacy-test"
Paul Duffin [Thu, 1 Dec 2016 10:42:16 +0000 (10:42 +0000)]
Merge "Replace core-junit with legacy-test"
am: 32cc1f80e5

Change-Id: Id425eff2aaafdf8ad63bc66ef2d28f71d32d6e8b

7 years agoMerge "Replace core-junit with legacy-test"
Paul Duffin [Thu, 1 Dec 2016 10:34:07 +0000 (10:34 +0000)]
Merge "Replace core-junit with legacy-test"

7 years agoreleasetools: Remove dead parameter in GetBootableImage().
Tao Bao [Thu, 1 Dec 2016 08:08:05 +0000 (00:08 -0800)]
releasetools: Remove dead parameter in GetBootableImage().

The 'system_img_path' parameter was introduced in commit
d995f4b04df46d9e9ac1be8d58ca961e94b783d1, but became obsolete since
commit 2ce63edab715ae4ff34e1a2ef240b05216f6ca5d.

Test: m dist
Change-Id: Iffd496d929db5cc3dfc955a48bfc1b1317bd012f

7 years agoMerge changes from topic 'simplify_app_process_asan_modules' am: 9a3bd76ab4
Andreas Gampe [Thu, 1 Dec 2016 02:58:05 +0000 (02:58 +0000)]
Merge changes from topic 'simplify_app_process_asan_modules' am: 9a3bd76ab4
am: d3708a5aeb

Change-Id: Ieda8df429285548676089a7653e97ea36b542526

7 years agoRevert "Build: Add sanitized app_process" am: 88d43677f5
Andreas Gampe [Thu, 1 Dec 2016 02:57:59 +0000 (02:57 +0000)]
Revert "Build: Add sanitized app_process" am: 88d43677f5
am: d77b29fdb3

Change-Id: Ie46ff2d5b15970ee188ad8e0ac64278a0ce4e4cf

7 years agoRevert "Build: Add asanwrapper in SANITIZE_LITE" am: 4938f3300a
Andreas Gampe [Thu, 1 Dec 2016 02:57:54 +0000 (02:57 +0000)]
Revert "Build: Add asanwrapper in SANITIZE_LITE" am: 4938f3300a
am: 92058120b2

Change-Id: I818d10ecaee2be176abecbb70d3d0997ea86d6bc

7 years agoMerge changes from topic 'simplify_app_process_asan_modules'
Andreas Gampe [Thu, 1 Dec 2016 02:48:21 +0000 (02:48 +0000)]
Merge changes from topic 'simplify_app_process_asan_modules'
am: 9a3bd76ab4

Change-Id: I07d79da80ce2fce035c87e768d12c1b136bf6fdd

7 years agoRevert "Build: Add sanitized app_process"
Andreas Gampe [Thu, 1 Dec 2016 02:47:34 +0000 (02:47 +0000)]
Revert "Build: Add sanitized app_process"
am: 88d43677f5

Change-Id: I358a67f5e89bf72e7bba9d97a16d34d9a3e79afb

7 years agoRevert "Build: Add asanwrapper in SANITIZE_LITE"
Andreas Gampe [Thu, 1 Dec 2016 02:47:29 +0000 (02:47 +0000)]
Revert "Build: Add asanwrapper in SANITIZE_LITE"
am: 4938f3300a

Change-Id: Ic3745664db0b89baaea8b98b79ead63a77e95440

7 years agoMerge changes from topic 'simplify_app_process_asan_modules'
Treehugger Robot [Thu, 1 Dec 2016 02:38:29 +0000 (02:38 +0000)]
Merge changes from topic 'simplify_app_process_asan_modules'

* changes:
  Revert "Build: Add sanitized app_process"
  Revert "Build: Add asanwrapper in SANITIZE_LITE"

7 years agoRevert "Build: Add sanitized app_process"
Andreas Gampe [Wed, 30 Nov 2016 23:38:43 +0000 (15:38 -0800)]
Revert "Build: Add sanitized app_process"

This reverts commit a35d92e4312b2247b0a27e17a6f08f82dae49fdf.

The app_process__asan module is merged into app_process.

Bug: 33224213
Test: m
Change-Id: I5e3e836c67b5bd17cf967f1b2429e39c4e18557b

7 years agoRevert "Build: Add asanwrapper in SANITIZE_LITE"
Andreas Gampe [Wed, 30 Nov 2016 23:38:31 +0000 (15:38 -0800)]
Revert "Build: Add asanwrapper in SANITIZE_LITE"

This reverts commit eee31511f70398ada44c7f8811234311ce8c7a7f.

Rewriting of app_process adds an automatic dependency.

Bug: 33224213
Test: m
Change-Id: Idd9509d116692954224f4d2ffd6c81b69e9a85a3

7 years agoMerge changes from topic 'app_process_sanitized_binaries' am: de24e6198e
Andreas Gampe [Thu, 1 Dec 2016 00:17:02 +0000 (00:17 +0000)]
Merge changes from topic 'app_process_sanitized_binaries' am: de24e6198e
am: 88757661d5

Change-Id: I9567415f53bb86e6d2caebe51060c66e9400cead

7 years agoBuild: Add asanwrapper in SANITIZE_LITE am: eee31511f7
Andreas Gampe [Thu, 1 Dec 2016 00:16:55 +0000 (00:16 +0000)]
Build: Add asanwrapper in SANITIZE_LITE am: eee31511f7
am: 3c326183ca

Change-Id: I14fe1837e7cc66e9c6f124353c860959b230b779

7 years agoBuild: Add sanitized app_process am: a35d92e431
Andreas Gampe [Thu, 1 Dec 2016 00:16:49 +0000 (00:16 +0000)]
Build: Add sanitized app_process am: a35d92e431
am: 2ceff14391

Change-Id: I55ecc896ca76a74baad033dd9b48462fc00c3235

7 years agoMerge changes from topic 'app_process_sanitized_binaries'
Andreas Gampe [Thu, 1 Dec 2016 00:09:03 +0000 (00:09 +0000)]
Merge changes from topic 'app_process_sanitized_binaries'
am: de24e6198e

Change-Id: Ie077774c7816e7bf19c4474e9fa36824e10d58d4

7 years agoBuild: Add asanwrapper in SANITIZE_LITE
Andreas Gampe [Thu, 1 Dec 2016 00:06:26 +0000 (00:06 +0000)]
Build: Add asanwrapper in SANITIZE_LITE
am: eee31511f7

Change-Id: I2fda3c98543296418b7c4741e8425f1ab35f7fb1

7 years agoBuild: Add sanitized app_process
Andreas Gampe [Thu, 1 Dec 2016 00:06:20 +0000 (00:06 +0000)]
Build: Add sanitized app_process
am: a35d92e431

Change-Id: Idc10fa334820dab5de1a697092e4c14fb6023425

7 years agoDo not *directly* package libbcc.so
Pirama Arumuga Nainar [Wed, 30 Nov 2016 23:40:43 +0000 (15:40 -0800)]
Do not *directly* package libbcc.so

Bug: http://b/28866258

Remove libbcc.so from the list of directly packaged modules.  64-bit
libbcc.so gets included as a dependency for the bcc executable (which is
a required package).  32-bit libbcc.so is no longer necessary on 64-bit
devices.

This change also removes 32-bit libLLVM.so from a 64-bit system image
(leading to a 13M reduction in Angler's system image on AOSP) and a
considerable reduction in build time.

Test: - Build all topics in this CL
      - RsTest (including the 32-bit ABI) and CTS tests pass on x86 and
        x86_64 emulators and Angler.

Change-Id: I10f07e322a615f37d6967b7c938635f544ddceff

7 years agoDO NOT MERGE increase generic_mips system partition
Marco Nelissen [Wed, 30 Nov 2016 21:14:13 +0000 (13:14 -0800)]
DO NOT MERGE increase generic_mips system partition

Increase system partition from 750MB to 768MB to fix
sdk_google_phone_mips build.

Change-Id: I35a60767a3dea7b1ce3c97246f4a038c98f5cb06

7 years agoMerge changes from topic 'app_process_sanitized_binaries'
Treehugger Robot [Wed, 30 Nov 2016 21:00:55 +0000 (21:00 +0000)]
Merge changes from topic 'app_process_sanitized_binaries'

* changes:
  Build: Add asanwrapper in SANITIZE_LITE
  Build: Add sanitized app_process

7 years agoBuild: Add asanwrapper in SANITIZE_LITE
Andreas Gampe [Wed, 30 Nov 2016 18:20:20 +0000 (10:20 -0800)]
Build: Add asanwrapper in SANITIZE_LITE

Add asanwrapper helper binary to PRODUCT_PACKAGES when building with
SANITIZE_LITE=true.

Bug: 33224213
Test: m SANITIZE_TARGET=address SANITIZE_LITE=true && ls $OUT/system/bin/asanwrapper
Change-Id: Ic4d8973b9e9ddfd9ef8663735bf5f70d8f9f70e1

7 years agoReplace core-junit with legacy-test
Paul Duffin [Tue, 29 Nov 2016 12:15:13 +0000 (12:15 +0000)]
Replace core-junit with legacy-test

m -j32 checkbuild cts droid
adb reboot bootloader
fastboot flashall -w
cts-tradefed run cts -m CtsLibcoreTestCases

Bug: 30188076
Test: As above
Change-Id: I2d49cb3c451cb265d026f9a700a61b3fc0d2ed82

7 years agoBuild: Add sanitized app_process
Andreas Gampe [Wed, 30 Nov 2016 03:22:01 +0000 (19:22 -0800)]
Build: Add sanitized app_process

Add sanitized app_process module to PRODUCT_PACKAGES when building
with SANITIZE_LITE=true

Bug: 33224213
Test: m SANITIZE_TARGET=address SANITIZE_LITE=true && ls $OUT/system/bin/asan
Change-Id: Ic67976f1b897b638d569ec6f42d5a8d59f8a9285

7 years agoMerge "Revert "Build: Bring back SDK dependencies"" am: 2bbeae7f8a
Andreas Gampe [Wed, 30 Nov 2016 00:53:09 +0000 (00:53 +0000)]
Merge "Revert "Build: Bring back SDK dependencies"" am: 2bbeae7f8a
am: f606cc1677

Change-Id: I98a2c0a30012b1649d21a780f9eb22d30bcb0655

7 years agoMerge "Revert "Build: Bring back SDK dependencies""
Andreas Gampe [Wed, 30 Nov 2016 00:48:39 +0000 (00:48 +0000)]
Merge "Revert "Build: Bring back SDK dependencies""
am: 2bbeae7f8a

Change-Id: I9560d6a8f9971db89c87499b2e177bd0bb921cff

7 years agoMerge "Revert "Build: Bring back SDK dependencies""
Treehugger Robot [Wed, 30 Nov 2016 00:39:33 +0000 (00:39 +0000)]
Merge "Revert "Build: Bring back SDK dependencies""

7 years agoMerge changes from topic 'basic_vndk' am: e69f15c9dc
Dan Willemsen [Tue, 29 Nov 2016 20:47:46 +0000 (20:47 +0000)]
Merge changes from topic 'basic_vndk' am: e69f15c9dc
am: 474bba8831

Change-Id: I20781d5c2dabfd17f1bdff90c05181e226212b16

7 years agoProhibit host modules from using LOCAL_COPY_HEADERS am: 6e51ef61a7
Dan Willemsen [Tue, 29 Nov 2016 20:47:40 +0000 (20:47 +0000)]
Prohibit host modules from using LOCAL_COPY_HEADERS am: 6e51ef61a7
am: dc556b4bc0

Change-Id: I332c1128472baef57367bbf7be25ed0338a8f4d2

7 years agoAdd basic VNDK support in Make am: bab0fa6928
Dan Willemsen [Tue, 29 Nov 2016 20:47:33 +0000 (20:47 +0000)]
Add basic VNDK support in Make am: bab0fa6928
am: 323efd3035

Change-Id: I6a3f89a810782b965152a415947da26b930fc408

7 years agoRemove GLOBAL_LD_DIRS am: e5836c4bb0
Dan Willemsen [Tue, 29 Nov 2016 20:47:27 +0000 (20:47 +0000)]
Remove GLOBAL_LD_DIRS am: e5836c4bb0
am: 28cf7d49ab

Change-Id: I35109a1e1ec6fb546da0e4cf439e670d4f8c8cd0

7 years agoMerge changes from topic 'basic_vndk'
Dan Willemsen [Tue, 29 Nov 2016 20:42:40 +0000 (20:42 +0000)]
Merge changes from topic 'basic_vndk'
am: e69f15c9dc

Change-Id: Idf95a23c4b1341145f9e39364235413c82f659ac

7 years agoProhibit host modules from using LOCAL_COPY_HEADERS
Dan Willemsen [Tue, 29 Nov 2016 20:42:37 +0000 (20:42 +0000)]
Prohibit host modules from using LOCAL_COPY_HEADERS
am: 6e51ef61a7

Change-Id: Id7c80e4dba5a505a04ce47d459c0a525debc4d53

7 years agoAdd basic VNDK support in Make
Dan Willemsen [Tue, 29 Nov 2016 20:42:32 +0000 (20:42 +0000)]
Add basic VNDK support in Make
am: bab0fa6928

Change-Id: Ie2bc9062891b2f8000b1db471b27f58c74190e92

7 years agoRemove GLOBAL_LD_DIRS
Dan Willemsen [Tue, 29 Nov 2016 20:42:26 +0000 (20:42 +0000)]
Remove GLOBAL_LD_DIRS
am: e5836c4bb0

Change-Id: I6683ed19bff601075e82065c5c1dc783d62249b4

7 years agoMerge changes from topic 'basic_vndk'
Treehugger Robot [Tue, 29 Nov 2016 20:36:04 +0000 (20:36 +0000)]
Merge changes from topic 'basic_vndk'

* changes:
  Prohibit host modules from using LOCAL_COPY_HEADERS
  Add basic VNDK support in Make
  Remove GLOBAL_LD_DIRS

7 years agoFix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES
Colin Cross [Tue, 29 Nov 2016 19:12:56 +0000 (11:12 -0800)]
Fix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES

Building with LOCAL_STATIC_ANDROID_LIBARIES and LOCAL_USE_APPT2
causes a warning:
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets

Only call find-subdir-assets if my_res_dir is not empty.

Also improve the warning message to make it easier to find the module
that caused it.

Test: m -j
Change-Id: I9a71162c7e2ed82f64d6844baca256968ac77317