OSDN Git Service

android-x86/build.git
8 years agoMerge "Add fake libart"
Alex Light [Wed, 18 May 2016 21:05:41 +0000 (21:05 +0000)]
Merge "Add fake libart"

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

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

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

Change-Id: Ibcba9a4ce340c7a12306d1fee620a04027c0e292

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

Bug: 27775991

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

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

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

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

Change-Id: I0ac43a1dedf20e5251e05f12d120d0e6e2e1b1ee

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

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

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

Change-Id: Ic099f565f20fd993fc0713c033fbc5154373c98f

8 years agoMerge "Make apks depend on their certificates"
Shinichiro Hamaji [Tue, 17 May 2016 03:58:31 +0000 (03:58 +0000)]
Merge "Make apks depend on their certificates"

8 years agoRemove make variables exported from Soong
Dan Willemsen [Mon, 16 May 2016 08:42:58 +0000 (01:42 -0700)]
Remove make variables exported from Soong

These have all been strictly checked by Soong, so the values currently
match. Just remove them so that the make variables exported by Soong
will take over.

This also removes some of the GCC reconfiguration, since we haven't
implemented that in Soong. If it becomes useful in the future, we'll
implement it there.

Some things like TARGET_TOOCHAIN_ROOT can nearly be removed, but are
used before the Soong-exported make_vars.mk is loaded. In that case,
added to the clang cflags, so it can be removed once the cflags are
removed.

Others, like LLVM_PREBUILTS_VERSION are loaded even earlier -- in
envsetup.sh before we've even configured Soong. So for now, keep the
Make definition, and continue ensuring it's the same as the Soong
version.

Change-Id: I554b27062ac43610828a8c06d640d919a2dc21ca

8 years agoMerge "Remove TARGET_LIBGCC/LIBATOMIC/LIBGCOV"
Dan Willemsen [Tue, 17 May 2016 02:53:50 +0000 (02:53 +0000)]
Merge "Remove TARGET_LIBGCC/LIBATOMIC/LIBGCOV"

8 years agoRemove TARGET_LIBGCC/LIBATOMIC/LIBGCOV
Dan Willemsen [Mon, 16 May 2016 21:41:49 +0000 (14:41 -0700)]
Remove TARGET_LIBGCC/LIBATOMIC/LIBGCOV

Instead, use the libgcc/libatomic/libgcov from the static libraries dir,
which is provided by Soong. Copy the libraries using the Soong script if
Soong is disabled - this can be removed once USE_SOONG is removed.

Change-Id: Iad2ad20ad5c3cfc48bf1e46e594a482609098d7a

8 years agoMerge "No need to JAR-sign OTA update packages."
Alex Klyubin [Mon, 16 May 2016 17:11:04 +0000 (17:11 +0000)]
Merge "No need to JAR-sign OTA update packages."

8 years agoMerge "Soong: Read Android.soong.mk if skipping Android.mk"
Treehugger Robot [Fri, 13 May 2016 23:52:07 +0000 (23:52 +0000)]
Merge "Soong: Read Android.soong.mk if skipping Android.mk"

8 years agoSoong: Read Android.soong.mk if skipping Android.mk
Dan Willemsen [Fri, 13 May 2016 22:58:52 +0000 (15:58 -0700)]
Soong: Read Android.soong.mk if skipping Android.mk

If Soong is enabled, and we're skipping an Android.mk because there is
an Android.bp file, check for an Android.soong.mk file and read that
instead. This will allow us to temporarily define modules or recurse
into subdirectories that soong does not yet support.

Change-Id: Ifdb2f0204a38a5069e53527f66ffcfb8008c11a4

8 years agoMerge "Default USE_SOONG to true"
Colin Cross [Fri, 13 May 2016 22:40:23 +0000 (22:40 +0000)]
Merge "Default USE_SOONG to true"

8 years agoMerge "Don't use GTEST_OS_LINUX on Darwin"
Dan Willemsen [Fri, 13 May 2016 22:29:16 +0000 (22:29 +0000)]
Merge "Don't use GTEST_OS_LINUX on Darwin"

8 years agoMerge "Pass USE_SAFESTACK to Soong."
Evgenii Stepanov [Fri, 13 May 2016 22:24:52 +0000 (22:24 +0000)]
Merge "Pass USE_SAFESTACK to Soong."

8 years agoPass USE_SAFESTACK to Soong.
Evgenii Stepanov [Fri, 13 May 2016 01:03:23 +0000 (18:03 -0700)]
Pass USE_SAFESTACK to Soong.

Change-Id: I51a94da0942aa1a1e003c134a30e8da82e1270b8

8 years agoDon't use GTEST_OS_LINUX on Darwin
Dan Willemsen [Wed, 9 Mar 2016 19:01:43 +0000 (11:01 -0800)]
Don't use GTEST_OS_LINUX on Darwin

Change-Id: If77118591daa7b474e6989e03109ea32ddd357b2

8 years agoMerge "Make Error Prone warnings in sync with Error Prone documenation."
Ian Rogers [Fri, 13 May 2016 18:19:18 +0000 (18:19 +0000)]
Merge "Make Error Prone warnings in sync with Error Prone documenation."

8 years agoMerge "Use fs_config files for mksquashfs"
Treehugger Robot [Fri, 13 May 2016 18:13:22 +0000 (18:13 +0000)]
Merge "Use fs_config files for mksquashfs"

8 years agoMake Error Prone warnings in sync with Error Prone documenation.
Ian Rogers [Fri, 13 May 2016 15:59:00 +0000 (08:59 -0700)]
Make Error Prone warnings in sync with Error Prone documenation.

Use summary information from annotation within Error Prone to auto-generate
the warnings list.

Bug: 28681096
Change-Id: Ib3a5f734bd229726fcd7332eaa9e0e1bd1200c25

8 years agoMake apks depend on their certificates
Shinichiro Hamaji [Fri, 13 May 2016 07:03:24 +0000 (16:03 +0900)]
Make apks depend on their certificates

Bug: 27954979
Change-Id: I02db576cb80cbb9dd684d931da02e1b3b3efdf37

8 years agoMerge "Follow symlinks when using find for assets"
Shinichiro Hamaji [Fri, 13 May 2016 05:20:05 +0000 (05:20 +0000)]
Merge "Follow symlinks when using find for assets"

8 years agoUse fs_config files for mksquashfs
Mohamad Ayyash [Fri, 8 Apr 2016 05:10:51 +0000 (22:10 -0700)]
Use fs_config files for mksquashfs

BUG: 27467028
Change-Id: I7648030ad4b31d70a5d439e9552fd2cbfe288b74
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
BUG: 28704419

8 years agoMerge "Read Soong-exported configuration"
Dan Willemsen [Fri, 13 May 2016 01:36:28 +0000 (01:36 +0000)]
Merge "Read Soong-exported configuration"

8 years agoRead Soong-exported configuration
Dan Willemsen [Tue, 29 Mar 2016 19:32:16 +0000 (12:32 -0700)]
Read Soong-exported configuration

This is to ensure that Make and Soong agree on configuration variables
like TARGET_GLOBAL_CFLAGS. Only a few variables are actually checked
currently until we make more actually the same.

Bug: 23566674
Change-Id: Ibede43d933ede4d470e182f9490ea6ec4ef52fbc

8 years agoMerge "Use product-specific Soong outputs"
Dan Willemsen [Thu, 12 May 2016 20:33:05 +0000 (20:33 +0000)]
Merge "Use product-specific Soong outputs"

8 years agoMerge "Offer an ApkSignerEngine implementation."
Alex Klyubin [Thu, 12 May 2016 18:43:08 +0000 (18:43 +0000)]
Merge "Offer an ApkSignerEngine implementation."

8 years agoNo need to JAR-sign OTA update packages.
Alex Klyubin [Thu, 12 May 2016 00:19:07 +0000 (17:19 -0700)]
No need to JAR-sign OTA update packages.

This removes the logic for JAR signing from -w (whole-file signing)
mode. This mode is designed specifically for OTA update packages. When
such packages are verified, their JAR signatures are ignored. Thus,
there is no need to JAR-sign in -w mode.

For context, OTA update packages are protected by a special signature
residing in the ZIP End of Central Directory record (at the very end
of the file). This is the signature verified when update packages are
being applied to Android.

Change-Id: Ia852a11ed6774ce746087cdd7f028b191ef6bc8b

8 years agoOffer an ApkSignerEngine implementation.
Alex Klyubin [Wed, 11 May 2016 19:48:27 +0000 (12:48 -0700)]
Offer an ApkSignerEngine implementation.

This adds an implementation of ApkSignerEngine to the apksigner-core
library.

Bug: 27461702
Change-Id: I5f977b98555ca507a0dfcd3e92eecb9758aa8370

8 years agoFollow symlinks when using find for assets
Shinichiro Hamaji [Thu, 12 May 2016 09:15:28 +0000 (18:15 +0900)]
Follow symlinks when using find for assets

This should have been done in
https://android-review.googlesource.com/#/c/43901/

Bug: 27954979
Change-Id: I663b5e87e0d844d37a59e404219ff5e7e364df74

8 years agoMerge "Correct some dependencies around zip packages"
Shinichiro Hamaji [Thu, 12 May 2016 02:06:42 +0000 (02:06 +0000)]
Merge "Correct some dependencies around zip packages"

8 years agoMerge "Include BRILLO_VENDOR_PARTITIONS in target zip generation"
Treehugger Robot [Wed, 11 May 2016 21:49:56 +0000 (21:49 +0000)]
Merge "Include BRILLO_VENDOR_PARTITIONS in target zip generation"

8 years agoMerge "Add misc-macro-parentheses to default tidy checks."
Treehugger Robot [Wed, 11 May 2016 21:44:20 +0000 (21:44 +0000)]
Merge "Add misc-macro-parentheses to default tidy checks."

8 years agoAdd misc-macro-parentheses to default tidy checks.
Chih-Hung Hsieh [Wed, 11 May 2016 20:39:48 +0000 (13:39 -0700)]
Add misc-macro-parentheses to default tidy checks.

* Disable this check in external projects.

Bug: 28705665
Change-Id: Ia44a15765fd637dae36b5e0f2b59ee4280b139c9

8 years agoMerge "Fix misc-macro-parentheses warnings."
Chih-hung Hsieh [Wed, 11 May 2016 20:30:47 +0000 (20:30 +0000)]
Merge "Fix misc-macro-parentheses warnings."

8 years agoInclude BRILLO_VENDOR_PARTITIONS in target zip generation
Wei Wang [Wed, 11 May 2016 05:48:13 +0000 (22:48 -0700)]
Include BRILLO_VENDOR_PARTITIONS in target zip generation

This change will enable the target zip to include partition defined in
BRILLO_VENDOR_PARTITIONS. This is necessary for OTA to support
partitions other than boot and system in ab_partitions.txt.

The target zip will include images in BRILLO_VENDOR_PARTITIONS if
defined, under VENDOR_IMAGES/ with path kept. Also any vendor partitions
defined in AB_OTA_PARTITIONS will be copied to IMAGES/ in the target zip.

BUG: 28623063
Change-Id: Ic479048dfb8ac506acf827865e784fcb0432a1d5

8 years agoMerge "Add code search links to warnings."
Ian Rogers [Wed, 11 May 2016 19:07:36 +0000 (19:07 +0000)]
Merge "Add code search links to warnings."

8 years agoFix misc-macro-parentheses warnings.
Chih-Hung Hsieh [Wed, 11 May 2016 18:55:33 +0000 (11:55 -0700)]
Fix misc-macro-parentheses warnings.

Add parentheses around macro arguments used beside binary operators.

Bug: 28705665
Change-Id: I8594b9463e2389a46d6e0235757b93de065cd007

8 years agoCorrect some dependencies around zip packages
Shinichiro Hamaji [Tue, 10 May 2016 07:40:38 +0000 (16:40 +0900)]
Correct some dependencies around zip packages

Add scripts which creates these packages to their dependencies.
$(SYMBOLS_ZIP) contains symbol info of the updater binary so
it should depend on it.

Bug: 27954979
Change-Id: If78746ec843dd57fe5fdda3ed504a12bb298ea1d

8 years agoMerge "Revert "Include vendor partitions in target zip generation""
Tao Bao [Wed, 11 May 2016 15:11:56 +0000 (15:11 +0000)]
Merge "Revert "Include vendor partitions in target zip generation""

8 years agoRevert "Include vendor partitions in target zip generation"
Wei Wang [Wed, 11 May 2016 14:49:50 +0000 (14:49 +0000)]
Revert "Include vendor partitions in target zip generation"

This reverts commit 421fe44ae8e90a85b7f60ee6942687a51771b8b5.

Change-Id: Id45781de73735783bc7dfb6fc2838957578d00d3

8 years agoUse product-specific Soong outputs
Dan Willemsen [Wed, 11 May 2016 07:23:38 +0000 (00:23 -0700)]
Use product-specific Soong outputs

This way, when switching between two products, we don't need to re-run
kati.

Change-Id: I0a8b3b49f1b76d9e120ea93bb5d2aa06cd189679

8 years agoAdd code search links to warnings.
Ian Rogers [Tue, 10 May 2016 19:06:01 +0000 (12:06 -0700)]
Add code search links to warnings.

Add argument parsing using the argparse library.
Make HTML easier to read by adding a \n after each table row.

Change-Id: I6b745fc60afb96fb51e5f69df7d607b5fb8da0e5

8 years agoMerge "Include vendor partitions in target zip generation"
Treehugger Robot [Wed, 11 May 2016 02:18:58 +0000 (02:18 +0000)]
Merge "Include vendor partitions in target zip generation"

8 years agoMerge "Add a 32-bit x86_64 arch variant"
Dan Willemsen [Wed, 11 May 2016 00:35:59 +0000 (00:35 +0000)]
Merge "Add a 32-bit x86_64 arch variant"

8 years agoMerge "Do not apply -Wl,--fix-cortex-a8 to Cortex-A9"
Treehugger Robot [Tue, 10 May 2016 23:34:01 +0000 (23:34 +0000)]
Merge "Do not apply -Wl,--fix-cortex-a8 to Cortex-A9"

8 years agoDo not apply -Wl,--fix-cortex-a8 to Cortex-A9
Dan Willemsen [Tue, 10 May 2016 21:54:08 +0000 (14:54 -0700)]
Do not apply -Wl,--fix-cortex-a8 to Cortex-A9

Change-Id: I11d380163423cb4aa0fee60ecbaa1e38fa5143a1

8 years agoMerge "Add error prone patterns to warn.py"
Ian Rogers [Tue, 10 May 2016 22:03:23 +0000 (22:03 +0000)]
Merge "Add error prone patterns to warn.py"

8 years agoAdd a 32-bit x86_64 arch variant
Dan Willemsen [Tue, 10 May 2016 21:08:45 +0000 (14:08 -0700)]
Add a 32-bit x86_64 arch variant

The current 32-bit configuration for generic x86_64 targets inherits some
variables (SSE4 support) from the 64-bit configuration, and overrides
the make variables used for other configurations (SSSE3). Ideally, these
would be using different variables, but until then, unify the
configuration for x86_64 targets so that everything is consistent.

Bug: 28694691
Change-Id: I47e67299d4c632e7491d7e73dc0fc6480ef08006

8 years agoAdd error prone patterns to warn.py
Ian Rogers [Tue, 10 May 2016 06:19:42 +0000 (23:19 -0700)]
Add error prone patterns to warn.py

Bug: 28681096

(cherry picked from commit df79adacaba2d8aebadea2cc638adbe4fd6074bb)
Change-Id: I06ac0ed4593b03cea0a8163ca85e393ff1358855

8 years agoMerge "ApkSignerEngine abstraction for apksigner-core library."
Treehugger Robot [Tue, 10 May 2016 19:13:41 +0000 (19:13 +0000)]
Merge "ApkSignerEngine abstraction for apksigner-core library."

8 years agoInclude vendor partitions in target zip generation
Wei Wang [Tue, 10 May 2016 05:24:50 +0000 (22:24 -0700)]
Include vendor partitions in target zip generation

This change will enable the target zip to include partition defined in
BRILLO_VENDOR_PARTITIONS. This is necessary for OTA to support
partitions other than boot and system in ab_partitions.txt.

BUG: 28623063
Change-Id: I6e0969c31c9ad2e8285c6f560825c160aa8c4d55

8 years agoMerge "Sort warnings with most frequent first."
Ian Rogers [Tue, 10 May 2016 17:38:15 +0000 (17:38 +0000)]
Merge "Sort warnings with most frequent first."

8 years agoSort warnings with most frequent first.
Ian Rogers [Tue, 10 May 2016 16:34:29 +0000 (09:34 -0700)]
Sort warnings with most frequent first.

Change-Id: Id608c20d065bec83dcb2993658cc743d5e9dcb46

8 years agoMerge "Fix build system documentation example"
Dan Willemsen [Mon, 9 May 2016 23:37:44 +0000 (23:37 +0000)]
Merge "Fix build system documentation example"

8 years agoMerge "Remove -mcpu=cortex-a15 when adding -mcpu=krait"
Treehugger Robot [Mon, 9 May 2016 22:43:08 +0000 (22:43 +0000)]
Merge "Remove -mcpu=cortex-a15 when adding -mcpu=krait"

8 years agoMerge "Revert "[MIPS] Temporarily disable Mips shared-textrel errors""
Dan Willemsen [Mon, 9 May 2016 22:09:42 +0000 (22:09 +0000)]
Merge "Revert "[MIPS] Temporarily disable Mips shared-textrel errors""

8 years agoRemove -mcpu=cortex-a15 when adding -mcpu=krait
Dan Willemsen [Mon, 9 May 2016 21:53:22 +0000 (14:53 -0700)]
Remove -mcpu=cortex-a15 when adding -mcpu=krait

This is not necessary, since the later -mcpu=krait will override the
earlier -mcpu=cortex-a15, but is cleaner (and matches Soong).

Change-Id: I18301faf8a5cb5364617b3008bc8af461b7884f8

8 years agoApkSignerEngine abstraction for apksigner-core library.
Alex Klyubin [Thu, 5 May 2016 21:42:53 +0000 (14:42 -0700)]
ApkSignerEngine abstraction for apksigner-core library.

This adds the ApkSignerEngine abstraction to the apksigner-core
library. This abstraction enables the separation of
parsing/building/writing of an APK from signing the APK.

Users of ApkSignerEngine invoke it during specific I/O events (e.g.,
JAR entry encountered in input APK, all output JAR entries ready).
The engine responds by occasionally providing instructions about what
to do next. For example, it may provide JAR entries to be added to
the output APK, thus making the output APK signed.

The default implementation of ApkSignerEngine will be provided in  a
follow-up commit.

Bug: 26516150
Bug: 27461702
Change-Id: Ia85fd09497a6e2ff3103ba10c53a1848ba731f7b

8 years agoMerge "APK Signature Scheme v2 signing logic for apksigner-core."
Treehugger Robot [Mon, 9 May 2016 20:12:14 +0000 (20:12 +0000)]
Merge "APK Signature Scheme v2 signing logic for apksigner-core."

8 years agoRevert "[MIPS] Temporarily disable Mips shared-textrel errors"
Dan Willemsen [Mon, 9 May 2016 20:10:00 +0000 (13:10 -0700)]
Revert "[MIPS] Temporarily disable Mips shared-textrel errors"

This reverts commit 3dfd20aea49cf6ff75aa41e337ae8dd9817e6428 - the clang
version we are using has the mentioned permanent fix. The new build
system (Soong) uses a single list of unknown clang flags for all
architectures, so workarounds like this no longer work.

Change-Id: I64a83f3b52a9ca1d11a76df5a060a36f42e27e4b

8 years agoAPK Signature Scheme v2 signing logic for apksigner-core.
Alex Klyubin [Thu, 5 May 2016 23:13:23 +0000 (16:13 -0700)]
APK Signature Scheme v2 signing logic for apksigner-core.

apksigner-code library will offer a high-level primitive (future
commit) for signing APKs. This is meant to be used by
build/tools/signapk and Android Studio's APK builder/signer.

This commit adds a lower-level APK Signature Scheme v2 (aka v2
signing) code which will be used by the future APK signing abstraction
exposed by this library.

All classes (except DataSource and DataSources) added by this commit
are internal (i.e., implementation details of this library). Clients
of this library should not be using these classes.

Bug: 26516150
Change-Id: I98d4da0666cf122667c67565108ea4fb28ac51e6

8 years agoMerge "Remove arm-specific -Wno-psabi"
Dan Willemsen [Mon, 9 May 2016 04:43:42 +0000 (04:43 +0000)]
Merge "Remove arm-specific -Wno-psabi"

8 years agoFix build system documentation example
Dan Willemsen [Mon, 9 May 2016 02:23:01 +0000 (19:23 -0700)]
Fix build system documentation example

The input and output file paths were mixed up in this example. Properly
indicate the input file as a dependency.

Change-Id: I71271025c6ce3ef8f82b10aee91fc0c7ae8f2399

8 years agoRemove arm-specific -Wno-psabi
Dan Willemsen [Fri, 6 May 2016 22:50:19 +0000 (15:50 -0700)]
Remove arm-specific -Wno-psabi

This flag was added to stop a GCC 4.4 specific warning. Since we've
upgraded, this flag is no longer necessary. It's already stripped for
clang builds, and I found no instances in the logs after removing it.

Change-Id: If5316d2eb8066dc43d7af7aebc7e4920b4ada192

8 years agoMerge "Harden dependency on generated sources."
Treehugger Robot [Fri, 6 May 2016 20:16:40 +0000 (20:16 +0000)]
Merge "Harden dependency on generated sources."

8 years agoMerge "Avoid accidentally using the host's native 'as' command."
Elliott Hughes [Fri, 6 May 2016 20:11:45 +0000 (20:11 +0000)]
Merge "Avoid accidentally using the host's native 'as' command."

8 years agoHarden dependency on generated sources.
Ying Wang [Fri, 6 May 2016 03:02:08 +0000 (20:02 -0700)]
Harden dependency on generated sources.

Previously if a library has custom generated headers in
LOCAL_GENERATED_SOURCES and export its include path with
LOCAL_EXPORT_C_INCLUDE_DIRS, there is almost no way for the users of the
library to set up dependency of their object files on the generated
headers.
This change makes the generated sources dependency of the library's
export_includes, which is guaranteed generated before client code gets
compiled.

Also we added proto-generated cpp files to my_generated_sources so that
we can deal solely with $(my_generated_sources). Because many
Android.mks assume the generted .pb.hs are in $(generated_sources_dir)
instead of $(intermediates), we have to generate the source files in
$(generated_sources_dir) and make a copy in $(intermediates).

Bug: 28622149
Change-Id: I73b21443fa706f3735faf16356ed8c08fbfecca6

8 years agoMerge "Only pass NINJA_ARGS to the main ninja compile"
Treehugger Robot [Fri, 6 May 2016 01:11:39 +0000 (01:11 +0000)]
Merge "Only pass NINJA_ARGS to the main ninja compile"

8 years agoOnly pass NINJA_ARGS to the main ninja compile
Dan Willemsen [Thu, 5 May 2016 23:52:37 +0000 (16:52 -0700)]
Only pass NINJA_ARGS to the main ninja compile

This way commands like "-t query <target>" will work against the main
build, instead of failing to find the target during the initial soong
build and stopping.

Change-Id: I9b6bd6ac431b95e12db69ec7f272669b9d292761

8 years agoDefault USE_SOONG to true
Colin Cross [Thu, 5 May 2016 21:43:01 +0000 (14:43 -0700)]
Default USE_SOONG to true

Change-Id: Iad88aed4060b84aef2381f6300f16bad14f3a6ca

8 years agoAvoid accidentally using the host's native 'as' command.
Alistair Strachan [Thu, 5 May 2016 23:29:08 +0000 (16:29 -0700)]
Avoid accidentally using the host's native 'as' command.

When invoking clang for the host to assemble .S files, the -B flag
would not be provided, which allowed the host prebuilt clang to
use an 'as' from the native environment. Most of the time this
"just works", but some newer 'as' versions cause problems with
the older prebuilt toolchain, for example by generating
unsupported relocation types.

To avoid this problem, simply use the -B flag to tell clang to
invoke the assembler from the correct prebuilt gcc prefix.

Change-Id: I18ea4f37ae637b652cfd7321c41929f8be075342
Signed-off-by: Alistair Strachan <alistair.strachan@imgtec.com>
8 years agoMerge "JAR signing logic for the apksigner-core library."
Treehugger Robot [Thu, 5 May 2016 22:42:43 +0000 (22:42 +0000)]
Merge "JAR signing logic for the apksigner-core library."

8 years agoMerge "SHA-256 with ECDSA supported only on API Level 21 and higher."
Alex Klyubin [Thu, 5 May 2016 19:43:53 +0000 (19:43 +0000)]
Merge "SHA-256 with ECDSA supported only on API Level 21 and higher."

8 years agoMerge "Update prebuilt build tools path"
Colin Cross [Thu, 5 May 2016 18:54:37 +0000 (18:54 +0000)]
Merge "Update prebuilt build tools path"

8 years agoJAR signing logic for the apksigner-core library.
Alex Klyubin [Thu, 5 May 2016 17:50:24 +0000 (10:50 -0700)]
JAR signing logic for the apksigner-core library.

apksigner-code library will offer a high-level primitive (future
commit) for signing APKs. This is meant to be used by
build/tools/signapk and Android Studio's APK builder/signer.

This commit adds a lower-level JAR signing (aka v1 signing) code which
will be used by the future APK signing abstraction exposed by this
library.

All classes added by this commit are internal (i.e., implementation
details of this library). Clients of this library should not be using
these classes.

Bug: 26516150
Change-Id: I5cecd435e63aab206d63868be5e0d0e289e7c423

8 years agoMerge "Pass SANTIIZE_HOST and SANITIZE_TARGET to soong"
Colin Cross [Wed, 4 May 2016 23:34:53 +0000 (23:34 +0000)]
Merge "Pass SANTIIZE_HOST and SANITIZE_TARGET to soong"

8 years agoUpdate prebuilt build tools path
Colin Cross [Tue, 19 Apr 2016 22:32:22 +0000 (15:32 -0700)]
Update prebuilt build tools path

Build tools have been moved from prebuilts/sdk/tools to
prebuilts/build-tools.

Bug: 27857138
Change-Id: I60be42c197d420897dab77808c25818c9d2e81df

8 years agoMerge "Update RS to use latest Clang-2812033 prebuilts as well."
Pirama Arumuga Nainar [Wed, 4 May 2016 21:00:07 +0000 (21:00 +0000)]
Merge "Update RS to use latest Clang-2812033 prebuilts as well."

8 years agoSHA-256 with ECDSA supported only on API Level 21 and higher.
Alex Klyubin [Wed, 4 May 2016 01:12:45 +0000 (18:12 -0700)]
SHA-256 with ECDSA supported only on API Level 21 and higher.

Turns out APK signatures using SHA-256 with ECDSA are accepted only by
platforms with API Level 21 and higher, not 18 and higher.

Bug: 28296599

Change-Id: I3fab5be17bf3a9bdbf4d84d90d51448027c7e761

8 years agoMerge "Update path to reverse_path.py"
Colin Cross [Tue, 3 May 2016 21:13:22 +0000 (21:13 +0000)]
Merge "Update path to reverse_path.py"

8 years agoMerge "Separate logic for alg selection for OTA and APK signing."
Alex Klyubin [Tue, 3 May 2016 20:50:54 +0000 (20:50 +0000)]
Merge "Separate logic for alg selection for OTA and APK signing."

8 years agoUpdate path to reverse_path.py
Colin Cross [Mon, 2 May 2016 22:31:17 +0000 (15:31 -0700)]
Update path to reverse_path.py

Change-Id: I98902e94a99fae7f9e738a872a83acb98d32c781

8 years agoMerge "old-cts: Add testng and libcoreoj test support"
Igor Murashkin [Mon, 2 May 2016 20:40:09 +0000 (20:40 +0000)]
Merge "old-cts: Add testng and libcoreoj test support"

8 years agoMerge "Initialize an uninitialized field in ijar"
Shinichiro Hamaji [Mon, 2 May 2016 19:00:42 +0000 (19:00 +0000)]
Merge "Initialize an uninitialized field in ijar"

8 years agoInitialize an uninitialized field in ijar
Shinichiro Hamaji [Mon, 2 May 2016 18:19:23 +0000 (03:19 +0900)]
Initialize an uninitialized field in ijar

The upstream patch was merged:
https://github.com/bazelbuild/bazel/commit/a5004430338bc72817c7

Bug: 28347190
Change-Id: I9b8b9bc830bd16299b94e8c92c22dba8aa36affb

8 years agoMerge "Fix google-explicit-constructor warnings."
Chih-hung Hsieh [Mon, 2 May 2016 18:08:16 +0000 (18:08 +0000)]
Merge "Fix google-explicit-constructor warnings."

8 years agoMerge "Suppress google-* checks in vendor modules."
Chih-hung Hsieh [Sat, 30 Apr 2016 00:38:35 +0000 (00:38 +0000)]
Merge "Suppress google-* checks in vendor modules."

8 years agoUpdate RS to use latest Clang-2812033 prebuilts as well.
Stephen Hines [Fri, 29 Apr 2016 23:50:48 +0000 (16:50 -0700)]
Update RS to use latest Clang-2812033 prebuilts as well.

Change-Id: I62e294e2b8c882c235a6ac7518fa352acd46e055

8 years agoSuppress google-* checks in vendor modules.
Chih-Hung Hsieh [Fri, 29 Apr 2016 22:16:59 +0000 (15:16 -0700)]
Suppress google-* checks in vendor modules.

Too many warnings in vendor code that we cannot fix yet.

Bug: http://b/27779618
Change-Id: I8b65b1fd55c4e4d0dadf0617ab25962809237309

8 years agoFix google-explicit-constructor warnings.
Chih-Hung Hsieh [Fri, 29 Apr 2016 21:10:10 +0000 (14:10 -0700)]
Fix google-explicit-constructor warnings.

Bug: 28341362
Change-Id: I72bdd1df09cea91743aa89dab4cb0b9db2657e2d

8 years agoMerge "zipalign supports -p also when checking alignment."
Alex Klyubin [Fri, 29 Apr 2016 20:26:17 +0000 (20:26 +0000)]
Merge "zipalign supports -p also when checking alignment."

8 years agozipalign supports -p also when checking alignment.
Alex Klyubin [Fri, 29 Apr 2016 19:32:17 +0000 (12:32 -0700)]
zipalign supports -p also when checking alignment.

This updates the usage banner of zipalign to state that the -p switch
is supported in check alignment mode.

Change-Id: I119026b0e09e5a2528646e88a9b58dbb79c0c17c

8 years agoMerge "Switch to clang-2812033."
Stephen Hines [Wed, 27 Apr 2016 22:33:05 +0000 (22:33 +0000)]
Merge "Switch to clang-2812033."

8 years agoMerge "Use strip mode mini-debug-info by default except on mips."
Yabin Cui [Wed, 27 Apr 2016 19:19:06 +0000 (19:19 +0000)]
Merge "Use strip mode mini-debug-info by default except on mips."

8 years agoMerge "Warn if there is file with unknown suffix in Java module's sources."
Ying Wang [Wed, 27 Apr 2016 16:49:10 +0000 (16:49 +0000)]
Merge "Warn if there is file with unknown suffix in Java module's sources."