OSDN Git Service
David Zeuthen [Thu, 14 Apr 2016 16:04:30 +0000 (16:04 +0000)]
Merge "Add support for Brillo partitioning."
Treehugger Robot [Thu, 14 Apr 2016 00:53:39 +0000 (00:53 +0000)]
Merge "releasetools: Only verify the blocks to be touched."
Tao Bao [Tue, 12 Apr 2016 22:53:16 +0000 (15:53 -0700)]
releasetools: Only verify the blocks to be touched.
For incremental BBOTAs, we used to verify the integrity of all the
blocks in the source partition. In order to reduce the time cost under
recovery, this CL changes to only verify the blocks that will be touched
in the given OTA package (BBOTA >= 3 only). This is a trade-off between
performance and reliability.
Bug:
27813356
Change-Id: I3975ae6f461f0f7e58d24f1df7df46a449d2988b
(cherry picked from commit
d522bdc9edbf64d15a59c6924853b2e2c8c39e90)
Tianjie Xu [Wed, 13 Apr 2016 21:48:53 +0000 (21:48 +0000)]
Merge "Monotonic flag sets incorrectly in rangelib"
Tianjie Xu [Fri, 8 Apr 2016 03:17:48 +0000 (20:17 -0700)]
Monotonic flag sets incorrectly in rangelib
After applying update_target_files_incr_ext4.sh, some files may end up
occupying unsorted block fragments. In one example, an apk file has the
block range [258768-259211,196604]. The monotonic flag in rangelib sets
incorrectly for this example and leads to a bad input file for imgdiff.
After fixing the flag, bsdiff is called instead of imgdiff and the
incremental OTA package generates successfully.
Bug:
28053885
Change-Id: Ib841bf449ff6a29314fc4a1b8fba941a6dc532ac
Tianjie Xu [Wed, 13 Apr 2016 19:19:03 +0000 (19:19 +0000)]
Merge "Remove post-install verification"
David Zeuthen [Fri, 8 Apr 2016 19:08:03 +0000 (15:08 -0400)]
Add support for Brillo partitioning.
To generate partition tables in the Android build system, simply add
the path to a .bpt file to the BOARD_BPT_INPUT_FILES variable.
BOARD_BPT_INPUT_FILES += "hardware/bsp/vendor/soc/board/board-specific.bpt"
The variable BOARD_BPT_DISK_SIZE can be used to specify or override
the disk size, for example:
BOARD_BPT_DISK_SIZE := "10 GiB"
Additional arguments to 'bpttool make_table' can be specified in the
variable BOARD_BPT_MAKE_TABLE_ARGS.
If BOARD_BPT_INPUT_FILES is set, the build system generates two files
partition-table.img
partition-table.bpt
in ${ANDROID_PRODUCT_OUT} using 'bpttool make_table'. The former is
the binary partition tables generated using bptool's --output_gpt
option and the latter is a JSON file generated using the --output_json
option. These files will also be put in the IMAGES/ directory of
target-files.zip when running 'm dist'.
BUG=
27831397
TEST=Manually tested.
Change-Id: Iedd15354afb2dd483dcb9bc001360b2a37fd6dc0
Shinichiro Hamaji [Wed, 13 Apr 2016 05:07:00 +0000 (05:07 +0000)]
Merge "Always use ensure_start to ensure goma's daemon runs"
Tianjie Xu [Fri, 25 Mar 2016 22:01:33 +0000 (15:01 -0700)]
Remove post-install verification
post-install verification calls range_sha1() and checks if the given
partition has expected contents. It takes roughly 20 seconds on
angler with 2.8G system image. Remove it to speed up OTA update. Also
abort the update if block_image_update() fails, as we were relying on
post-install verification to capture block_image_update() failures.
cherry-picked from commit
b2deb220335e1059a3c95d8063705f5706604bdb
Bug:
27729678
Change-Id: I8123cd8929295ec26df247acf6bb51df813771d9
Treehugger Robot [Tue, 12 Apr 2016 21:24:51 +0000 (21:24 +0000)]
Merge "Add support for LOCAL_EXPORT_*_LIBRARY_HEADERS"
Tao Bao [Tue, 12 Apr 2016 16:32:32 +0000 (16:32 +0000)]
Merge "releasetools: Use fixed timestamp in otacerts.zip."
Christopher Wiley [Mon, 11 Apr 2016 19:40:36 +0000 (12:40 -0700)]
Add support for LOCAL_EXPORT_*_LIBRARY_HEADERS
Listing a library in any of:
LOCAL_EXPORT_SHARED_LIBRARY_HEADERS
LOCAL_EXPORT_STATIC_LIBRARY_HEADERS
will cause the headers exported by that library to be exported from
the current library target as well.
This means that when library A's public headers include headers from
library B, library C which consumes A no longer has to explicitly list
A and B in its LOCAL_SHARED_LIBRARIES for the purpose of picking up B's
headers.
Bug:
27804373
Test: Introduced dependency on libbase to libbinder at the header level.
Libraries that consume libbinder do not need to explicitly depend
on libbase.
Change-Id: If69079f058a4a182c5ef5a3c5ba15035570da22d
Tao Bao [Tue, 12 Apr 2016 06:05:52 +0000 (23:05 -0700)]
releasetools: Use fixed timestamp in otacerts.zip.
We were using zipfile.write() to write system/etc/security/otacerts.zip
when signing for release. It led to unexpected timestamp change in the
generated otacerts.zip and non-idempotent signed images when signing the
same target_files.zip.
Replace with common.ZipWrite() to always use a fixed timestamp.
Bug:
28122968
Change-Id: Ia6cf4b7d380cbf72ed7050ebb60c932dc8826d87
(cherry picked from commit
7ee3a9678e7191c48f0ba4e04792fe97925c1aa1)
Shinichiro Hamaji [Tue, 12 Apr 2016 09:14:28 +0000 (18:14 +0900)]
Always use ensure_start to ensure goma's daemon runs
Recent goma client automatically restarts when GOMA_*
environment variable changes. http://b/
25676777 was fixed
2 months ago, so there wouldn't be old goma client.
Change-Id: I3b5419ce4bae4cf8180d8d0a53d2b4218d317fec
Andreas Gampe [Tue, 12 Apr 2016 02:46:58 +0000 (02:46 +0000)]
Merge "Build: Add ART_BOOT_IMAGE_EXTRA_ARGS"
Andreas Gampe [Mon, 11 Apr 2016 22:10:09 +0000 (15:10 -0700)]
Build: Add ART_BOOT_IMAGE_EXTRA_ARGS
Allow to modify the boot image compilation. Can be used to easily
dump initialization failures.
Bug:
27265238
Change-Id: I9d54c562a2e623b23b7c1dea9cdbe303786c95dd
Sebastien Hertz [Mon, 11 Apr 2016 14:31:35 +0000 (14:31 +0000)]
Merge "Update code coverage filtering"
Sebastien Hertz [Wed, 6 Apr 2016 16:18:47 +0000 (18:18 +0200)]
Update code coverage filtering
Replaces old LOCAL_EMMA_COVERAGE_FILTER by new variables:
- LOCAL_JACK_COVERAGE_INCLUDE_FILTER for included classes
- LOCAL_JACK_COVERAGE_EXCLUDE_FILTER for excluded classes
Both variables can contain a comma-separated list of class names,
where * and ? are accepted wildcard (like foo.?ar.*).
When code coverage is enabled, we will use these variables to
pass code coverage filters on the Jack command-line.
Bug:
28014424
Change-Id: Ic29c99b6feb7ea2251c29d659e7ea1f1c46d1ed1
Shinichiro Hamaji [Fri, 8 Apr 2016 04:45:23 +0000 (04:45 +0000)]
Merge "Add jack's argument files to prerequisites"
Ying Wang [Thu, 7 Apr 2016 21:51:21 +0000 (21:51 +0000)]
Merge "Correct usage message for build_image.py"
Alex Klyubin [Thu, 7 Apr 2016 19:56:03 +0000 (19:56 +0000)]
Merge "Remove support for DSA with SHA-512 from v2 signing."
Colin Cross [Thu, 7 Apr 2016 18:03:59 +0000 (18:03 +0000)]
Merge "makeparallel: reset make's unlimited stack"
Alex Klyubin [Thu, 7 Apr 2016 17:24:56 +0000 (10:24 -0700)]
Remove support for DSA with SHA-512 from v2 signing.
Android platform does not support DSA with SHA-512. Thus, it does not
make sense to support this unsupported algorithm in APK Signature
Scheme v2.
Bug:
24331392
Change-Id: Ifba90ad5b11188bb968c28d9e0ed3f9cb13ce2e7
Shinichiro Hamaji [Thu, 7 Apr 2016 09:56:42 +0000 (18:56 +0900)]
Add jack's argument files to prerequisites
Dex files should be updated when jack-default.args or
proguard*.flags are modified.
Bug:
27954979
Change-Id: I72a7084302f4ef92a89a8068f03f790dd7acd582
Shinichiro Hamaji [Thu, 7 Apr 2016 03:48:31 +0000 (03:48 +0000)]
Merge "Add Bison binary and its data to prerequisite"
Shinichiro Hamaji [Thu, 7 Apr 2016 03:48:02 +0000 (03:48 +0000)]
Merge "Fix dependencies of protoc with nanopb-c plugin"
Colin Cross [Thu, 7 Apr 2016 00:59:14 +0000 (17:59 -0700)]
makeparallel: reset make's unlimited stack
make 3.81 sets its own stack size to be unlimited, but accidentally
leaves it unlimited for all child processes. If it is unlimited, reset
it back to a reasonable default (8MB).
See http://savannah.gnu.org/bugs/?22010
Change-Id: Ieb0289823f12a421b59d8ab5292d3df3c6dfc27e
Maria Bornski [Fri, 4 Sep 2015 18:13:16 +0000 (11:13 -0700)]
Correct usage message for build_image.py
target_out_dir is now a required argument. Include this in the usage message.
Change-Id: If77d94ec5350b2c737d1dd1df28a51167b173058
Shinichiro Hamaji [Tue, 5 Apr 2016 08:34:51 +0000 (17:34 +0900)]
Fix dependencies of protoc with nanopb-c plugin
Bug:
27954979
Change-Id: Ic06b5288b092d8ea5225516069845bfc2ffa9cd1
Shinichiro Hamaji [Tue, 5 Apr 2016 11:12:48 +0000 (20:12 +0900)]
Add Bison binary and its data to prerequisite
Bug:
27954979
Change-Id: Id68425ef85c07b9bd06d9640f4bf96270af1b893
Dan Albert [Tue, 5 Apr 2016 18:51:16 +0000 (18:51 +0000)]
Merge "Remove mips special case."
Sebastien Hertz [Tue, 5 Apr 2016 09:20:21 +0000 (09:20 +0000)]
Merge "Fix code coverage for apps"
Dan Albert [Tue, 5 Apr 2016 07:26:43 +0000 (00:26 -0700)]
Remove mips special case.
The NDK doesn't have an r6 subdir.
Bug: http://b/
28009632
Change-Id: I482723a1b7400ed13dc70acad24fbed96683f460
Mark Salyzyn [Mon, 4 Apr 2016 22:37:33 +0000 (22:37 +0000)]
Merge "fs_config: introduce TARGET_FS_CONFIG_GEN"
Sen Jiang [Mon, 4 Apr 2016 21:43:11 +0000 (21:43 +0000)]
Merge "Remove libdivsufsort shared library from otatools."
Elliott Hughes [Mon, 4 Apr 2016 20:44:35 +0000 (20:44 +0000)]
Merge "libm's headers have moved to live with their libc cousins."
Sen Jiang [Mon, 4 Apr 2016 20:44:06 +0000 (13:44 -0700)]
Remove libdivsufsort shared library from otatools.
The library is now a static library.
Bug:
26955860
Change-Id: I64525737da1451895c255a30904a1e3e4ad8d253
Dan Albert [Mon, 4 Apr 2016 20:27:42 +0000 (20:27 +0000)]
Merge "Update NDK libc++ header paths."
Elliott Hughes [Mon, 4 Apr 2016 19:58:50 +0000 (12:58 -0700)]
libm's headers have moved to live with their libc cousins.
(To reduce the need for this kind of thing in the various build systems.)
Change-Id: I4430a76a749262b0234c194434b331f7294da009
Mohamad Ayyash [Mon, 4 Apr 2016 19:42:25 +0000 (19:42 +0000)]
Merge "Always build squashfs host tools"
Mohamad Ayyash [Mon, 4 Apr 2016 19:31:41 +0000 (12:31 -0700)]
Always build squashfs host tools
Now that mac compatibility has been fixed
BUG:
27657762
Change-Id: I49933ccedf74b9d172967dad721971a752047da6
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
Sebastien Hertz [Thu, 31 Mar 2016 14:48:26 +0000 (16:48 +0200)]
Fix code coverage for apps
When building apps with EMMA_INSTRUMENT=true, we must ensure that
jacoco is at least on the classpath (or even embedded for unbundled
branches) and that proguard will ignore jacoco classes. Otherwise
the Jack compilation would fail.
For unbundled build, we include the proguard configuration file
build/core/proguard.jacoco.flags to ignore jacoco classes.
For full build, we ensure jacoco is on the classpath during the
jack compilation.
Bug:
27607712
(cherry picked from commit
d9641e01f300ffc359a034a3e897fd8ada78237a)
Change-Id: Ib46c91d03721f2418b15c17546d4f322f2f90a28
Miao Wang [Fri, 1 Apr 2016 20:22:41 +0000 (20:22 +0000)]
Merge "[RenderScript] Update the build rules for x86_64 support lib."
Chih-hung Hsieh [Fri, 1 Apr 2016 16:15:57 +0000 (16:15 +0000)]
Merge "Recognize more Clang-Tidy google warning patterns."
Chih-Hung Hsieh [Thu, 31 Mar 2016 23:14:55 +0000 (16:14 -0700)]
Recognize more Clang-Tidy google warning patterns.
* Many AOSP C/C++ code have google-readability warnings.
Bug: http://b/
27779618
Change-Id: Ic7d33b957da5c1062410f48ef18bb68a5aa259e9
Dan Albert [Thu, 31 Mar 2016 23:11:26 +0000 (23:11 +0000)]
Merge "Add LOCAL_NDK_VERSION."
Miao Wang [Wed, 30 Mar 2016 20:29:42 +0000 (13:29 -0700)]
[RenderScript] Update the build rules for x86_64 support lib.
Bug:
19735423
- Unlike other archs, x86_64 has both usr/lib and usr/lib64. we need
to search for libm.so and libc.so in lib64/. Otherwise the linker
will report error.
Change-Id: I2859bee066a9eb100828d90da8adf0f9817d77e6
(cherry picked from commit
57ef7ea4901bf4a7c89a078b1c859310abf1d79c)
Dan Albert [Wed, 23 Mar 2016 00:17:40 +0000 (17:17 -0700)]
Update NDK libc++ header paths.
The r11 libc++ uses libc++abi instead of libgabi++.
Bug: http://b/
27801981
Change-Id: I5b90c14125dc024b2b290897bb3ef1c8d9546a7b
Dan Albert [Wed, 30 Mar 2016 21:13:50 +0000 (14:13 -0700)]
Add LOCAL_NDK_VERSION.
Used to select between releases of the NDK (r10, r11, etc).
Some of the libraries we use in Android come as prebuilts from
google3, which are most likely built against an older NDK than what
we have in the platform. Since things may not be ABI compatible
release to release, we need to keep legacy versions accessible for
those to keep building.
Change-Id: Ia3df42fa6f3a7bd5108ff6bbb0f2ca06239c3be9
Ying Wang [Thu, 31 Mar 2016 16:52:49 +0000 (16:52 +0000)]
Merge "Remove support of disabling Jack."
Ying Wang [Thu, 31 Mar 2016 16:46:18 +0000 (16:46 +0000)]
Merge "Replace $(shell) in recipe with subshell."
Ying Wang [Thu, 31 Mar 2016 01:34:43 +0000 (18:34 -0700)]
Replace $(shell) in recipe with subshell.
Bug:
27925180
Change-Id: I4a735755e4f818f6ce608c87ad111b9dd205ef41
Dan Willemsen [Wed, 30 Mar 2016 21:24:08 +0000 (21:24 +0000)]
Merge "Remove extraneous /"
Ying Wang [Tue, 29 Mar 2016 01:39:42 +0000 (18:39 -0700)]
Remove support of disabling Jack.
We removed code and variables related to running dx on classes.jar in
this change. Also removed target emma rules (but kept the emma rules for
host java libraries), for it's now done by Jack.
We still support to build classes.jar (and javalib.jar for static Java
libraries) using javac, because tools like javadoc need class files as
input.
Removed the obsolete install-dex-debug.
Bug:
27400061
Change-Id: If0bcdfe62cb181a98754fb0dbe1c12c92e38d3e8
Dan Willemsen [Wed, 30 Mar 2016 20:36:01 +0000 (13:36 -0700)]
Remove extraneous /
This matches the line we use in Soong, and behaves no differently.
Change-Id: I4487f7f5555edd08dc67a22d547f8218d46ccd8f
Ying Wang [Wed, 30 Mar 2016 16:56:54 +0000 (16:56 +0000)]
Merge "Keep emma files for host rules"
Chih-hung Hsieh [Wed, 30 Mar 2016 16:12:34 +0000 (16:12 +0000)]
Merge "Recognize Clang-Tidy warning messages."
Sebastien Hertz [Wed, 30 Mar 2016 07:38:09 +0000 (09:38 +0200)]
Keep emma files for host rules
Keep coverage.em file name for host rules where Jack is not called.
(Partially reverts change
491c9ce48add521e7c0cdbe1c1fa7ea392b775a5)
Bug:
27822188
Change-Id: Ia9344e17ecbecfb9c335608740ab7dc5490c48d5
Dan Willemsen [Wed, 30 Mar 2016 00:38:32 +0000 (00:38 +0000)]
Merge "Darwin: Use the same `ar` as Soong"
Dan Willemsen [Tue, 29 Mar 2016 23:21:32 +0000 (16:21 -0700)]
Darwin: Use the same `ar` as Soong
Soong uses the copy of `ar` in the OSX SDK instead of the wrapper in
/usr/bin/ar. /usr/bin/ar appears to be a thin wrapper that looks up the
current SDK and passes execution to it. Soong does this so that it can
actually set up a dependency on the tool.
Change-Id: Ia4e4fbe3287539933fa98a1354c3ccee91f4d552
Chih-Hung Hsieh [Tue, 29 Mar 2016 22:33:11 +0000 (15:33 -0700)]
Recognize Clang-Tidy warning messages.
* Put all Clang-Tidy warning messages in a group for now.
There are too many coding style warnings.
* Change the 'top' link to the top of the page.
* Add a few more new clang compiler warnings.
Bug: http://b/
27779618
Change-Id: I385b9db927a397704b56f53440301352da8694cf
Dan Willemsen [Tue, 29 Mar 2016 20:54:23 +0000 (20:54 +0000)]
Merge "Forbid Clang for Windows"
Shinichiro Hamaji [Tue, 29 Mar 2016 20:40:31 +0000 (20:40 +0000)]
Merge "Fix dependencies around tools/*-event-log-tags.py"
Dan Willemsen [Tue, 29 Mar 2016 19:34:03 +0000 (12:34 -0700)]
Forbid Clang for Windows
Clang and MinGW are not expected to work together currently, and you get
strange errors when this is attempted. Instead, error out with a clear
error message.
Before the windows build rewrite, we'd just explicitly set my_clang to
false without checking what the module asked for. Now, error out if the
module explicitly asked for clang, since by default they'd have it
already if it wasn't for windows. That way when Clang+Windows does
become possible, it can gradually be tested by setting LOCAL_CLANG to
true.
Change-Id: I9e0b0dca30946d94894119443f2fd0593cee1793
allenhair [Tue, 29 Mar 2016 19:20:10 +0000 (19:20 +0000)]
Merge "Only add jacocoagent if the package contains some java code."
Shinichiro Hamaji [Mon, 28 Mar 2016 18:29:21 +0000 (03:29 +0900)]
Fix dependencies around tools/*-event-log-tags.py
We should regenerate merged tag files and java sources when
these scripts are updated.
Change-Id: Id5f11d6f480f3f74dab08f01e929ee2d7fafd2d0
Allen Hair [Mon, 28 Mar 2016 19:52:37 +0000 (12:52 -0700)]
Only add jacocoagent if the package contains some java code.
Bug:
27877982
Change-Id: I8bf05d67a823402e7e488990753cc9005ec5e90b
Sebastien Hertz [Tue, 29 Mar 2016 07:17:12 +0000 (07:17 +0000)]
Merge "Rename emma coverage files"
Ying Wang [Sat, 26 Mar 2016 01:41:38 +0000 (01:41 +0000)]
Merge "Remove javac support in host dex rules."
Ying Wang [Sat, 26 Mar 2016 01:27:32 +0000 (01:27 +0000)]
Merge "[DO NOT MERGE] Remove code pulled in by accident."
Ying Wang [Sat, 26 Mar 2016 01:14:49 +0000 (18:14 -0700)]
[DO NOT MERGE] Remove code pulled in by accident.
Remove code pulled in by accident in cherry-pick commit
fbc5b9f56.
Change-Id: I4e4a336faf71782c208631c581b2587a5364212f
Ying Wang [Fri, 25 Mar 2016 21:41:41 +0000 (21:41 +0000)]
Merge "Support x86+arm multilib build."
Ying Wang [Thu, 17 Mar 2016 02:53:19 +0000 (19:53 -0700)]
Support x86+arm multilib build.
Support TARGET_2ND_ARCH as the binary translation arch.
See target/board/generic_x86_arm/BoardConfig.mk and
target/product/aosp_x86_arm.mk as example for the setup.
In BoardConfig, use the TARGET_2ND_ARCH/etc. variables to set up the
binary translation arch;
Set "TARGET_TRANSLATE_2ND_ARCH := true" to tell the build system it's
not a typical 64-bit multilib configuration.
In product makefile, use "PRODUCT_PACKAGES += libfoo_<2nd_arch>" to
install the TARGET_2ND_ARCH libraries. This also pulls in any dependency
libraries.
By default we don't install any TARGET_2ND_ARCH modules, unless it's
pulled in by PRODUCT_PACKAGES.
Bug:
27526885
Change-Id: I0578e9c80da0532d2fa886a8fcdb140bbc703009
(cherry-pick from commit
277e75a488b1b6599482aed9f7c046747baa10df)
Ying Wang [Fri, 25 Mar 2016 20:16:31 +0000 (20:16 +0000)]
Merge "Use $(BUILD_SYSTEM) as the LOCAL_PATH of auto-generated modules."
Ying Wang [Fri, 25 Mar 2016 20:16:25 +0000 (20:16 +0000)]
Merge "Rebuild odex files in PDK fusion build."
Tao Bao [Fri, 25 Mar 2016 18:49:56 +0000 (18:49 +0000)]
Merge "rangelib.py: Add parse_raw() method."
Ying Wang [Fri, 25 Mar 2016 00:24:38 +0000 (17:24 -0700)]
Use $(BUILD_SYSTEM) as the LOCAL_PATH of auto-generated modules.
So that we don't mess up with the vendor path check by accident.
Bug:
27543283
Change-Id: I6c34caefe3ff4abfdd8349a32c68fcca524cfd8e
(cherry-pick from commit
efaf5efd06ce0caf739ce48690f2384b37a791d5)
Ying Wang [Fri, 11 Mar 2016 18:32:01 +0000 (10:32 -0800)]
Rebuild odex files in PDK fusion build.
To rebuild odex files of Java libraries and apps,
we store the jars/apks without stripping the classes.dex inside the
platform.zip. We also save the build variables that may affect how we
rebuild an odex in pdk_dexpreopt_config.mk in the platform.zip.
We store the files and configuration only for libraries/apps that get
installed to the system.img (or vendor.img).
In PDK fusion build, we auto-generate prebuilt module definitions for
the javalib.jar and package.dex.apk carried in the platform.zip, using
configuration stored in pdk_dexpreopt_config.mk.
With the prebult modules, we override the implicit rule that directly
copies the odex from the platform.zip.
To rebuild odex of javalib.jar, we added support for prebuilt shared Java
library to prebiult_internal.mk. An installable prebuilt Java library is
treated as shared Java library, i.e. with classes.dex in the jar instead
of a set of .class files.
For apks in the platform.zip, we install the stripped version from
platform files inside platform.zip, instead of the package.dex.apk,
using a new variable LOCAL_REPLACE_PREBUILT_APK_INSTALLED. We can't
strip package.dex.apk because we can't re-sign the stripped apk at this
point.
We generate prebuilt module only if it's not already defined in the
source tree.
Bug:
27543283
Change-Id: I9e146f8b713d6f57c397fd28d88c9ab700757ca1
(cherry-pick from commit
3a61eeb6cb588b9a206bd80814183bcc0263cd13)
Ying Wang [Fri, 25 Mar 2016 17:29:30 +0000 (17:29 +0000)]
Merge "Remove rmtypedefs from the build system."
Sebastien Hertz [Fri, 25 Mar 2016 16:11:38 +0000 (17:11 +0100)]
Rename emma coverage files
We no longer use emma with Jack. However, during the process of a
full build, we may run the emma task and overwrite the coverage file
generated by Jack with the one from emma because they use the same
filename.
This CL renames coverage files generated by emma so they no longer
break those created by Jack.
Bug:
27822188
Change-Id: Ie3fdc2b8f53deafbefbd6973e39f29d8c46f371e
Ying Wang [Thu, 24 Mar 2016 23:41:48 +0000 (16:41 -0700)]
Remove javac support in host dex rules.
- Remove javac support in host_dalvik_java_library.mk
- Simplify host_dalvik_static_java_library.mk by including
host_dalvik_java_library.mk instead of host_java_library.mk.
- Take configure_local_jack out of host_java_library_common.mk because
it's only needed by host dalvik java libraries.
Bug:
27400061
Change-Id: I4088b09092198118d832a759663bbaadff669ed5
Tao Bao [Thu, 24 Mar 2016 21:50:37 +0000 (21:50 +0000)]
Merge "Add libbase to otatools"
Dan Willemsen [Thu, 24 Mar 2016 20:38:08 +0000 (20:38 +0000)]
Merge "Handle symlinked OUT_DIRs (again)"
Ying Wang [Thu, 24 Mar 2016 19:25:56 +0000 (12:25 -0700)]
Remove rmtypedefs from the build system.
We don't need to run rmtypedefs in javac compilation now, because the
runtime libraries are compiled by only jack, which takes care of
rmtypedefs by itself.
Bug:
27828139
Change-Id: Ie480ae5aead8f3f58f956978fc4a05c28a35dec6
Ying Wang [Thu, 24 Mar 2016 18:30:56 +0000 (18:30 +0000)]
Merge "Add phony target javac-check."
Ying Wang [Thu, 24 Mar 2016 18:00:30 +0000 (11:00 -0700)]
Add phony target javac-check.
javac-check covers all classes.jars that are compiled with javac
instead of jack. This target is required by tools that still need java
class files as input.
Bug:
26705771
Change-Id: I6896b9a6026a2a0dae6145d1ef5a839756aa3458
Tao Bao [Thu, 24 Mar 2016 18:08:51 +0000 (11:08 -0700)]
rangelib.py: Add parse_raw() method.
parse_raw() parses a string generated by RangeSet.to_string_raw().
>>> RangeSet.parse_raw(RangeSet("0-9").to_string_raw())
<RangeSet("0-9")>
Change-Id: Ia74daa30476d5e9ad73c368f4ecc64c755b734a5
Johan Redestig [Thu, 24 Mar 2016 12:57:03 +0000 (13:57 +0100)]
Add libbase to otatools
build_verity_tree uses libbase since
b104044.
Change-Id: I6d3406a107ceb6cd58d1a51aa79935209d4c435f
Dan Albert [Thu, 24 Mar 2016 01:26:09 +0000 (01:26 +0000)]
Merge "Add support for multiple flavors of the NDK gtest."
Dan Albert [Thu, 24 Mar 2016 01:26:09 +0000 (01:26 +0000)]
Merge "Using stlport_static or c++_static requires libdl."
Alex Klyubin [Thu, 24 Mar 2016 00:59:01 +0000 (00:59 +0000)]
Merge "Fix bug in APK entry alignment."
Dan Willemsen [Wed, 23 Mar 2016 23:12:46 +0000 (23:12 +0000)]
Merge "Remove ALL_PREBUILT, all users have been removed"
Ying Wang [Wed, 23 Mar 2016 23:04:54 +0000 (23:04 +0000)]
Merge "Phony target $(LOCAL_MODULE) covers all multilib variants."
Dan Willemsen [Wed, 23 Mar 2016 21:14:35 +0000 (14:14 -0700)]
Remove ALL_PREBUILT, all users have been removed
Change-Id: I37154506ef419e7a68ce7e2d864624d2ae53206f
Dan Albert [Wed, 23 Mar 2016 00:19:03 +0000 (17:19 -0700)]
Add support for multiple flavors of the NDK gtest.
Since gtest depends on the STL, we need one version for each STL.
Bug: http://b/
27801981
Change-Id: Id1a5571b043e2513d0184a9ab45a473dd545da84
Alex Klyubin [Wed, 23 Mar 2016 20:05:27 +0000 (13:05 -0700)]
Fix bug in APK entry alignment.
APK entry alignment logic assumes that input entries have zero-length
comment and extra fields. When the assumption is broken, the logic
silently breaks alignment of output entries. This happens, for
example, when the APK to be signed is already aligned and thus may
contain entries with non-empty extra fields.
Given that APKs are not supposed to use comment and extra fields for
anything useful and given that this signer already discards comment
and extra fields of compressed entries, this change makes the signer
discard comment and extra fields of STORED input entries as well.
This unbreaks the existing alignment logic.
Bug:
27814973
Change-Id: I8242b037e21ba7bcf45d0fe2afc8bfc47f1ec314
Ying Wang [Wed, 23 Mar 2016 18:02:03 +0000 (11:02 -0700)]
Phony target $(LOCAL_MODULE) covers all multilib variants.
Bug:
27760875
Change-Id: Ie59e2c36964fa736b17fb4185563c08a8cb75b80
Ying Wang [Wed, 23 Mar 2016 16:37:34 +0000 (16:37 +0000)]
Merge "Create empty .a on Darwin when there is no obj file."
Dan Willemsen [Tue, 22 Mar 2016 21:44:17 +0000 (14:44 -0700)]
Handle symlinked OUT_DIRs (again)
My previous attempt at properly handling symlinked OUT_DIRs only worked
if the symlink was to a different directory, not one in the same
directory.
This time, make sure that both make and soong use the same
representation of the output directory by passing BUILDDIR to
bootstrap.bash. Soong has been updated to pick whether to use a relative
or absolute path back to the source tree depending on what makes sense.
If the BUILDDIR or the path back to the source tree change, re-run the
bootstrap.
Also, move the $OUT_DIR/Android.mk and $OUT_DIR/CleanSpec.mk generation
to before Kati runs. In the case that $TOP/out was symlinked to
$TOP/out.angler:
1) Soong generates out.angler/soong/Android.mk
2) Kati's find generator produces in-memory tree of the filesystem
3) $(shell ) creates out.angler/Android.mk
4) The emulated findleaves Android.mk search finds
out.angler/soong/Android.mk since the in-memory tree is never updated.
This doesn't happen in the normal case, because we pass --prune=$OUT_DIR
to findleaves.
Change-Id: Ib0fdae2e80f75ddcf33a3c8c5ea0978f5308b437
Ying Wang [Wed, 23 Mar 2016 01:23:13 +0000 (18:23 -0700)]
Create empty .a on Darwin when there is no obj file.
On Darwin ar would fail if there is no object file to add.
We work around by adding a dummy.o to the .a and then deleting it.
Bug:
27800477
Change-Id: I68bbebea2726058c25863d7026a645a520d05167