OSDN Git Service

android-x86/build.git
9 years agoam 83aca79b: Merge "Don\'t include static executables when SANITIZE_TARGET=address"
Ying Wang [Tue, 23 Jun 2015 20:11:24 +0000 (20:11 +0000)]
am 83aca79b: Merge "Don\'t include static executables when SANITIZE_TARGET=address"

* commit '83aca79b8df3296e24122f3ed9016f1463edb451':
  Don't include static executables when SANITIZE_TARGET=address

9 years agoMerge "Don't include static executables when SANITIZE_TARGET=address"
Ying Wang [Tue, 23 Jun 2015 19:59:56 +0000 (19:59 +0000)]
Merge "Don't include static executables when SANITIZE_TARGET=address"

9 years agoam b7f56b97: Merge "Revert "Hide unwinder symbols in each binary.""
Elliott Hughes [Tue, 23 Jun 2015 19:38:36 +0000 (19:38 +0000)]
am b7f56b97: Merge "Revert "Hide unwinder symbols in each binary.""

* commit 'b7f56b979bbfe00b67f6f6d573d43bcf607649eb':
  Revert "Hide unwinder symbols in each binary."

9 years agoMerge "Revert "Hide unwinder symbols in each binary.""
Elliott Hughes [Tue, 23 Jun 2015 19:29:26 +0000 (19:29 +0000)]
Merge "Revert "Hide unwinder symbols in each binary.""

9 years agoRevert "Hide unwinder symbols in each binary."
Bart Sears [Tue, 23 Jun 2015 19:23:13 +0000 (19:23 +0000)]
Revert "Hide unwinder symbols in each binary."

This reverts commit dc30a16ba27c4a0de388696869cd1c518ecb3f3a.

Change-Id: Ib6af148bcaa3041b3040e525442a39b493852794

9 years agoam 5e3fcc1e: Merge "Hide unwinder symbols in each binary."
Dan Albert [Tue, 23 Jun 2015 18:12:43 +0000 (18:12 +0000)]
am 5e3fcc1e: Merge "Hide unwinder symbols in each binary."

* commit '5e3fcc1e6c5bbf7e85bd9744f178c529dd6c1d49':
  Hide unwinder symbols in each binary.

9 years agoMerge "Hide unwinder symbols in each binary."
Dan Albert [Tue, 23 Jun 2015 18:00:36 +0000 (18:00 +0000)]
Merge "Hide unwinder symbols in each binary."

9 years agoDon't include static executables when SANITIZE_TARGET=address
Ying Wang [Tue, 23 Jun 2015 01:35:35 +0000 (18:35 -0700)]
Don't include static executables when SANITIZE_TARGET=address

Also we can't build the ota package without these static executables.

Bug: 21785137
Change-Id: I11b35abebced4b0608378a072ece2ab2dbadeffb

9 years agoam 82f6383f: Merge "Add variable ANDROID_NO_TEST_CHECK to not build all test modules"
Ying Wang [Tue, 23 Jun 2015 17:04:31 +0000 (17:04 +0000)]
am 82f6383f: Merge "Add variable ANDROID_NO_TEST_CHECK to not build all test modules"

* commit '82f6383fa6bcfc060bbe631b8dab570e3691bb88':
  Add variable ANDROID_NO_TEST_CHECK to not build all test modules

9 years agoMerge "Add variable ANDROID_NO_TEST_CHECK to not build all test modules"
Ying Wang [Tue, 23 Jun 2015 16:57:30 +0000 (16:57 +0000)]
Merge "Add variable ANDROID_NO_TEST_CHECK to not build all test modules"

9 years agoAdd variable ANDROID_NO_TEST_CHECK to not build all test modules
Claes Elgemark [Thu, 11 Jun 2015 06:22:38 +0000 (08:22 +0200)]
Add variable ANDROID_NO_TEST_CHECK to not build all test modules

Introduce a way to speed up local builds. Don't build all test
modules if ANDROID_NO_TEST_CHECK is set to true.

On master branch this reduces what is built by more than
300 apps and 50 java libraries. Time for doing this on a
12 core machine running with -j13 is about 10 minutes.

Change-Id: I90feb108695ee60d0dbbf497644f767cc3748215

9 years agoam 3d81b7d6: Merge "Add android.hardware.ethernet.xml for ranchu targets"
Bo Hu [Tue, 23 Jun 2015 06:49:02 +0000 (06:49 +0000)]
am 3d81b7d6: Merge "Add android.hardware.ethernet.xml for ranchu targets"

* commit '3d81b7d627b5076e8e850fca6233bd071f4f7c42':
  Add android.hardware.ethernet.xml for ranchu targets

9 years agoMerge "Add android.hardware.ethernet.xml for ranchu targets"
Bo Hu [Tue, 23 Jun 2015 06:37:53 +0000 (06:37 +0000)]
Merge "Add android.hardware.ethernet.xml for ranchu targets"

9 years agoHide unwinder symbols in each binary.
Dan Albert [Tue, 31 Mar 2015 23:47:09 +0000 (16:47 -0700)]
Hide unwinder symbols in each binary.

These symbols need to always be resolved for each binary. Making these
symbols hidden means that we will get a build breakage if this doesn't
happen, and should also prevent the situation where one unwinder's
symbols are visible to the other.

Bug: 18471342
Bug: 19958712
Change-Id: Ieff1f10dab254b60ed120410f45998cf75bb5b9b

9 years agoresolved conflicts for merge of bad5ebb6 to stage-aosp-master
Evgenii Stepanov [Fri, 19 Jun 2015 21:22:25 +0000 (14:22 -0700)]
resolved conflicts for merge of bad5ebb6 to stage-aosp-master

Change-Id: I6837884a3258f34baaf5a7d9ca6bbd6a3f3e62e5

9 years agoam eac1f6ed: Merge "With SANITIZE_TARGET, move shared libraries to /data."
Evgenii Stepanov [Fri, 19 Jun 2015 21:14:19 +0000 (21:14 +0000)]
am eac1f6ed: Merge "With SANITIZE_TARGET, move shared libraries to /data."

* commit 'eac1f6edbde64e81abd06f0ca32c705751b34ca9':
  With SANITIZE_TARGET, move shared libraries to /data.

9 years agoMerge "Clean intermediate files if SANITIZE_TARGET has changed."
Evgenii Stepanov [Fri, 19 Jun 2015 21:05:40 +0000 (21:05 +0000)]
Merge "Clean intermediate files if SANITIZE_TARGET has changed."

9 years agoMerge "With SANITIZE_TARGET, move shared libraries to /data."
Evgenii Stepanov [Fri, 19 Jun 2015 21:05:31 +0000 (21:05 +0000)]
Merge "With SANITIZE_TARGET, move shared libraries to /data."

9 years agoam d479a7a1: Merge "Enable SANITIZE_TARGET."
Evgenii Stepanov [Fri, 19 Jun 2015 18:26:43 +0000 (18:26 +0000)]
am d479a7a1: Merge "Enable SANITIZE_TARGET."

* commit 'd479a7a119b02624fe922b04125e053b2d968628':
  Enable SANITIZE_TARGET.

9 years agoClean intermediate files if SANITIZE_TARGET has changed.
Evgenii Stepanov [Fri, 12 Jun 2015 00:36:06 +0000 (17:36 -0700)]
Clean intermediate files if SANITIZE_TARGET has changed.

Do not clean installed files, only intermediate files. This way, two
consequitive builds first without, then with SANITIZE_TARGET will
produce a frankenbuild with both sets of shared libraries.

Bug: 21785137
Change-Id: I231868b15331be942c783458cf36233c2e7740d3

9 years agoWith SANITIZE_TARGET, move shared libraries to /data.
Evgenii Stepanov [Fri, 12 Jun 2015 00:32:31 +0000 (17:32 -0700)]
With SANITIZE_TARGET, move shared libraries to /data.

A fully (or even mostly) asan-instrumented device will have 2 copies of each
shared library, which might not fit on system partition. Moving instrumented
libraries to /data.

Bug: 21785137
Change-Id: I64184261da2eb24a1382c67e4931c34a5a38b3c0

9 years agoMerge "Enable SANITIZE_TARGET."
Evgenii Stepanov [Fri, 19 Jun 2015 18:15:07 +0000 (18:15 +0000)]
Merge "Enable SANITIZE_TARGET."

9 years agoam 4fbb83dd: Merge "Add support for `LOCAL_SANITIZE := integer`."
Dan Albert [Fri, 19 Jun 2015 18:03:12 +0000 (18:03 +0000)]
am 4fbb83dd: Merge "Add support for `LOCAL_SANITIZE := integer`."

* commit '4fbb83dd3b69729fe08e4a18dd13ca536ae7376f':
  Add support for `LOCAL_SANITIZE := integer`.

9 years agoMerge "Add support for `LOCAL_SANITIZE := integer`."
Dan Albert [Fri, 19 Jun 2015 17:51:10 +0000 (17:51 +0000)]
Merge "Add support for `LOCAL_SANITIZE := integer`."

9 years agoam 20f4a364: Merge "Cleanup unused clear_vars.mk entry."
Dan Albert [Fri, 19 Jun 2015 17:35:15 +0000 (17:35 +0000)]
am 20f4a364: Merge "Cleanup unused clear_vars.mk entry."

* commit '20f4a364a83d9a3906d3cf8b866d00437f8ff2d4':
  Cleanup unused clear_vars.mk entry.

9 years agoAdd support for `LOCAL_SANITIZE := integer`.
Dan Albert [Wed, 17 Jun 2015 06:27:34 +0000 (23:27 -0700)]
Add support for `LOCAL_SANITIZE := integer`.

This also does a bit of cleanup in config_sanitizers.mk. The result is
that `LOCAL_SANITIZE := <any arbitrary ubsan group>` should function
fine for both host and target.

This is a superset of LOCAL_DETECT_INTEGER_OVERFLOWS, so remove that.
This also checks integer division by zero.  It's supposed to cover
shifting undefined behaviors as well, but apparently it does not
(though `LOCAL_SANITIZE := shift` works fine).

Change-Id: I4ac99eafa6920a3f8cb82af37ce56ff0fdb95223

9 years agoMerge "Cleanup unused clear_vars.mk entry."
Dan Albert [Fri, 19 Jun 2015 17:27:41 +0000 (17:27 +0000)]
Merge "Cleanup unused clear_vars.mk entry."

9 years agoCleanup unused clear_vars.mk entry.
Dan Albert [Fri, 19 Jun 2015 17:24:07 +0000 (10:24 -0700)]
Cleanup unused clear_vars.mk entry.

Change-Id: Ibd7b87d1364a60289609a267a287c4afa1d5e5cb

9 years agoAdd android.hardware.ethernet.xml for ranchu targets
Miroslav Tisma [Mon, 15 Jun 2015 13:53:39 +0000 (15:53 +0200)]
Add android.hardware.ethernet.xml for ranchu targets

This commit adds android.hardware.ethernet.xml file for ethernet
permission to PRODUCT_COPY_FILES which will be copied to
/system/etc/permission folder on the target. Reason for adding
this permission file is for enabling the ethernet and having
functional networking until RIL backend support in ranchu is
implemented.

This requires dhcpcd_eth0 service definition in init.ranchu.rc.

Architectures that use goldfish emulator do not need ethernet
support, because networking is provided by RIL.

Change-Id: I7972f80cf78c0fdecf3fde45bf018230bbcefd38

9 years agoEnable SANITIZE_TARGET.
Evgenii Stepanov [Thu, 11 Jun 2015 20:57:10 +0000 (13:57 -0700)]
Enable SANITIZE_TARGET.

The same as SANITIZE_HOST, but for the target.
Also, skip all LOCAL_FORCE_STATIC_EXECUTABLE targets, as ASan does not
support static linking.

Bug: 21785137
Change-Id: Ief53ff8de1fee18f230d6c7dd31845db5bbd415c

9 years agoam c5672344: Merge "Really include drawables for all densities."
Ying Wang [Wed, 17 Jun 2015 21:26:55 +0000 (21:26 +0000)]
am c5672344: Merge "Really include drawables for all densities."

* commit 'c567234484c9aa5b8ea2061e710109da9cc36c83':
  Really include drawables for all densities.

9 years agoMerge "Really include drawables for all densities."
Ying Wang [Wed, 17 Jun 2015 21:18:47 +0000 (21:18 +0000)]
Merge "Really include drawables for all densities."

9 years agoReally include drawables for all densities.
Ying Wang [Fri, 12 Jun 2015 17:33:59 +0000 (10:33 -0700)]
Really include drawables for all densities.

Previously with "PRODUCT_AAPT_CONFIG := normal" resource with modifier
"small" isn't included.

Bug: 21643610
Change-Id: I53940d716fb9705462b1abb882e04103e211f8af

9 years agoam 06f0a137: Merge "Remove LOCAL_ADDRESS_SANITIZER."
Dan Albert [Wed, 17 Jun 2015 17:32:41 +0000 (17:32 +0000)]
am 06f0a137: Merge "Remove LOCAL_ADDRESS_SANITIZER."

* commit '06f0a137dce58bf75576b0a2d0a5e7410dae919d':
  Remove LOCAL_ADDRESS_SANITIZER.

9 years agoam 2a884eef: Merge "Stop disallowing sanitizers."
Dan Albert [Wed, 17 Jun 2015 17:32:39 +0000 (17:32 +0000)]
am 2a884eef: Merge "Stop disallowing sanitizers."

* commit '2a884eeff61c3e0302660660ccb174a52236910a':
  Stop disallowing sanitizers.

9 years agoMerge "Remove LOCAL_ADDRESS_SANITIZER."
Dan Albert [Wed, 17 Jun 2015 17:21:26 +0000 (17:21 +0000)]
Merge "Remove LOCAL_ADDRESS_SANITIZER."

9 years agoMerge "Stop disallowing sanitizers."
Dan Albert [Wed, 17 Jun 2015 17:19:24 +0000 (17:19 +0000)]
Merge "Stop disallowing sanitizers."

9 years agoam 40990c83: Merge "Revert "[MIPS] Do not use compact branches until GDB supports...
Elliott Hughes [Wed, 17 Jun 2015 17:12:35 +0000 (17:12 +0000)]
am 40990c83: Merge "Revert "[MIPS] Do not use compact branches until GDB supports them""

* commit '40990c83f0d719d37cd48e52b55fb59b748531b0':
  Revert "[MIPS] Do not use compact branches until GDB supports them"

9 years agoMerge "Revert "[MIPS] Do not use compact branches until GDB supports them""
Elliott Hughes [Wed, 17 Jun 2015 17:02:52 +0000 (17:02 +0000)]
Merge "Revert "[MIPS] Do not use compact branches until GDB supports them""

9 years agoRevert "[MIPS] Do not use compact branches until GDB supports them"
Nikola Veljkovic [Wed, 17 Jun 2015 15:22:26 +0000 (17:22 +0200)]
Revert "[MIPS] Do not use compact branches until GDB supports them"

This reverts commit 063ef3308992ce67c9a72c351978c3b7d2346e94.

9 years agoRemove LOCAL_ADDRESS_SANITIZER.
Dan Albert [Tue, 16 Jun 2015 23:04:01 +0000 (16:04 -0700)]
Remove LOCAL_ADDRESS_SANITIZER.

I've migrated all users of this to the new option now, so we can drop
this.

Dropping `SANITIZE_HOST := true` will have to wait until the build
server configs have been updated.

Change-Id: I591436e197a6c6c079a6cd6a2decb702b574cd71

9 years agoStop disallowing sanitizers.
Dan Albert [Tue, 16 Jun 2015 21:14:43 +0000 (14:14 -0700)]
Stop disallowing sanitizers.

Change-Id: I641cb3fe998184f8926324e3365a7a99d87263df

9 years agoam 8ae7aa94: Merge "Remove copy & paste cruft from the mips64 combo."
Elliott Hughes [Tue, 16 Jun 2015 22:42:42 +0000 (22:42 +0000)]
am 8ae7aa94: Merge "Remove copy & paste cruft from the mips64 combo."

* commit '8ae7aa942bf7d0844bcdfb6116076a21837ded4c':
  Remove copy & paste cruft from the mips64 combo.

9 years agoMerge "Remove copy & paste cruft from the mips64 combo."
Elliott Hughes [Tue, 16 Jun 2015 22:32:28 +0000 (22:32 +0000)]
Merge "Remove copy & paste cruft from the mips64 combo."

9 years agoRemove copy & paste cruft from the mips64 combo.
Elliott Hughes [Tue, 16 Jun 2015 22:22:52 +0000 (15:22 -0700)]
Remove copy & paste cruft from the mips64 combo.

libthread_db hasn't been in bionic for years.

Change-Id: Ibc036d894c6b6bf9ee4653f95ff7a000a223cb2e

9 years agoam c27d4717: Merge "Fix libdl inclusion for default-ub."
Dan Albert [Tue, 16 Jun 2015 21:22:39 +0000 (21:22 +0000)]
am c27d4717: Merge "Fix libdl inclusion for default-ub."

* commit 'c27d471742df9e69d4c0d932e8d7c11455bc3551':
  Fix libdl inclusion for default-ub.

9 years agoMerge "Fix libdl inclusion for default-ub."
Dan Albert [Tue, 16 Jun 2015 21:12:22 +0000 (21:12 +0000)]
Merge "Fix libdl inclusion for default-ub."

9 years agoam dcac4582: Merge "Add support for LOCAL_DETECT_INTEGER_OVERFLOWS"
Nick Kralevich [Mon, 15 Jun 2015 22:04:47 +0000 (22:04 +0000)]
am dcac4582: Merge "Add support for LOCAL_DETECT_INTEGER_OVERFLOWS"

* commit 'dcac45820e4ce7faad4dbfd187f8b788964c9981':
  Add support for LOCAL_DETECT_INTEGER_OVERFLOWS

9 years agoMerge "Add support for LOCAL_DETECT_INTEGER_OVERFLOWS"
Nick Kralevich [Mon, 15 Jun 2015 21:54:30 +0000 (21:54 +0000)]
Merge "Add support for LOCAL_DETECT_INTEGER_OVERFLOWS"

9 years agoAdd support for LOCAL_DETECT_INTEGER_OVERFLOWS
Nick Kralevich [Sun, 14 Jun 2015 18:38:30 +0000 (11:38 -0700)]
Add support for LOCAL_DETECT_INTEGER_OVERFLOWS

Add build system support for LOCAL_DETECT_INTEGER_OVERFLOWS. When enabled,
an attempt to perform an integer arithmetic operation which overflows
will result in a call to abort(). This is intended for security
sensitive code, where integer overflow operations are not expected
nor desirable.

Two classes of underflows/overflows are detected and blocked:

1) Signed integer underflow/overflow.
2) Unsigned integer underflow/overflows.

Signed integer overflows are undefined behavior, according to the
C standard. Unsigned integer overflows are defined behavior, but
still undesirable in security sensitive code.

Only clang is supported today. gcc has -ftrapv for handling signed
integer overflow, but it's widely considered broken
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35412) and we're
deliberately avoiding it's use here.

Change-Id: Ib4918dc84e37e83d4205e5035544545d91671e5f
Vaguely-Related-Bug: 11859726

9 years agoFix libdl inclusion for default-ub.
Dan Albert [Mon, 15 Jun 2015 18:39:29 +0000 (11:39 -0700)]
Fix libdl inclusion for default-ub.

We shouldn't be using ldlibs for target libraries because it doesn't
add a real dependency.

Change-Id: Ib1ec40b95356feb521e95674b64d04d5ecc06332

9 years agoam 46cb2ee3: Merge "Force some clang Werrors that *will* break things."
Dan Albert [Fri, 12 Jun 2015 19:59:13 +0000 (19:59 +0000)]
am 46cb2ee3: Merge "Force some clang Werrors that *will* break things."

* commit '46cb2ee3cb120a1c03241e9e2aa66d76c890c486':
  Force some clang Werrors that *will* break things.

9 years agoMerge "Force some clang Werrors that *will* break things."
Dan Albert [Fri, 12 Jun 2015 19:52:19 +0000 (19:52 +0000)]
Merge "Force some clang Werrors that *will* break things."

9 years agoam ed6e4d19: Merge "selinux: add tools to dev path"
Jeff Vander Stoep [Fri, 12 Jun 2015 17:44:49 +0000 (17:44 +0000)]
am ed6e4d19: Merge "selinux: add tools to dev path"

* commit 'ed6e4d1933cc0a68cd2eb3b7a83d5f0ccefac553':
  selinux: add tools to dev path

9 years agoMerge "selinux: add tools to dev path"
Jeff Vander Stoep [Fri, 12 Jun 2015 17:37:24 +0000 (17:37 +0000)]
Merge "selinux: add tools to dev path"

9 years agoselinux: add tools to dev path
Jeff Vander Stoep [Fri, 12 Jun 2015 16:56:39 +0000 (09:56 -0700)]
selinux: add tools to dev path

Adds audit2allow to the path. No build required.

Bug: 21724977
Change-Id: Ide320a56b9cdbfa426b978443f6df07fa2a38fbc

9 years agoForce some clang Werrors that *will* break things.
Dan Albert [Wed, 10 Jun 2015 23:33:43 +0000 (16:33 -0700)]
Force some clang Werrors that *will* break things.

Clang is really aggressive at optimizing a handful of cases (read:
clang will ruin your day some if you write bad code). Fortunately, it
also emits a warning when it's about to do this.

To prevent anyone from suffering from these optimizations, make these
warnings errors and make them impossible to disable.

Change-Id: I5e10bb0fc2ca23190017da716b3b84635577a0bd

9 years agoam 1b96592a: Merge "Add build_verity_metadata.py to dist-tools"
Ying Wang [Tue, 9 Jun 2015 16:32:52 +0000 (16:32 +0000)]
am 1b96592a: Merge "Add build_verity_metadata.py to dist-tools"

* commit '1b96592aab7a8e3d357a4e09f685968edcfe05b9':
  Add build_verity_metadata.py to dist-tools

9 years agoMerge "Add build_verity_metadata.py to dist-tools"
Ying Wang [Tue, 9 Jun 2015 16:20:49 +0000 (16:20 +0000)]
Merge "Add build_verity_metadata.py to dist-tools"

9 years agoam 7d2c71cf: Merge "Remove duplicate CTS tests from libcore cts packages."
Narayan Kamath [Tue, 9 Jun 2015 10:12:12 +0000 (10:12 +0000)]
am 7d2c71cf: Merge "Remove duplicate CTS tests from libcore cts packages."

* commit '7d2c71cf90cc8da55c8b8faad5910267c23ae542':
  Remove duplicate CTS tests from libcore cts packages.

9 years agoMerge "Remove duplicate CTS tests from libcore cts packages."
Narayan Kamath [Tue, 9 Jun 2015 10:03:16 +0000 (10:03 +0000)]
Merge "Remove duplicate CTS tests from libcore cts packages."

9 years agoRemove duplicate CTS tests from libcore cts packages.
Narayan Kamath [Mon, 1 Jun 2015 13:45:55 +0000 (14:45 +0100)]
Remove duplicate CTS tests from libcore cts packages.

The catch all "org" package was catching several thousand
org.apache.harmony.tests.* tests that are already covered by
other packages. Replace the catch-all org.* with specific prefixes.

Needs additional support in CollectAllTests to handle multiple
prefixes. This is implemented in the companion change.

bug: 20862863

(cherry picked from commit cf7fbcd03d9f13d1c2fe6e65f02247feadec136d)

Change-Id: I1d28f91cfca098ccdcd62e88bb486b433d9c29d8

9 years agoam 911637bf: Merge "Add missing shared libraries to dist tools"
Mark Salyzyn [Tue, 9 Jun 2015 00:00:37 +0000 (00:00 +0000)]
am 911637bf: Merge "Add missing shared libraries to dist tools"

* commit '911637bf33b2f8994fc93eb8ea6e4a8428122e13':
  Add missing shared libraries to dist tools

9 years agoMerge "Add missing shared libraries to dist tools"
Mark Salyzyn [Mon, 8 Jun 2015 23:51:32 +0000 (23:51 +0000)]
Merge "Add missing shared libraries to dist tools"

9 years agoam 8e42131b: Merge "Strip path from verity_signer_cmd in the target-files meta data."
Ying Wang [Mon, 8 Jun 2015 23:48:24 +0000 (23:48 +0000)]
am 8e42131b: Merge "Strip path from verity_signer_cmd in the target-files meta data."

* commit '8e42131ba2aa4fd12395e2c122ab62c9991e6f72':
  Strip path from verity_signer_cmd in the target-files meta data.

9 years agoMerge "Strip path from verity_signer_cmd in the target-files meta data."
Ying Wang [Mon, 8 Jun 2015 23:39:24 +0000 (23:39 +0000)]
Merge "Strip path from verity_signer_cmd in the target-files meta data."

9 years agoam 080f57ae: Merge "Remove the unnecessary full_x86_64 and full_mips64."
Ying Wang [Mon, 8 Jun 2015 19:15:13 +0000 (19:15 +0000)]
am 080f57ae: Merge "Remove the unnecessary full_x86_64 and full_mips64."

* commit '080f57aed7ac0f03c5db216dafe5023b032525ed':
  Remove the unnecessary full_x86_64 and full_mips64.

9 years agoMerge "Remove the unnecessary full_x86_64 and full_mips64."
Ying Wang [Mon, 8 Jun 2015 19:00:59 +0000 (19:00 +0000)]
Merge "Remove the unnecessary full_x86_64 and full_mips64."

9 years agoRemove the unnecessary full_x86_64 and full_mips64.
Ying Wang [Mon, 8 Jun 2015 18:57:26 +0000 (11:57 -0700)]
Remove the unnecessary full_x86_64 and full_mips64.

For historical reason, the aosp_* products were named full_*.
We keep the full, full_x86 and full_mips in case some tools still
reference these legacy names; But no reason the have the full_* product
names for the new 64-bit archs.

Change-Id: I240ed0c6ded0ded2d80603bd0c5ff24750999afc

9 years agoAdd build_verity_metadata.py to dist-tools
Claes Elgemark [Thu, 4 Jun 2015 08:07:44 +0000 (10:07 +0200)]
Add build_verity_metadata.py to dist-tools

Preserve path as it is referenced by build_image.py.

Change-Id: Id6833d243b5a15b4ee5e0013340aeb2cd35f3578

9 years agoAdd missing shared libraries to dist tools
Claes Elgemark [Wed, 3 Jun 2015 06:35:52 +0000 (08:35 +0200)]
Add missing shared libraries to dist tools

Add missing libraries used by e2fsck and build_verity_tree.

Change-Id: I8bf0341300863ef0090b395b2aba0b7a952f6b58

9 years agoam 3a35aa1a: Merge "Add selinux and verity support to custom image generation."
Ying Wang [Wed, 3 Jun 2015 17:11:11 +0000 (17:11 +0000)]
am 3a35aa1a: Merge "Add selinux and verity support to custom image generation."

* commit '3a35aa1a2c1f3af3216875dd59a5bb21629b7c7f':
  Add selinux and verity support to custom image generation.

9 years agoam b7e6e8bb: Merge "Support to configure and build multiple custom images."
Ying Wang [Wed, 3 Jun 2015 17:11:10 +0000 (17:11 +0000)]
am b7e6e8bb: Merge "Support to configure and build multiple custom images."

* commit 'b7e6e8bb6d00dc2677b297e548aff92f97066ab5':
  Support to configure and build multiple custom images.

9 years agoMerge "Add selinux and verity support to custom image generation."
Ying Wang [Wed, 3 Jun 2015 16:59:01 +0000 (16:59 +0000)]
Merge "Add selinux and verity support to custom image generation."

9 years agoMerge "Support to configure and build multiple custom images."
Ying Wang [Wed, 3 Jun 2015 16:58:46 +0000 (16:58 +0000)]
Merge "Support to configure and build multiple custom images."

9 years agoAdd selinux and verity support to custom image generation.
Ying Wang [Sat, 21 Mar 2015 00:43:02 +0000 (17:43 -0700)]
Add selinux and verity support to custom image generation.

New custom image configuration variables:
- CUSTOM_IMAGE_SELINUX, set to "true" if the image supports selinux.
- CUSTOM_IMAGE_SUPPORT_VERITY, set to "true" if the product supports verity.
- CUSTOM_IMAGE_VERITY_BLOCK_DEVICE

Also changed the staging directory name to the mount point, like we do
for other images built by the build system.

Bug: 19609718
Change-Id: I6bbf06b79eee63e4c77834f2e6f1d5a7f7e00a12
(cherry picked from commit 7d51a4029590b58e22071eed919d59a0ff205bef)

9 years agoSupport to configure and build multiple custom images.
Ying Wang [Fri, 13 Mar 2015 01:30:39 +0000 (18:30 -0700)]
Support to configure and build multiple custom images.

Build additional images requested by the product makefile.
This script gives the ability to build multiple additional images and
you can configure what modules/files to include in each image.
1. Define PRODUCT_CUSTOM_IMAGE_MAKEFILES in your product makefile.
   PRODUCT_CUSTOM_IMAGE_MAKEFILES is a list of makefiles.
   Each makefile configures an image.
   For image configuration makefile foo/bar/xyz.mk, the built image
   file name
   will be xyz.img. So make sure they won't conflict.
2. In each image's configuration makefile, you can define variables:
  - CUSTOM_IMAGE_MOUNT_POINT, the mount point, such as "oem", "odm"
    etc.
  - CUSTOM_IMAGE_PARTITION_SIZE
  - CUSTOM_IMAGE_FILE_SYSTEM_TYPE
  - CUSTOM_IMAGE_DICT_FILE, a text file defining a dictionary
    accepted by BuildImage() in tools/releasetools/build_image.py.
  - CUSTOM_IMAGE_MODULES, a list of module names you want to include
    in the image; Not only the module itself will be installed to proper
    path in the image, you can also piggyback additional files/directories
    with the module's LOCAL_PICKUP_FILES.
  - CUSTOM_IMAGE_COPY_FILES, a list of "<src>:<dest>" to be copied to
    the image. <dest> is relativ to the root of the image.

To build all those images, run "make custom_images".

Bug: 19609718
Change-Id: Ic73587e08503a251be27797c7b00329716051927
(cherry picked from commit 5fcf1094f9cf4d57c2598237f99621f254130d71)

9 years agoam 9ec84792: Merge "goldfish: rename goldfish_logcat.te to logd.te"
Mark Salyzyn [Wed, 3 Jun 2015 16:52:50 +0000 (16:52 +0000)]
am 9ec84792: Merge "goldfish: rename goldfish_logcat.te to logd.te"

* commit '9ec84792b8f3faad150c68909055046b3bc272c1':
  goldfish: rename goldfish_logcat.te to logd.te

9 years agoam 9fed6369: Merge "Add VeritySigner.jar to ota tools"
Ying Wang [Wed, 3 Jun 2015 16:52:49 +0000 (16:52 +0000)]
am 9fed6369: Merge "Add VeritySigner.jar to ota tools"

* commit '9fed6369b6ee4ad07a0313fa5321047be1d79b85':
  Add VeritySigner.jar to ota tools

9 years agoMerge "goldfish: rename goldfish_logcat.te to logd.te"
Mark Salyzyn [Wed, 3 Jun 2015 16:45:26 +0000 (16:45 +0000)]
Merge "goldfish: rename goldfish_logcat.te to logd.te"

9 years agoMerge "Add VeritySigner.jar to ota tools"
Ying Wang [Wed, 3 Jun 2015 16:42:17 +0000 (16:42 +0000)]
Merge "Add VeritySigner.jar to ota tools"

9 years agoAdd VeritySigner.jar to ota tools
Claes Elgemark [Tue, 2 Jun 2015 09:59:32 +0000 (11:59 +0200)]
Add VeritySigner.jar to ota tools

Used by verity_signer

Change-Id: I6e2b654144b40573c3f3c0dc0d1c943889ffcd7d

9 years agoam 54310d1a: Merge "Fix the wrong error message"
Tao Bao [Wed, 3 Jun 2015 16:40:08 +0000 (16:40 +0000)]
am 54310d1a: Merge "Fix the wrong error message"

* commit '54310d1a0dc7a3ceaaee9f4cee7b1f8b7bfbf7de':
  Fix the wrong error message

9 years agoMerge "Fix the wrong error message"
Tao Bao [Wed, 3 Jun 2015 16:30:20 +0000 (16:30 +0000)]
Merge "Fix the wrong error message"

9 years agoFix the wrong error message
Tao Bao [Wed, 3 Jun 2015 16:24:08 +0000 (09:24 -0700)]
Fix the wrong error message

apply_patch_space() checks the free space on /cache, not /system.

Change-Id: I70996d5cd5a81fe4871ee738bddb1437e8df6fb9

9 years agoam b37ac46b: Merge "goldfish: logcat -Q in logd domain"
Mark Salyzyn [Wed, 3 Jun 2015 16:00:46 +0000 (16:00 +0000)]
am b37ac46b: Merge "goldfish: logcat -Q in logd domain"

* commit 'b37ac46bb40e24b1014010735abc5e63802ca3bb':
  goldfish: logcat -Q in logd domain

9 years agogoldfish: rename goldfish_logcat.te to logd.te
Mark Salyzyn [Wed, 3 Jun 2015 16:00:14 +0000 (09:00 -0700)]
goldfish: rename goldfish_logcat.te to logd.te

Bug: 19608716
Change-Id: I5c76648a4bcbbb15a033465e8af66b12af6e0a18

9 years agoMerge "goldfish: logcat -Q in logd domain"
Mark Salyzyn [Wed, 3 Jun 2015 15:47:18 +0000 (15:47 +0000)]
Merge "goldfish: logcat -Q in logd domain"

9 years agogoldfish: logcat -Q in logd domain
Mark Salyzyn [Wed, 3 Jun 2015 14:50:31 +0000 (07:50 -0700)]
goldfish: logcat -Q in logd domain

Deal with a build failure in conflict with cl/152105

Bug: 19608716
Change-Id: I1078046db3b159c1baf0a22435c3e777424453a1

9 years agoStrip path from verity_signer_cmd in the target-files meta data.
Claes Elgemark [Tue, 2 Jun 2015 09:03:27 +0000 (11:03 +0200)]
Strip path from verity_signer_cmd in the target-files meta data.

Strip path to be able to use outside a build e.g.
when resigning using the dist tools zip.

Change-Id: I492dcfd5791b66c17ae2e751cc8f67127e97b800

9 years agoam 708c4623: Merge "Add post-install verification for BBOTAs"
Tao Bao [Tue, 2 Jun 2015 18:14:40 +0000 (18:14 +0000)]
am 708c4623: Merge "Add post-install verification for BBOTAs"

* commit '708c462311afd63592a3adcc0e47c0c850b73444':
  Add post-install verification for BBOTAs

9 years agoMerge "Add post-install verification for BBOTAs"
Tao Bao [Tue, 2 Jun 2015 18:02:28 +0000 (18:02 +0000)]
Merge "Add post-install verification for BBOTAs"

9 years agoam ea6de994: (-s ours) Merge "[DO NOT MERGE] Add support for RMTYPEDEF with Jack"
Yohann Roussel [Tue, 2 Jun 2015 13:07:52 +0000 (13:07 +0000)]
am ea6de994: (-s ours) Merge "[DO NOT MERGE] Add support for RMTYPEDEF with Jack"

* commit 'ea6de994788bf90559ee75fc638328aa90d6853b':
  [DO NOT MERGE] Add support for RMTYPEDEF with Jack

9 years agoMerge "[DO NOT MERGE] Add support for RMTYPEDEF with Jack"
Yohann Roussel [Tue, 2 Jun 2015 12:58:37 +0000 (12:58 +0000)]
Merge "[DO NOT MERGE] Add support for RMTYPEDEF with Jack"

9 years ago[DO NOT MERGE] Add support for RMTYPEDEF with Jack
Yohann Roussel [Wed, 20 May 2015 15:52:15 +0000 (17:52 +0200)]
[DO NOT MERGE] Add support for RMTYPEDEF with Jack

Bug: 21099584

(cherry-picked from commit 5b2c6e26dbda66a2245f987db0428c2bf2eb7c95)

Change-Id: I39aa1f24780c216e978ef743098ca7ac65b2962e

9 years agoAdd post-install verification for BBOTAs
Tao Bao [Mon, 1 Jun 2015 20:40:49 +0000 (13:40 -0700)]
Add post-install verification for BBOTAs

Similar to the assertations in file-based OTA, we perform verification
for block-based OTAs (BBOTAs) after updating a partition, for both of
the incremental and full OTAs. It increases the update time (~20s on
Nexus 6), but will capture unnoticed errors right away.

Bug: 21500869
Change-Id: I89ac8fe623b855721b7affd07cf9426a23433ab0

9 years agoam b7bb040c: Merge "Docs: Update link to new Community page location"
Clay Murphy [Mon, 1 Jun 2015 19:16:46 +0000 (19:16 +0000)]
am b7bb040c: Merge "Docs: Update link to new Community page location"

* commit 'b7bb040c75922795b47434e09cd09842ad11fd46':
  Docs: Update link to new Community page location

9 years agoMerge "Docs: Update link to new Community page location"
Clay Murphy [Mon, 1 Jun 2015 19:04:56 +0000 (19:04 +0000)]
Merge "Docs: Update link to new Community page location"

9 years agoam 91c2f705: Merge "Add /lib[64] to host binary\'s rpath."
Ying Wang [Mon, 1 Jun 2015 18:37:12 +0000 (18:37 +0000)]
am 91c2f705: Merge "Add /lib[64] to host binary\'s rpath."

* commit '91c2f7053d131cb9449eccfda97ec80130dbf451':
  Add $ORIGIN/lib[64] to host binary's rpath.

9 years agoMerge "Add $ORIGIN/lib[64] to host binary's rpath."
Ying Wang [Mon, 1 Jun 2015 18:29:13 +0000 (18:29 +0000)]
Merge "Add $ORIGIN/lib[64] to host binary's rpath."