OSDN Git Service

android-x86/build.git
8 years agoUpdate Security String to 2016-01-01 to mnc-dev am: 170459f438 am: bcf2866fb1 am...
Zach Jang [Sat, 21 Nov 2015 01:01:48 +0000 (01:01 +0000)]
Update Security String to 2016-01-01 to mnc-dev am: 170459f438 am: bcf2866fb1 am: 3ce70dfe46 am: 10c8949d75
am: daf00af42d

* commit 'daf00af42d67098918a0c06b27002255cc5d34de':
  Update Security String to 2016-01-01 to mnc-dev

8 years agoUpdate Security String to 2016-01-01 to mnc-dev am: 170459f438 am: bcf2866fb1 am...
Zach Jang [Sat, 21 Nov 2015 00:58:35 +0000 (00:58 +0000)]
Update Security String to 2016-01-01 to mnc-dev am: 170459f438 am: bcf2866fb1 am: 3ce70dfe46
am: 10c8949d75

* commit '10c8949d7503bad5450543774d8c0364d8c1fc36':
  Update Security String to 2016-01-01 to mnc-dev

8 years agoUpdate Security String to 2016-01-01 to mnc-dev am: 170459f438 am: bcf2866fb1
Zach Jang [Sat, 21 Nov 2015 00:55:17 +0000 (00:55 +0000)]
Update Security String to 2016-01-01 to mnc-dev am: 170459f438 am: bcf2866fb1
am: 3ce70dfe46

* commit '3ce70dfe467246c28290f8ca24c1f5319b46142b':
  Update Security String to 2016-01-01 to mnc-dev

8 years agoUpdate Security String to 2016-01-01 to mnc-dev am: 170459f438
Zach Jang [Sat, 21 Nov 2015 00:51:39 +0000 (00:51 +0000)]
Update Security String to 2016-01-01 to mnc-dev am: 170459f438
am: bcf2866fb1

* commit 'bcf2866fb1ea50ea31ede70f62b864332f61b980':
  Update Security String to 2016-01-01 to mnc-dev

8 years agoUpdate Security String to 2016-01-01 to mnc-dev
Zach Jang [Sat, 21 Nov 2015 00:48:16 +0000 (00:48 +0000)]
Update Security String to 2016-01-01 to mnc-dev
am: 170459f438

* commit '170459f4385d35dd991549e1b545c376ca8df281':
  Update Security String to 2016-01-01 to mnc-dev

8 years agoUpdate Security String to 2016-01-01 to mnc-dev
Zach Jang [Fri, 20 Nov 2015 22:37:14 +0000 (14:37 -0800)]
Update Security String to 2016-01-01 to mnc-dev

http://b/25819582

Change-Id: Ie55f9476110b08591da05774f582a6e48ce12de7

8 years agoMerge "Use sensible default locations for Java" am: 8f354bc8c2
Neil Fuller [Fri, 20 Nov 2015 10:23:36 +0000 (10:23 +0000)]
Merge "Use sensible default locations for Java" am: 8f354bc8c2
am: 2fc3bef75a

* commit '2fc3bef75aae22178778bdaa407a0befa5345456':
  Use sensible default locations for Java

8 years agoMerge "Use sensible default locations for Java"
Neil Fuller [Fri, 20 Nov 2015 10:20:13 +0000 (10:20 +0000)]
Merge "Use sensible default locations for Java"
am: 8f354bc8c2

* commit '8f354bc8c2d4c27d93c7e13a853e0c9088d6ba94':
  Use sensible default locations for Java

8 years agoMerge "Use sensible default locations for Java"
Neil Fuller [Fri, 20 Nov 2015 10:16:17 +0000 (10:16 +0000)]
Merge "Use sensible default locations for Java"

8 years agoreleasetools: Fix the bug with TARGET_NO_RECOVERY.
Tao Bao [Fri, 20 Nov 2015 05:52:44 +0000 (05:52 +0000)]
releasetools: Fix the bug with TARGET_NO_RECOVERY.
am: 448dccbc7d

* commit '448dccbc7da2b666b2159632173d8896d276c6f3':
  releasetools: Fix the bug with TARGET_NO_RECOVERY.

8 years agoreleasetools: Fix the bug with TARGET_NO_RECOVERY.
Tao Bao [Fri, 20 Nov 2015 01:05:46 +0000 (17:05 -0800)]
releasetools: Fix the bug with TARGET_NO_RECOVERY.

The packaging script is broken when we set TARGET_NO_RECOVERY and
SYSTEM_ROOT_IMAGE both. With TARGET_NO_RECOVERY set, we don't have
RECOVERY/RAMDISK/etc/recovery.fstab. It thus fails the assertion that
"/" must exist in fstab when enabling SYSTEM_ROOT_IMAGE.

Change-Id: Id509d724f18be7cf7389dd786924ead894ac0cc1
(cherry picked from commit 48550cceb0bc4a7a0ec05aa87f8b5872b9ac7246)

8 years agoMerge "releasetools: Fix the bug with TARGET_NO_RECOVERY." am: 4ed5735a68
Tao Bao [Fri, 20 Nov 2015 04:53:32 +0000 (04:53 +0000)]
Merge "releasetools: Fix the bug with TARGET_NO_RECOVERY." am: 4ed5735a68
am: 733ba8f0e4

* commit '733ba8f0e473b214e55e3b93ded7739c35d85b10':
  releasetools: Fix the bug with TARGET_NO_RECOVERY.

8 years agoMerge "releasetools: Fix the bug with TARGET_NO_RECOVERY."
Tao Bao [Fri, 20 Nov 2015 04:50:31 +0000 (04:50 +0000)]
Merge "releasetools: Fix the bug with TARGET_NO_RECOVERY."
am: 4ed5735a68

* commit '4ed5735a68090e9eec240693ff6b97ea57576151':
  releasetools: Fix the bug with TARGET_NO_RECOVERY.

8 years agoMerge "releasetools: Fix the bug with TARGET_NO_RECOVERY."
Tao Bao [Fri, 20 Nov 2015 04:47:42 +0000 (04:47 +0000)]
Merge "releasetools: Fix the bug with TARGET_NO_RECOVERY."

8 years agoOverride properties that point to out/ directory.
Tao Bao [Fri, 20 Nov 2015 04:44:10 +0000 (04:44 +0000)]
Override properties that point to out/ directory.
am: cb219828ff  -s ours

* commit 'cb219828ff70adcbf867968ea83ad42d03efa958':
  Override properties that point to out/ directory.

8 years agoPack file_contexts into target_files zip.
Tao Bao [Fri, 20 Nov 2015 04:40:43 +0000 (04:40 +0000)]
Pack file_contexts into target_files zip.
am: a6a3aa9398  -s ours

* commit 'a6a3aa9398f6a27693521abd2601462a78a81c56':
  Pack file_contexts into target_files zip.

8 years agoRename UPDATE_AB_PARTITIONS to AB_OTA_PARTITIONS.
Alex Deymo [Fri, 20 Nov 2015 04:11:55 +0000 (04:11 +0000)]
Rename UPDATE_AB_PARTITIONS to AB_OTA_PARTITIONS.
am: d06e1c16d8

* commit 'd06e1c16d856f061065a09f83c3fab445263dc68':
  Rename UPDATE_AB_PARTITIONS to AB_OTA_PARTITIONS.

8 years agoPack META/ab_partitions.txt when using the A/B OTA updater.
Alex Deymo [Fri, 20 Nov 2015 04:11:47 +0000 (04:11 +0000)]
Pack META/ab_partitions.txt when using the A/B OTA updater.
am: d22f7eb3ec  -s ours

* commit 'd22f7eb3eca093b58d3c0f496ab84d881eaff3f4':
  Pack META/ab_partitions.txt when using the A/B OTA updater.

8 years agoDO NOT MERGE Pack the update_engine_config.txt when using the A/B OTA updater.
Alex Deymo [Fri, 20 Nov 2015 04:08:00 +0000 (04:08 +0000)]
DO NOT MERGE Pack the update_engine_config.txt when using the A/B OTA updater.
am: b6ef41dc30  -s ours

* commit 'b6ef41dc30eb069f1bda1d2b77152700114f024c':
  DO NOT MERGE Pack the update_engine_config.txt when using the A/B OTA updater.

8 years agoMerge "Increase droiddoc -J-Xmx to 1600MB." am: 01f49a3d5e
Ying Wang [Fri, 20 Nov 2015 02:41:14 +0000 (02:41 +0000)]
Merge "Increase droiddoc -J-Xmx to 1600MB." am: 01f49a3d5e
am: 59ab005dde

* commit '59ab005dde521722129c5264cc52d00963d48609':
  Increase droiddoc -J-Xmx to 1600MB.

8 years agoMerge "Increase droiddoc -J-Xmx to 1600MB."
Ying Wang [Fri, 20 Nov 2015 02:38:00 +0000 (02:38 +0000)]
Merge "Increase droiddoc -J-Xmx to 1600MB."
am: 01f49a3d5e

* commit '01f49a3d5e5d8f4fdd83d1b74a230f8160aabe08':
  Increase droiddoc -J-Xmx to 1600MB.

8 years agoMerge "Increase droiddoc -J-Xmx to 1600MB."
Ying Wang [Fri, 20 Nov 2015 02:33:11 +0000 (02:33 +0000)]
Merge "Increase droiddoc -J-Xmx to 1600MB."

8 years agoIncrease droiddoc -J-Xmx to 1600MB.
Ying Wang [Fri, 20 Nov 2015 02:31:01 +0000 (18:31 -0800)]
Increase droiddoc -J-Xmx to 1600MB.

As we occasionally see  java.lang.OutOfMemoryError when running
doc-comment-check-docs.

Bug: 25787786
Change-Id: I6c505c96ec36d09d28d400e03027b169870c49bb

8 years agoreleasetools: Fix the bug with TARGET_NO_RECOVERY.
Tao Bao [Fri, 20 Nov 2015 01:05:46 +0000 (17:05 -0800)]
releasetools: Fix the bug with TARGET_NO_RECOVERY.

The packaging script is broken when we set TARGET_NO_RECOVERY and
SYSTEM_ROOT_IMAGE both. With TARGET_NO_RECOVERY set, we don't have
RECOVERY/RAMDISK/etc/recovery.fstab. It thus fails the assertion in
common.LoadRecoveryFSTab() that "/" must exist in fstab when enabling
SYSTEM_ROOT_IMAGE.

Change-Id: Id509d724f18be7cf7389dd786924ead894ac0cc1

8 years agoOverride properties that point to out/ directory.
Tao Bao [Sun, 19 Jul 2015 09:38:53 +0000 (02:38 -0700)]
Override properties that point to out/ directory.

A few properties are stored as links to the files in the out/
directory, which are no longer available when (re)packing from
target_files zip. Redirect those properties to the actual files in
the unzipped directory when repacking.

Change-Id: I18e930cbea224ab9c6db8d4e721b1c266a671db6
(cherry picked from commit 84e7568b1fb6264c8a0b8e38ef8ed4ec78325061)

8 years agoPack file_contexts into target_files zip.
Tao Bao [Thu, 9 Jul 2015 18:51:16 +0000 (11:51 -0700)]
Pack file_contexts into target_files zip.

file_contexts (specified by SELINUX_FC) is needed both when building
and (re)packaging. We used to use the copy in out/ when building, and
looked for the copy in BOOT/RAMDISK/ when packaging from target_files
zip. With system_root_image enabled, the file_contexts needed for
building and packaging might be different from the one on device. So
we explicitly pack the file as META/file_contexts in target_files zip.

Also refactor out the overriding of selinux_fc property into
common.LoadInfoDict().

Change-Id: I0781a147319148c76d989d8f29d5ef766a502dbd
(cherry picked from commit aa7318c3849095aeb3bea00efbf303c0c40a089d)

8 years agoInvoke the aidl-cpp compiler to generate C++
Christopher Wiley [Thu, 19 Nov 2015 23:11:58 +0000 (23:11 +0000)]
Invoke the aidl-cpp compiler to generate C++
am: 7c6a7d09ba  -s ours

* commit '7c6a7d09baae72fdbf3f17c97fb41205d09562cd':
  Invoke the aidl-cpp compiler to generate C++

8 years agoreleasetools: Pack updatable images into IMAGES/ for A/B update.
Tao Bao [Thu, 19 Nov 2015 23:01:03 +0000 (23:01 +0000)]
releasetools: Pack updatable images into IMAGES/ for A/B update.
am: 26259ef4d7

* commit '26259ef4d7dad3d55475fddefb0bd37327183544':
  releasetools: Pack updatable images into IMAGES/ for A/B update.

8 years agoMerge "Fix race in C++ AIDL file generation" am: b2055df782
Christopher Wiley [Thu, 19 Nov 2015 22:12:25 +0000 (22:12 +0000)]
Merge "Fix race in C++ AIDL file generation" am: b2055df782
am: dbc3d09ca6

* commit 'dbc3d09ca6ad5c7116b317dc4199ce64f0636e68':
  Fix race in C++ AIDL file generation

8 years agoMerge "Switch to using kati env script" am: 7926e42209
Colin Cross [Thu, 19 Nov 2015 22:12:17 +0000 (22:12 +0000)]
Merge "Switch to using kati env script" am: 7926e42209
am: d924c14097

* commit 'd924c140976c9fc1db0f2a2f7b7da120c423f3bf':
  Switch to using kati env script

8 years agoMerge "Fix race in C++ AIDL file generation"
Christopher Wiley [Thu, 19 Nov 2015 22:07:06 +0000 (22:07 +0000)]
Merge "Fix race in C++ AIDL file generation"
am: b2055df782

* commit 'b2055df782eb5276128ef14ac4724d32f94e1aec':
  Fix race in C++ AIDL file generation

8 years agoMerge "Switch to using kati env script"
Colin Cross [Thu, 19 Nov 2015 22:06:52 +0000 (22:06 +0000)]
Merge "Switch to using kati env script"
am: 7926e42209

* commit '7926e42209b41766369e49b2093e6334564f93d4':
  Switch to using kati env script

8 years agoMerge "Fix race in C++ AIDL file generation"
Christopher Wiley [Thu, 19 Nov 2015 22:01:27 +0000 (22:01 +0000)]
Merge "Fix race in C++ AIDL file generation"

8 years agoFix race in C++ AIDL file generation
Christopher Wiley [Thu, 19 Nov 2015 21:52:15 +0000 (13:52 -0800)]
Fix race in C++ AIDL file generation

The export_includes file for a library needs to express a dependency on
all generated exported headers.  For aidl generated headers, express a
dependency on the .cpp file instead, since the generator promises to
generate this file last.  Unfortunately, the C++ headers generated from
a .aidl file depend on the contents of the file.

Change-Id: I9402b364e4538b502c0958ac8c7bd72cb0add724

8 years agoMerge "Switch to using kati env script"
Colin Cross [Thu, 19 Nov 2015 21:11:01 +0000 (21:11 +0000)]
Merge "Switch to using kati env script"

8 years agoMerge "Export generated AIDL headers" am: 0c595d4730
Christopher Wiley [Thu, 19 Nov 2015 19:31:14 +0000 (19:31 +0000)]
Merge "Export generated AIDL headers" am: 0c595d4730
am: a626a5f6d9

* commit 'a626a5f6d953f03f75a5c40725077aae9d7b95ba':
  Export generated AIDL headers

8 years agoMerge "Export generated AIDL headers"
Christopher Wiley [Thu, 19 Nov 2015 19:24:42 +0000 (19:24 +0000)]
Merge "Export generated AIDL headers"
am: 0c595d4730

* commit '0c595d47304e6c00a493600b4a46f655cd148db9':
  Export generated AIDL headers

8 years agoMerge "Export generated AIDL headers"
Christopher Wiley [Thu, 19 Nov 2015 19:17:47 +0000 (19:17 +0000)]
Merge "Export generated AIDL headers"

8 years agoExport generated AIDL headers
Christopher Wiley [Thu, 19 Nov 2015 15:06:01 +0000 (07:06 -0800)]
Export generated AIDL headers

It is common for developers to generate/compile AIDL in a static
library, then link that library into an executable.  When doing this,
developers need to export the generated headers.

Bug: 25779424
Test: a refactoring of the aidl Android.mk shows this works

Change-Id: I4f7d471a601d2a683cb5a9da5e02e3fab576c26a

8 years agoAdd ro.build.ab_update property.
Tao Bao [Thu, 19 Nov 2015 18:42:52 +0000 (18:42 +0000)]
Add ro.build.ab_update property.
am: 532fdf4479

* commit '532fdf4479acb50cdb480e6fdfe24f0698fcd67b':
  Add ro.build.ab_update property.

8 years agobuild: Fix "adb shell" in recovery for system_root_image.
Tao Bao [Thu, 19 Nov 2015 18:42:46 +0000 (18:42 +0000)]
build: Fix "adb shell" in recovery for system_root_image.
am: f4d759930c

* commit 'f4d759930c8b612cba9827d35232a205884295dc':
  build: Fix "adb shell" in recovery for system_root_image.

8 years agoreleasetools: Support packaging for system_root_image.
Tao Bao [Thu, 19 Nov 2015 18:42:38 +0000 (18:42 +0000)]
releasetools: Support packaging for system_root_image.
am: b11d2c5dd6  -s ours

* commit 'b11d2c5dd687aac12ee187a07f1d392193fe4d9c':
  releasetools: Support packaging for system_root_image.

8 years agobuild: Support packaging for system_root_image.
Tao Bao [Thu, 19 Nov 2015 18:37:20 +0000 (18:37 +0000)]
build: Support packaging for system_root_image.
am: 97b906b004  -s ours

* commit '97b906b004f29551b222b4b68dccc84a20ee6508':
  build: Support packaging for system_root_image.

8 years agoSupport systems that use a full copy of recovery image.
Tao Bao [Thu, 19 Nov 2015 18:32:03 +0000 (18:32 +0000)]
Support systems that use a full copy of recovery image.
am: 6ed1491402  -s ours

* commit '6ed1491402e5db6450388147991e66e5938744ac':
  Support systems that use a full copy of recovery image.

8 years agobuild: core: Fix issue in recovery
Daniel Rosenberg [Thu, 19 Nov 2015 18:25:30 +0000 (18:25 +0000)]
build: core: Fix issue in recovery
am: 752ecc219a

* commit '752ecc219a6075cf565691417c717a0ab7da359d':
  build: core: Fix issue in recovery

8 years agoAdd support for system images that contain the root directory
Daniel Rosenberg [Thu, 19 Nov 2015 18:25:22 +0000 (18:25 +0000)]
Add support for system images that contain the root directory
am: b3b8ce6241  -s ours

* commit 'b3b8ce624180a6857d776d418952767357b35ef9':
  Add support for system images that contain the root directory

8 years agoAdd ro.build.system_root_image
Daniel Rosenberg [Thu, 19 Nov 2015 18:19:24 +0000 (18:19 +0000)]
Add ro.build.system_root_image
am: fa7f9f7e0c  -s ours

* commit 'fa7f9f7e0c63010a8f987134418ca3c598bb6d5a':
  Add ro.build.system_root_image

8 years agoHonor TARGET_NO_RECOVERY flag.
Tao Bao [Thu, 19 Nov 2015 18:14:02 +0000 (18:14 +0000)]
Honor TARGET_NO_RECOVERY flag.
am: 37b96ef26b  -s ours

* commit '37b96ef26bafb6f9d9f3e5bea57c70f84d68399c':
  Honor TARGET_NO_RECOVERY flag.

8 years agoDO NOT MERGE Change the cache partition size check into warnings.
Tao Bao [Thu, 19 Nov 2015 18:09:00 +0000 (18:09 +0000)]
DO NOT MERGE Change the cache partition size check into warnings.
am: 116977c7db  -s ours

* commit '116977c7dba5ff79d1119a30966f918d72efedeb':
  DO NOT MERGE Change the cache partition size check into warnings.

8 years agobuild: Don\'t call make_recovery_patch if there\'s no recovery.
Tao Bao [Thu, 19 Nov 2015 18:03:26 +0000 (18:03 +0000)]
build: Don\'t call make_recovery_patch if there\'s no recovery.
am: 60ad0cdc22  -s ours

* commit '60ad0cdc226c9e28b8298b464dfa602ddcebce81':
  build: Don't call make_recovery_patch if there's no recovery.

8 years agoFix using libc++_static in dynamic binaries.
Dan Albert [Thu, 19 Nov 2015 17:58:26 +0000 (17:58 +0000)]
Fix using libc++_static in dynamic binaries.
am: e10bb316b1

* commit 'e10bb316b14fe6707087dfe1f7603aaffcd73a07':
  Fix using libc++_static in dynamic binaries.

8 years agoCleanup libc++ configuration.
Dan Albert [Thu, 19 Nov 2015 17:58:18 +0000 (17:58 +0000)]
Cleanup libc++ configuration.
am: ea07676552  -s ours

* commit 'ea07676552f18ccb01bbbfe6e34dc6c0ac88d3be':
  Cleanup libc++ configuration.

8 years agoUse sensible default locations for Java
Neil Fuller [Thu, 19 Nov 2015 15:51:47 +0000 (15:51 +0000)]
Use sensible default locations for Java

Use sensible default locations for Java based on
the EXPERIMENTAL_USE_JAVA8 flag.

Bug: 25786468
Change-Id: I7ec035b5329785efc41b3f971d5e3ae202293576

8 years agoMerge "Rename AArch64 ASan target runtime library to match upstream convention."...
Stephen Hines [Thu, 19 Nov 2015 16:25:16 +0000 (16:25 +0000)]
Merge "Rename AArch64 ASan target runtime library to match upstream convention." am: af9e29d040
am: 4b191b40b7

* commit '4b191b40b7f1733fc98645cce1d56cb73b66c1cd':
  Rename AArch64 ASan target runtime library to match upstream convention.

8 years agoMerge "Rename AArch64 ASan target runtime library to match upstream convention."
Stephen Hines [Thu, 19 Nov 2015 16:20:00 +0000 (16:20 +0000)]
Merge "Rename AArch64 ASan target runtime library to match upstream convention."
am: af9e29d040

* commit 'af9e29d040dc20aeb4cceb545d864d41ecf0bca5':
  Rename AArch64 ASan target runtime library to match upstream convention.

8 years agoMerge "Rename AArch64 ASan target runtime library to match upstream convention."
Stephen Hines [Thu, 19 Nov 2015 16:14:08 +0000 (16:14 +0000)]
Merge "Rename AArch64 ASan target runtime library to match upstream convention."

8 years agoMerge "Really allow overriding the LLVM prebuilts path." am: ec18c0fdfe
Dan Albert [Thu, 19 Nov 2015 06:37:30 +0000 (06:37 +0000)]
Merge "Really allow overriding the LLVM prebuilts path." am: ec18c0fdfe
am: e3b4114410

* commit 'e3b41144107d74495baf59527c48cb6f8e95e667':
  Really allow overriding the LLVM prebuilts path.

8 years agoMerge "Really allow overriding the LLVM prebuilts path."
Dan Albert [Thu, 19 Nov 2015 06:33:50 +0000 (06:33 +0000)]
Merge "Really allow overriding the LLVM prebuilts path."
am: ec18c0fdfe

* commit 'ec18c0fdfe0475cb4eff2458cf1f825d37fbc2b5':
  Really allow overriding the LLVM prebuilts path.

8 years agoRename AArch64 ASan target runtime library to match upstream convention.
Stephen Hines [Thu, 19 Nov 2015 06:13:16 +0000 (22:13 -0800)]
Rename AArch64 ASan target runtime library to match upstream convention.

Rename from
 libclang_rt.asan-arm64-android.so
to
 libclang_rt.asan-aarch64-android.so

Change-Id: I6d73f458f437440c1de5bc72d2188d392c80cb98

8 years agoMerge "Really allow overriding the LLVM prebuilts path."
Dan Albert [Thu, 19 Nov 2015 06:04:30 +0000 (06:04 +0000)]
Merge "Really allow overriding the LLVM prebuilts path."

8 years agoRename UPDATE_AB_PARTITIONS to AB_OTA_PARTITIONS.
Alex Deymo [Fri, 23 Oct 2015 01:15:27 +0000 (18:15 -0700)]
Rename UPDATE_AB_PARTITIONS to AB_OTA_PARTITIONS.

In order to have all the A/B updater variables in the same AB_OTA_
namespace we rename UPDATE_AB_PARTITIONS to AB_OTA_PARTITIONS.

Bug: None
Test: `make dist` includes the partitions.txt file if properly configured.

Change-Id: Ied4faabd7e2f0ab8a5007afb44ad2f38df8d630d
(cherry picked from commit 49be2b115c558505e0f5972e5758dcea9b3f0bde)

8 years agoPack META/ab_partitions.txt when using the A/B OTA updater.
Alex Deymo [Fri, 2 Oct 2015 00:38:09 +0000 (17:38 -0700)]
Pack META/ab_partitions.txt when using the A/B OTA updater.

The list of A/B partitions updated is product-specific. Normally you
would update boot and system, but the product could require to update
other partitions during a system update. This patch packages the list
of A/B partitions configured to be updated when using the A/B updater.
The list can be set in the product makefile by setting the make
variable UPDATE_AB_PARTITIONS.

Bug: 24387863
Test: `make dist` creates the META/ab_partitions.txt in the target_files.zip

Change-Id: I4226ab05c7c7cd74721b06f1da64c6cf4d0e52ac
(cherry picked from commit 8925d334c3d9932526242ad78ec7a0c23627c3a8)

8 years agoDO NOT MERGE Pack the update_engine_config.txt when using the A/B OTA updater.
Alex Deymo [Wed, 30 Sep 2015 02:05:37 +0000 (19:05 -0700)]
DO NOT MERGE Pack the update_engine_config.txt when using the A/B OTA updater.

This config file pulled directly from the source specifies the update
payload version supported by the code. When generating an incremental
update payload for the A/B updater, the generated payload format will
match the version supported by the old version.

Bug: 24406755
Test: `make dist` on Brillo.

Change-Id: Ib7ac6828d0d34eb31e786dbaae5d59ecf26c3576
(cherry picked from commit 70067acd663df3fb0a747085f3d928c4b1777154)

8 years agoReally allow overriding the LLVM prebuilts path.
Dan Albert [Thu, 19 Nov 2015 02:00:40 +0000 (18:00 -0800)]
Really allow overriding the LLVM prebuilts path.

Not sure why my previous testing was working without this, but kati is
a bit pickier about ?= vs :=.

Change-Id: I80243a3c93dec7fd9b8e6f92e2c6cc956706ace0

8 years agoMerge "Support LOCAL_ACP_UNAVAILABLE for prebuilts" am: 153af5a27e
Colin Cross [Wed, 18 Nov 2015 17:19:11 +0000 (17:19 +0000)]
Merge "Support LOCAL_ACP_UNAVAILABLE for prebuilts" am: 153af5a27e
am: b35469cb90

* commit 'b35469cb90bd5c692c7c1aef6066d908adc869c3':
  Support LOCAL_ACP_UNAVAILABLE for prebuilts

8 years agoMerge "Support LOCAL_ACP_UNAVAILABLE for prebuilts"
Colin Cross [Tue, 17 Nov 2015 21:36:45 +0000 (21:36 +0000)]
Merge "Support LOCAL_ACP_UNAVAILABLE for prebuilts"
am: 153af5a27e

* commit '153af5a27e48627c24bda68495d1a972c744aa00':
  Support LOCAL_ACP_UNAVAILABLE for prebuilts

8 years agoMerge "Support LOCAL_ACP_UNAVAILABLE for prebuilts"
Colin Cross [Tue, 17 Nov 2015 21:25:44 +0000 (21:25 +0000)]
Merge "Support LOCAL_ACP_UNAVAILABLE for prebuilts"

8 years agoSwitch to using kati env script
Colin Cross [Mon, 9 Nov 2015 22:21:12 +0000 (14:21 -0800)]
Switch to using kati env script

Kati generates a shell script to run ninja, but that makes it difficult
to customize the ninja command line.  Switch to sourcing the new env
script and then starting ninja manually.

Change-Id: I7139290a463018ddf5e05b4d61a0d2f18b1a2247

8 years agoInvoke the aidl-cpp compiler to generate C++
Christopher Wiley [Thu, 15 Oct 2015 00:27:24 +0000 (17:27 -0700)]
Invoke the aidl-cpp compiler to generate C++

(cherry picked from commit 2df75d17a8d7aacd538cf1c34cf4e11c2af53251)

Bug: 23599697
Change-Id: Iae25f62fa9e2375a36d1a930887b2bcfd9e3f8a2
Test: test application compiles generated code

8 years agoreleasetools: Pack updatable images into IMAGES/ for A/B update.
Tao Bao [Tue, 17 Nov 2015 00:32:27 +0000 (16:32 -0800)]
releasetools: Pack updatable images into IMAGES/ for A/B update.

Vendor-specific images (radio, bootloader and etc) used to stay in
RADIO/ in target_files zip. A/B updater expects them to be available
under IMAGES/. Make a copy for such images when calling
add_img_to_target_files.py.

We cannot move them directly from RADIO/ to IMAGES/, because we will
delete everything under IMAGES/ when signing for release.

Bug: 25674625
Change-Id: I1c260c1d9fc069c258b2c19cf3831f833d2fa1cf
(cherry picked from commit a0421cd1bd2398589f2292dfd92ba802110e98e1)

8 years agoMerge "releasetools: Pack updatable images into IMAGES/ for A/B update." am: 128466cea5
Tao Bao [Tue, 17 Nov 2015 05:39:58 +0000 (05:39 +0000)]
Merge "releasetools: Pack updatable images into IMAGES/ for A/B update." am: 128466cea5
am: 2c1a4b9e88

* commit '2c1a4b9e88846d610c8d70475ace91b12adf7278':
  releasetools: Pack updatable images into IMAGES/ for A/B update.

8 years agoMerge "releasetools: Pack updatable images into IMAGES/ for A/B update."
Tao Bao [Tue, 17 Nov 2015 05:37:01 +0000 (05:37 +0000)]
Merge "releasetools: Pack updatable images into IMAGES/ for A/B update."
am: 128466cea5

* commit '128466cea5358eadbde19f52f16eef03f2685446':
  releasetools: Pack updatable images into IMAGES/ for A/B update.

8 years agoMerge "releasetools: Pack updatable images into IMAGES/ for A/B update."
Tao Bao [Tue, 17 Nov 2015 05:32:56 +0000 (05:32 +0000)]
Merge "releasetools: Pack updatable images into IMAGES/ for A/B update."

8 years agoMerge "Remove unnecessary inheritance layer between aliases." am: 2f05af74bc
Ying Wang [Tue, 17 Nov 2015 02:55:10 +0000 (02:55 +0000)]
Merge "Remove unnecessary inheritance layer between aliases." am: 2f05af74bc
am: 10021ac19d

* commit '10021ac19d7e6914ffd639a38b96810be1444e27':
  Remove unnecessary inheritance layer between aliases.

8 years agoMerge "Remove unnecessary inheritance layer between aliases."
Ying Wang [Tue, 17 Nov 2015 02:50:36 +0000 (02:50 +0000)]
Merge "Remove unnecessary inheritance layer between aliases."
am: 2f05af74bc

* commit '2f05af74bce1fce1adc53090f46d38888c8232c4':
  Remove unnecessary inheritance layer between aliases.

8 years agoMerge "Remove unnecessary inheritance layer between aliases."
Ying Wang [Tue, 17 Nov 2015 02:45:38 +0000 (02:45 +0000)]
Merge "Remove unnecessary inheritance layer between aliases."

8 years agoSupport LOCAL_ACP_UNAVAILABLE for prebuilts
Colin Cross [Tue, 17 Nov 2015 01:43:11 +0000 (17:43 -0800)]
Support LOCAL_ACP_UNAVAILABLE for prebuilts

Files built by soong will be installed using BUILD_PREBUILT, and may
include prerequesites of the acp binary.  Allow specifying
LOCAL_ACP_UNAVAILABLE:=true on prebuilts.

Change-Id: Iccfe61092f90b61f397a45f5334b0c1c0f439b32

8 years agoRemove unnecessary inheritance layer between aliases.
Ying Wang [Tue, 17 Nov 2015 01:16:47 +0000 (17:16 -0800)]
Remove unnecessary inheritance layer between aliases.

The extra inheritance layer may cause multiple
PRODUCT_DEVICE/PRODUCT_BRAND values for a product if it doesn't
explicitly override them, eg. gms.
The full_* are deprecated product names. We keep them just for backward
compatibility, for some tools may still use the full_* product names.

Bug: 25611987
Change-Id: I7ecebd422754c3ceb16507b8d9ced65d533fe7c3

8 years agoreleasetools: Pack updatable images into IMAGES/ for A/B update.
Tao Bao [Tue, 17 Nov 2015 00:32:27 +0000 (16:32 -0800)]
releasetools: Pack updatable images into IMAGES/ for A/B update.

Vendor-specific images (radio, bootloader and etc) used to stay in
RADIO/ in target_files zip. A/B updater expects them to be available
under IMAGES/. Make a copy for such images when calling
add_img_to_target_files.py.

We cannot move them directly from RADIO/ to IMAGES/, because we will
delete everything under IMAGES/ when signing for release.

Bug: 25674625
Change-Id: I977c879d0ff7e45c83b3f5c63844a5b135caa383

8 years agoAdd ro.build.ab_update property.
Tao Bao [Wed, 11 Nov 2015 18:22:48 +0000 (10:22 -0800)]
Add ro.build.ab_update property.

Set ro.build.ab_update if AB_OTA_UPDATER is true. Device will depend on
this property to call the proper update API.

Change-Id: I5916ef5b30ea3351d323382f7ce83a17df2b0a70

8 years agobuild: Fix "adb shell" in recovery for system_root_image.
Tao Bao [Thu, 30 Jul 2015 21:34:01 +0000 (14:34 -0700)]
build: Fix "adb shell" in recovery for system_root_image.

For system images that contain the root directory, "adb shell" in
recovery stops working if the image is mounted at "/system", because
sh now locates at /system/system/bin/sh. We fix the issue by mounting
the image on /system_root and create a symlink to /system_root/system
for /system.

Bug: 22855115
Change-Id: Ia6b257b75aeb67687c3909063d1725a23a5ccd60

8 years agoreleasetools: Support packaging for system_root_image.
Tao Bao [Wed, 22 Jul 2015 01:01:20 +0000 (18:01 -0700)]
releasetools: Support packaging for system_root_image.

For system images that contain the root directory, we need to find the
root directory at ROOT/ instead of BOOT/RAMDISK/.

 Conflicts:
tools/releasetools/common.py

Change-Id: Ica345c8b1b03475f8ac6c44fd576045fcf17c882

8 years agobuild: Support packaging for system_root_image.
Tao Bao [Wed, 22 Jul 2015 01:01:20 +0000 (18:01 -0700)]
build: Support packaging for system_root_image.

If system image contains the root directory
(BOARD_BUILD_SYSTEM_ROOT_IMAGE == "true"), we package the root directory
into ROOT/ instead of BOOT/RAMDISK/ in the target_files zip.

Change-Id: I817776ca97194991308b2131d0e34ab136283464

8 years agoSupport systems that use a full copy of recovery image.
Tao Bao [Wed, 22 Jul 2015 19:33:18 +0000 (12:33 -0700)]
Support systems that use a full copy of recovery image.

If BOARD_USES_FULL_RECOVERY_IMAGE == true, a full copy of recovery
image will be carried as /system/etc/recovery.img instead of a patch
at /system/recovery_from_boot.p.

Bug: 22641135
Change-Id: Ie271d3e2d55d7b003f667ac5b44203d69b23c63b
(cherry picked from commit 8beab69bd5d728810aca55536017912e65777bb8)

8 years agobuild: core: Fix issue in recovery
Daniel Rosenberg [Tue, 2 Jun 2015 23:40:58 +0000 (16:40 -0700)]
build: core: Fix issue in recovery

Now that symlinks are created at build time, the rsync while
making recovery runs into issues around the etc symlink

Change-Id: Ie781507b22e4661629840075b274eaab2f712de6

8 years agoAdd support for system images that contain the root directory
Daniel Rosenberg [Sat, 6 Jun 2015 00:59:27 +0000 (17:59 -0700)]
Add support for system images that contain the root directory

When the root directory is included in system, the assumption that
system is mounted at /system breaks down. Redirect /system to /
in that case.

Change-Id: I8031b32d7cb9ca699c1cc22939e28afce9d1c847

8 years agoAdd ro.build.system_root_image
Daniel Rosenberg [Tue, 30 Jun 2015 00:20:43 +0000 (17:20 -0700)]
Add ro.build.system_root_image

ro.build.system_root_image is true if the root directory is built
into the system image.

Change-Id: I17208ebd004c63aebb09db6c3e5f795619e73bd2

8 years agoHonor TARGET_NO_RECOVERY flag.
Tao Bao [Wed, 28 Oct 2015 02:25:18 +0000 (19:25 -0700)]
Honor TARGET_NO_RECOVERY flag.

Don't generate recovery.img when calling 'make dist' if
TARGET_NO_RECOVERY is set. The build system passes the flag to the
packaging script which then generates recovery.img conditionally.

Bug: 25329471
Change-Id: Ia7f08943834ee39e781d7e9b5beb1b31d95a73d9
(cherry picked from commit db45efa64764c1de5c007384ab172ad817e1d295)

8 years agoDO NOT MERGE Change the cache partition size check into warnings.
Tao Bao [Sat, 8 Aug 2015 02:49:45 +0000 (19:49 -0700)]
DO NOT MERGE Change the cache partition size check into warnings.

For some old builds, we may not define cache partition size. Change the
exception into a warning to make the script backward compatible.

Change-Id: Ia90531e3455d4888cfac6510cab879c50883be53
(cherry picked from commit 575d68a48edc90d655509f2980dacc69958948de)

8 years agobuild: Don't call make_recovery_patch if there's no recovery.
Tao Bao [Wed, 19 Aug 2015 01:03:56 +0000 (18:03 -0700)]
build: Don't call make_recovery_patch if there's no recovery.

Change-Id: I7ae57f6d69293645f88cbe9cc61b7cbbe8d12430
(cherry picked from commit cbc6dc29d6ac0f42db2176177fd2d2ad74923133)

8 years agoFix using libc++_static in dynamic binaries.
Dan Albert [Tue, 12 May 2015 18:00:31 +0000 (11:00 -0700)]
Fix using libc++_static in dynamic binaries.

Change-Id: Ia1f37c4c7ab2eb913c8aa29d80b86e44f7bc766d
(cherry picked from commit 2a4a023a541d16b2a8c66aed97748d0f0f376387)

8 years agoCleanup libc++ configuration.
Dan Albert [Wed, 6 May 2015 17:08:11 +0000 (10:08 -0700)]
Cleanup libc++ configuration.

Change-Id: Id1eeeb23466b04a4fe64c04e1768b98a1068b5a8
(cherry picked from commit 0ad5bd22c898cbf0e8d1e156dace080f4e11a0a1)

8 years agoMerge "Allow overriding the LLVM prebuilts path." am: 9119f14943
Dan Albert [Mon, 16 Nov 2015 18:41:19 +0000 (18:41 +0000)]
Merge "Allow overriding the LLVM prebuilts path." am: 9119f14943
am: c00e0b841a

* commit 'c00e0b841a464b6a7eac2a2c057e0c24672fe7a0':
  Allow overriding the LLVM prebuilts path.

8 years agoMerge "Allow overriding the LLVM prebuilts path."
Dan Albert [Mon, 16 Nov 2015 18:33:08 +0000 (18:33 +0000)]
Merge "Allow overriding the LLVM prebuilts path."
am: 9119f14943

* commit '9119f14943b3d90863660fec58b4967c9ba2ccaa':
  Allow overriding the LLVM prebuilts path.

8 years agoMerge "Allow overriding the LLVM prebuilts path."
Dan Albert [Mon, 16 Nov 2015 18:28:24 +0000 (18:28 +0000)]
Merge "Allow overriding the LLVM prebuilts path."

8 years agoRevert "Change version back to 6.0" am: 55a149b740 am: 550b317688
Bart Sears [Sun, 15 Nov 2015 18:05:17 +0000 (18:05 +0000)]
Revert "Change version back to 6.0" am: 55a149b740 am: 550b317688
am: 7b67e0dd73

* commit '7b67e0dd73766dcceb77fa08ae2d8da1341b3c87':
  Revert "Change version back to 6.0"

8 years agoChange version back to 6.0 am: 970f203b3d am: 3a37a0cefd
Bart Sears [Sun, 15 Nov 2015 18:05:09 +0000 (18:05 +0000)]
Change version back to 6.0 am: 970f203b3d am: 3a37a0cefd
am: e373f066fb

* commit 'e373f066fbc4b96fd836d3a6e08e582ece8a0a2d':
  Change version back to 6.0

8 years agoRevert "Change version back to 6.0" am: 55a149b740
Bart Sears [Sun, 15 Nov 2015 18:02:33 +0000 (18:02 +0000)]
Revert "Change version back to 6.0" am: 55a149b740
am: 550b317688

* commit '550b317688211118d8f2c50aaa80d2616903807b':
  Revert "Change version back to 6.0"

8 years agoChange version back to 6.0 am: 970f203b3d
Bart Sears [Sun, 15 Nov 2015 18:02:26 +0000 (18:02 +0000)]
Change version back to 6.0 am: 970f203b3d
am: 3a37a0cefd

* commit '3a37a0cefd7599fa769fd86f7d64d781aaa88be7':
  Change version back to 6.0

8 years agoRevert "Change version back to 6.0"
Bart Sears [Sun, 15 Nov 2015 17:59:44 +0000 (17:59 +0000)]
Revert "Change version back to 6.0"
am: 55a149b740

* commit '55a149b74064b799efe9c69211a511725cb9925b':
  Revert "Change version back to 6.0"