OSDN Git Service

android-x86/build.git
8 years agoMerge "Don't delete META-INF in jack-java-to-dex when packing resources."
Ying Wang [Tue, 24 Nov 2015 21:58:06 +0000 (21:58 +0000)]
Merge "Don't delete META-INF in jack-java-to-dex when packing resources."

8 years agoDon't delete META-INF in jack-java-to-dex when packing resources.
Ying Wang [Tue, 24 Nov 2015 19:44:20 +0000 (11:44 -0800)]
Don't delete META-INF in jack-java-to-dex when packing resources.

LOCAL_DONT_DELETE_JAR_META_INF is meant for deleting resources carried
by static Java libraries, see comment in clear_vars.mk.
For a module's own resources, we should pick up whatever in
LOCAL_JAVA_RESOURCE_DIRS.
The same applies  when building .jack from a  prebult jar in
transform-jar-to-jack.

Bug: 25860887
Change-Id: I20c120e039342a1124362c5f8747eace94b03931
(cherry-pick from commit 996ae38ffd552be2a8420de6651c1982e0723e02)

8 years agoMerge "Move mips64 target to clang by default."
Chih-hung Hsieh [Tue, 24 Nov 2015 21:13:38 +0000 (21:13 +0000)]
Merge "Move mips64 target to clang by default."

8 years agoMerge "Move mips target to clang by default."
Chih-hung Hsieh [Tue, 24 Nov 2015 21:13:17 +0000 (21:13 +0000)]
Merge "Move mips target to clang by default."

8 years agoMerge "Clean up compiler warnings in signapk."
Alex Klyubin [Tue, 24 Nov 2015 17:30:42 +0000 (17:30 +0000)]
Merge "Clean up compiler warnings in signapk."

8 years agoClean up compiler warnings in signapk.
Alex Klyubin [Thu, 19 Nov 2015 21:09:57 +0000 (13:09 -0800)]
Clean up compiler warnings in signapk.

Bug: 25794543
Change-Id: Ia7da4fbaed77af4020e5aa0b14fe5e1bd8521edb

8 years agoMerge "Prevent findleaves.py from traversing copies of $(OUT_DIR)"
Shinichiro Hamaji [Tue, 24 Nov 2015 04:54:02 +0000 (04:54 +0000)]
Merge "Prevent findleaves.py from traversing copies of $(OUT_DIR)"

8 years agoMove mips64 target to clang by default.
Chih-Hung Hsieh [Fri, 20 Nov 2015 21:34:36 +0000 (13:34 -0800)]
Move mips64 target to clang by default.

Bug: 23163853
Change-Id: Ia3d449f908b09ce95b3de246c8c699d171dcbaa3

8 years agoMove mips target to clang by default.
Chih-Hung Hsieh [Fri, 20 Nov 2015 21:32:22 +0000 (13:32 -0800)]
Move mips target to clang by default.

Bug: 23163853
Change-Id: I408ffd90ff2ff075e03962fffd1681fccf0319d3

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 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 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 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"
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 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:14:08 +0000 (16:14 +0000)]
Merge "Rename AArch64 ASan target runtime library to match upstream convention."

8 years agoPrevent findleaves.py from traversing copies of $(OUT_DIR)
Shinichiro Hamaji [Thu, 19 Nov 2015 09:30:21 +0000 (18:30 +0900)]
Prevent findleaves.py from traversing copies of $(OUT_DIR)

by putting blank Android.mk and CleanSpec.mk in $(OUT_DIR).

Bug: 25732342
Change-Id: I3fcc4efddb9ee5ce309502e978f0589335af8371

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 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"
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 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."
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 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 agoAllow overriding the LLVM prebuilts path.
Dan Albert [Sat, 14 Nov 2015 07:06:07 +0000 (23:06 -0800)]
Allow overriding the LLVM prebuilts path.

The automated build will need to do a two stage build, and we want to
do that without altering the source directory. Building with
`make LLVM_PREBUILTS_BASE=/path/to/prebuilts` will build using an
arbitrary toolchain instead of the installed one.

Bug: http://b/17441393
Change-Id: I4ff5c5224fbb8ebeb3a752907d6c4cd0a925aa1e

8 years agoMerge "Write AB_OTA_POSTINSTALL_CONFIG to META/postinstall_config.txt."
Sen Jiang [Fri, 13 Nov 2015 19:14:00 +0000 (19:14 +0000)]
Merge "Write AB_OTA_POSTINSTALL_CONFIG to META/postinstall_config.txt."

8 years agoWrite AB_OTA_POSTINSTALL_CONFIG to META/postinstall_config.txt.
Sen Jiang [Thu, 12 Nov 2015 21:53:25 +0000 (13:53 -0800)]
Write AB_OTA_POSTINSTALL_CONFIG to META/postinstall_config.txt.

The config file will be passed to delta_generator to add the postinstall
field in the update payload.

Bug: 24537566
Change-Id: I06b8d9d0b2c37f9a3e7a844ac4d9e2eead8cd4d2
TEST: make dist

8 years agoMerge "Use GOMA_HERMETIC=error for USE_GOMA=true build"
Shinichiro Hamaji [Fri, 13 Nov 2015 07:26:39 +0000 (07:26 +0000)]
Merge "Use GOMA_HERMETIC=error for USE_GOMA=true build"

8 years agoUse GOMA_HERMETIC=error for USE_GOMA=true build
Shinichiro Hamaji [Fri, 13 Nov 2015 06:02:46 +0000 (15:02 +0900)]
Use GOMA_HERMETIC=error for USE_GOMA=true build

With this flag, goma's client (gomacc) fails when local
compiler is different from goma's. Without this, goma's
backend finds a fallback compiler which looks closer to the
local compiler using version info, etc.

Bug: 25668061

Change-Id: I64ff81751f3fe960a557ddb2ca30a090c26c4327

8 years agoMerge "Set WINVER as well as _WIN32_WINNT."
Elliott Hughes [Fri, 13 Nov 2015 03:09:25 +0000 (03:09 +0000)]
Merge "Set WINVER as well as _WIN32_WINNT."

8 years agoMerge "Sort dex and static lib resources"
Dan Willemsen [Fri, 13 Nov 2015 01:39:30 +0000 (01:39 +0000)]
Merge "Sort dex and static lib resources"

8 years agoMerge "Make not having Jack non-fatal."
Dan Albert [Fri, 13 Nov 2015 01:16:08 +0000 (01:16 +0000)]
Merge "Make not having Jack non-fatal."

8 years agoMerge "Allow globally disabling the relocation packer."
Dan Albert [Fri, 13 Nov 2015 01:15:55 +0000 (01:15 +0000)]
Merge "Allow globally disabling the relocation packer."

8 years agoMake not having Jack non-fatal.
Dan Albert [Thu, 12 Nov 2015 23:29:12 +0000 (15:29 -0800)]
Make not having Jack non-fatal.

Not every build needs Java.

Bug: http://b/17441393
Change-Id: Ia55742cfd43c3a4f9c7873b87816bcce99f8156f

8 years agoAllow globally disabling the relocation packer.
Dan Albert [Thu, 12 Nov 2015 23:27:49 +0000 (15:27 -0800)]
Allow globally disabling the relocation packer.

The relocation packer is part of prebuilts/misc, and pulling that
repository into the manifest requires pulling in a lot of other things
not needed by the simpler builds (like the clang toolchain manifest).

Bug: http://b/17441393
Change-Id: If4a94804fc1a3f81215b840247f8e332d0b510c1

8 years agoSet WINVER as well as _WIN32_WINNT.
Elliott Hughes [Thu, 12 Nov 2015 21:33:20 +0000 (13:33 -0800)]
Set WINVER as well as _WIN32_WINNT.

Change-Id: I6ace26d6c25549cf42755423340af07e96e05779

8 years agoMerge "build: Remove check_prereq."
Tao Bao [Thu, 12 Nov 2015 16:41:45 +0000 (16:41 +0000)]
Merge "build: Remove check_prereq."

8 years agoSort dex and static lib resources
Yohann Roussel [Thu, 12 Nov 2015 11:21:42 +0000 (12:21 +0100)]
Sort dex and static lib resources

Before adding them to the apk or javalib.jar. This allows the entries
order to be reproducible and will help to have a reproducible build.

Bug: 25629246

Change-Id: Ie596aecfdd08047ea9f9071896a2b980e7200b41

8 years agobuild: Remove check_prereq.
Tao Bao [Thu, 12 Nov 2015 05:26:29 +0000 (21:26 -0800)]
build: Remove check_prereq.

check_prereq is a tool for recovery API v2, which has been obselete
since we moved to v3 in [1].

[1] commit e08991e02a7d678f2574e85289a34b2a9a537c82

Bug: 24621915
Change-Id: Ie96348fb56c5a3e029cac2417b59d8eb62dc085b

8 years agoMerge "Make uncompressing jni libs in prebuilt APKs reproducible"
Dan Willemsen [Thu, 12 Nov 2015 05:23:05 +0000 (05:23 +0000)]
Merge "Make uncompressing jni libs in prebuilt APKs reproducible"

8 years agoMerge "Add tool to diff two target files packages"
Dan Willemsen [Thu, 12 Nov 2015 05:16:29 +0000 (05:16 +0000)]
Merge "Add tool to diff two target files packages"

8 years agoMake uncompressing jni libs in prebuilt APKs reproducible
Dan Willemsen [Thu, 12 Nov 2015 02:20:37 +0000 (18:20 -0800)]
Make uncompressing jni libs in prebuilt APKs reproducible

This was extracting the shared libraries into a temporary directory,
then adding them back into the zip file using the raw filesystem
ordering. Fix that by passing a sorted list to zip.

Bug: 24201956
Change-Id: I59c41151968be6faf289e04719a9992157eb405d

8 years agoMerge "Revert "Enable gold linker for aarch64.""
Chih-hung Hsieh [Thu, 12 Nov 2015 01:04:06 +0000 (01:04 +0000)]
Merge "Revert "Enable gold linker for aarch64.""

8 years agoRevert "Enable gold linker for aarch64."
Chih-hung Hsieh [Wed, 11 Nov 2015 23:07:01 +0000 (23:07 +0000)]
Revert "Enable gold linker for aarch64."

This reverts commit a7f68ee9eaa3dcaf4e17bbf6eb4dae68df2cbdda.

Change-Id: I8c15df8ce81859f1b950dbac0a47d7d24c0f4cc2
BUG: 25642296

8 years agoMerge "Add suffix .so to use directly libart.so"
Ying Wang [Wed, 11 Nov 2015 22:05:48 +0000 (22:05 +0000)]
Merge "Add suffix .so to use directly libart.so"

8 years agoMerge "releasetools: Support generating verify packages."
Tao Bao [Wed, 11 Nov 2015 21:53:11 +0000 (21:53 +0000)]
Merge "releasetools: Support generating verify packages."

8 years agoMerge "envsetup: fix for provision to work on zsh"
Marie Janssen [Wed, 11 Nov 2015 20:01:13 +0000 (20:01 +0000)]
Merge "envsetup: fix for provision to work on zsh"

8 years agoMerge "releasetools: Refactor ota_from_target_files.py."
Tao Bao [Wed, 11 Nov 2015 19:38:44 +0000 (19:38 +0000)]
Merge "releasetools: Refactor ota_from_target_files.py."

8 years agoMerge "Create reproducible NOTICE collections"
Dan Willemsen [Tue, 10 Nov 2015 21:42:55 +0000 (21:42 +0000)]
Merge "Create reproducible NOTICE collections"

8 years agoreleasetools: Support generating verify packages.
Tao Bao [Tue, 10 Nov 2015 00:58:28 +0000 (16:58 -0800)]
releasetools: Support generating verify packages.

We can generate a special OTA package that verifies all the partitions
(boot, recovery, system, vendor and etc) on a device. It also calls
device-specific script to verify bootloader and radio images. This
ensures a flashed device contains all the desired images faithfully.

Usage:
ota_from_target_files.py --gen_verify target_files.zip output.zip

Bug: 24679956
Change-Id: Ib3091d98c4b17a6fad305b3edf16d09efbda5c38

8 years agoCreate reproducible NOTICE collections
Dan Willemsen [Tue, 10 Nov 2015 20:37:23 +0000 (12:37 -0800)]
Create reproducible NOTICE collections

Sort the lists of notice files instead of relying on the filesystem
ordering returned by os.walk

Bug: 23972440
Change-Id: Id32be9ce8e540244ad9d67b6fc7883fc2963fe5c

8 years agoreleasetools: Refactor ota_from_target_files.py.
Tao Bao [Tue, 10 Nov 2015 20:19:19 +0000 (12:19 -0800)]
releasetools: Refactor ota_from_target_files.py.

Factor out some common lines between generating incremental and full
OTAs. Remove the outer while loop for cleaner logic.

Change-Id: I0a4d44a4a59b488748222c2031bd63f67d45e0b5

8 years agoenvsetup: fix for provision to work on zsh
Marie Janssen [Tue, 10 Nov 2015 18:41:15 +0000 (10:41 -0800)]
envsetup: fix for provision to work on zsh

The -p option means something else on zsh and breaks this function.

Bug: None
Change-Id: Ie0ba8119e34c616f5b8f931806063d6b1d3d893e

8 years agoAdd suffix .so to use directly libart.so
randy.jeong [Tue, 10 Nov 2015 07:42:49 +0000 (16:42 +0900)]
Add suffix .so to use directly libart.so

It should be the complete name with suffix .so to use libart.
At present, unnecessarily falls back like below.
"Falling back from libart to libart.so after dlopen error:
dlopen failed: library "libart" not found"

Change-Id: Ie5da35a71d6661434d2097c842407e6a254f8f58
Signed-off-by: randy.jeong <randy.jeong@samsung.com>
8 years agoMerge "Switch from clang 3.6 to new clang repository (with 3.8)."
Stephen Hines [Tue, 10 Nov 2015 05:59:40 +0000 (05:59 +0000)]
Merge "Switch from clang 3.6 to new clang repository (with 3.8)."

8 years agoSwitch from clang 3.6 to new clang repository (with 3.8).
Stephen Hines [Tue, 10 Nov 2015 00:32:11 +0000 (16:32 -0800)]
Switch from clang 3.6 to new clang repository (with 3.8).

This reverts commit f7dbab16ffe97f41f8f8161b64d015830ab075ae.

Bug: 23396112

Switch from "-fsanitize-undefined-trap-on-error" to
"-fsanitize-trap=all". The former ends up accidentally leaving
unresolved calls to __ubsan* helper functions in the object file with
clang 3.8. The latter is used when we don't include address sanitizer,
and replaces any misbehavior with a direct call to abort().

8 years agoMerge "build: Add LINUX_KERNEL_COPYING license file"
Lee Campbell [Mon, 9 Nov 2015 20:41:08 +0000 (20:41 +0000)]
Merge "build: Add LINUX_KERNEL_COPYING license file"

8 years agobuild: Add LINUX_KERNEL_COPYING license file
Lee Campbell [Mon, 9 Nov 2015 00:28:15 +0000 (16:28 -0800)]
build: Add LINUX_KERNEL_COPYING license file

The build requires LINUX_KERNEL_COPYING when building
the notices. Change from depending on a file in
prebuilds/qemu-kernel to one in /build/core.

This is required as Brillo does not have the qemu-kernel
in its checkout.

BUG=25578534

Change-Id: Ieff6970035d27884c0769106e507284c1096c33f

8 years agoMerge "Let qemu_props service set system properties in ro.emu and ro.emulator"
Griff Hazen [Sun, 8 Nov 2015 00:59:09 +0000 (00:59 +0000)]
Merge "Let qemu_props service set system properties in ro.emu and ro.emulator"

8 years agoLet qemu_props service set system properties in ro.emu and ro.emulator
Griff Hazen [Sun, 8 Nov 2015 00:44:44 +0000 (16:44 -0800)]
Let qemu_props service set system properties in ro.emu and ro.emulator

These boot properties are used by android wear emulator to configure
round and chin shaped devices.

Bug: 23324757
Change-Id: I812da02d771bba0ffc63b14459c7de7cbdeed142

8 years agoAdd tool to diff two target files packages
Dan Willemsen [Sat, 7 Nov 2015 02:36:16 +0000 (18:36 -0800)]
Add tool to diff two target files packages

This tool will help identify unexpected differences between two target
files packages. Expected changes (build number / date) are hidden, along
with known bugs.

It ignores anything that is just packaging for other files that are
already being diffed, like the recovery patching, and all of IMAGES/*

Bug 25372309

Change-Id: I4641754dd5dfbdfd3a89d8fa5262b9a9595e8e9c

8 years agoMerge "Tag "tests" alone doesn't prevent including emma.jar"
Ying Wang [Fri, 6 Nov 2015 19:27:52 +0000 (19:27 +0000)]
Merge "Tag "tests" alone doesn't prevent including emma.jar"

8 years agoTag "tests" alone doesn't prevent including emma.jar
Ying Wang [Fri, 6 Nov 2015 19:22:28 +0000 (11:22 -0800)]
Tag "tests" alone doesn't prevent including emma.jar

Only if an app has LOCAL_INSTRUMENTATION_FOR, it can get the emma
classes from the target app and we don't need to instrument the test app
itself.

Change-Id: If0fba50ddae757254fc58ca104d729d61603fd78

8 years agoMerge "Add the build type to META folder in target files.zip"
Steve Fung [Fri, 6 Nov 2015 03:18:35 +0000 (03:18 +0000)]
Merge "Add the build type to META folder in target files.zip"

8 years agoAdd the build type to META folder in target files.zip
Steve Fung [Thu, 5 Nov 2015 10:04:04 +0000 (02:04 -0800)]
Add the build type to META folder in target files.zip

For AB builds, add the build type to META/build_type.txt so the
server can easily determine user, userdebug, and eng builds
from each other.

Bug: 25420005
Change-Id: I6e4de2ba36a6fd1208c65a434d4725bb93d2cee6

8 years agoMerge "Use explicitly sized types in zipalign/ziptime"
Dan Willemsen [Thu, 5 Nov 2015 20:28:20 +0000 (20:28 +0000)]
Merge "Use explicitly sized types in zipalign/ziptime"

8 years agoMerge "Enable gold linker for aarch64."
Than McIntosh [Thu, 5 Nov 2015 11:49:56 +0000 (11:49 +0000)]
Merge "Enable gold linker for aarch64."

8 years agoMerge "Allow missing SONAME in .toc files"
Shinichiro Hamaji [Thu, 5 Nov 2015 04:02:37 +0000 (04:02 +0000)]
Merge "Allow missing SONAME in .toc files"

8 years agoAllow missing SONAME in .toc files
Shinichiro Hamaji [Thu, 5 Nov 2015 03:51:08 +0000 (12:51 +0900)]
Allow missing SONAME in .toc files

At least one shared object in internal repo doesn't have
SONAME entry in its dynamic segment because it is created by
objcopy instead of a linker.

Change-Id: If7106da022ff1e4e925191402f9072795dc3ddcb

8 years agoMerge "Use .KATI_RESTAT to reduce unnecessary rebuilds of binaries"
Shinichiro Hamaji [Thu, 5 Nov 2015 00:46:04 +0000 (00:46 +0000)]
Merge "Use .KATI_RESTAT to reduce unnecessary rebuilds of binaries"

8 years agoEnable gold linker for aarch64.
Than McIntosh [Thu, 5 Nov 2015 00:21:00 +0000 (19:21 -0500)]
Enable gold linker for aarch64.

[Second attempt, this time with updated mac prebuilt]

Switches default linker from -fuse-ld-bfd to
-fuse-ld=gold, and enables -Wl,--icf=safe. This
changes reduces /system/lib64/*.so text size
by about 2% for N9.

Change-Id: I587075aae9d70cb6b16e55dc9cd1052580ac2626

8 years agoUse explicitly sized types in zipalign/ziptime
Dan Willemsen [Wed, 4 Nov 2015 22:08:20 +0000 (14:08 -0800)]
Use explicitly sized types in zipalign/ziptime

getLongLE would return a 64-bit number with the upper 32-bits set when
decoding a 32-bit number with the top bit set. Per the zip file format,
it was only expected to return a 32-bit number. Use explicitly sized
types so that we use the proper sizes and don't do any implicit
extensions.

Change-Id: I5a4304dc99ce5f8f17284d4ca3094ae115207a1e

8 years agoMerge "selinux: Grant all processes the domain_deprecated attribute"
Jeffrey Vander Stoep [Wed, 4 Nov 2015 18:47:32 +0000 (18:47 +0000)]
Merge "selinux: Grant all processes the domain_deprecated attribute"

8 years agoMerge "Don't run ziptime on host zip files."
Ying Wang [Wed, 4 Nov 2015 18:13:03 +0000 (18:13 +0000)]
Merge "Don't run ziptime on host zip files."

8 years agoDon't run ziptime on host zip files.
Ying Wang [Wed, 4 Nov 2015 18:06:25 +0000 (10:06 -0800)]
Don't run ziptime on host zip files.

ziptime fails on zip file larger than 2GB.
These zip files won't installed on device and we don't care that much
about their reprodudcibility across builds.

Change-Id: I47062928d075a59eda92dd5333e59502f490d1cb

8 years agoselinux: Grant all processes the domain_deprecated attribute
Jeff Vander Stoep [Wed, 4 Nov 2015 16:49:07 +0000 (08:49 -0800)]
selinux: Grant all processes the domain_deprecated attribute

Bug: 25433265
Change-Id: Iafad5abd6e75c5a46f844ef3e744adf1c904b362

8 years agoUse .KATI_RESTAT to reduce unnecessary rebuilds of binaries
Shinichiro Hamaji [Fri, 9 Oct 2015 05:36:04 +0000 (14:36 +0900)]
Use .KATI_RESTAT to reduce unnecessary rebuilds of binaries

When a shared object is rebuilt, all dependent libraries and
executables are rebuilt. Such rebuild is unnecessary when there
is no interface change. With this patch, .toc files will be
generated for all .so files. The rule which generates .toc files
has ninja's restat=1 and .toc files are not changed ninja won't
rebuild dependent targets.

Performance:

$ m && touch bionic/libc/stdio/stdio.c && time m
Before: 1m03s (2563 targets)
After: 21s (90 targets)

Bug: 24597504
Change-Id: Ia5dd950273d143f4e99eee8bef7478f1a94cd138

8 years agoMerge "Sort out ANDROID_GOALS, KATI_GOALS and NINJA_GOALS."
Ying Wang [Wed, 4 Nov 2015 01:11:14 +0000 (01:11 +0000)]
Merge "Sort out ANDROID_GOALS, KATI_GOALS and NINJA_GOALS."

8 years agoSort out ANDROID_GOALS, KATI_GOALS and NINJA_GOALS.
Ying Wang [Wed, 28 Oct 2015 19:34:03 +0000 (12:34 -0700)]
Sort out ANDROID_GOALS, KATI_GOALS and NINJA_GOALS.

ANDROID_GOALS: any Android goals that need to be built.
KATI_GOALS: goals that we need to pass to Kati.
NINJA_GOALS: goals we need to pass to Ninja.

For modifier Android goals (dist, INTERNAL_MODIFIER_TARGETS),
we don't need to pass them to Ninja. See also commit
80e46c7c5cb7b1d80114876d301798a8624b4200.
Restore the dist rule removed by the above commit.

Previously "droid" was never passed to Ninja. That's incorrect.
"make droid docs" should build both docs and droiod.
Fixed with this change.

Change-Id: I5c28061fe0ebe7848872ee349056d029b787ff71

8 years agoMerge "Don't use ziptime with unbundled builds"
Dan Willemsen [Wed, 4 Nov 2015 00:24:59 +0000 (00:24 +0000)]
Merge "Don't use ziptime with unbundled builds"

8 years agoDon't use ziptime with unbundled builds
Dan Willemsen [Wed, 4 Nov 2015 00:09:49 +0000 (16:09 -0800)]
Don't use ziptime with unbundled builds

Some of the trees are unable to compile native code with the normal
build rules, even though they can build kati.

Bug: 24201956
Change-Id: I2afc3468480b2c78407d62323e6b82979c8ee254

8 years agoMerge "Docs: Add Security tab to top"
Clay Murphy [Tue, 3 Nov 2015 23:45:56 +0000 (23:45 +0000)]
Merge "Docs: Add Security tab to top"

8 years agoMerge "Remove changing uids/timestamps from zip/jar files"
Dan Willemsen [Tue, 3 Nov 2015 21:38:45 +0000 (21:38 +0000)]
Merge "Remove changing uids/timestamps from zip/jar files"

8 years agoMerge "Don\'t check the host JDK tools when build/core/config.mk is called from envse...
Ying Wang [Tue, 3 Nov 2015 00:40:38 +0000 (00:40 +0000)]
Merge "Don\'t check the host JDK tools when build/core/config.mk is called from envsetup.sh."
am: a63d379aab

* commit 'a63d379aab75fe3991320319f63faddd3b84b287':
  Don't check the host JDK tools when build/core/config.mk is called from envsetup.sh.

8 years agoMerge "Don't check the host JDK tools when build/core/config.mk is called from envset...
Ying Wang [Tue, 3 Nov 2015 00:17:43 +0000 (00:17 +0000)]
Merge "Don't check the host JDK tools when build/core/config.mk is called from envsetup.sh."

8 years agoDon't check the host JDK tools when build/core/config.mk is called from envsetup.sh.
Ying Wang [Mon, 2 Nov 2015 23:56:58 +0000 (15:56 -0800)]
Don't check the host JDK tools when build/core/config.mk is called from envsetup.sh.

Envsetup.sh (lunch) relies on config.mk to get build varaible values; while
config.mk may rely on envsetup.sh to set up JAVA_HOME/PATH.
Without this change config.mk may be checking the host JDK tools before
JAVA_HOME/PATH get set up.

Change-Id: I1e6b5e33147258832ce2f0a425f9526ef4782c43

8 years agoRemove changing uids/timestamps from zip/jar files
Dan Willemsen [Thu, 29 Oct 2015 23:33:05 +0000 (16:33 -0700)]
Remove changing uids/timestamps from zip/jar files

Pass -X to zip so that Unix UID/GID and extra timestamps aren't
saved into the zip files.

Add a new tool, ziptime, that uses a very stripped down copy of
zipalign. It no longer depends on libandroidfw, and now rewrites the
timestamps in place instead of making a copy of the zipfile. This should
improve speed and reduce disk requirements, especially with the large
packaging zip files.

Bug: 24201956
Change-Id: I50f68669f659da1b4393e964ad40b6aafb00c1e7

8 years agoMerge "envsetup,product,ninja: enable symlink traversal"
Gaurav Shah [Mon, 2 Nov 2015 22:27:27 +0000 (22:27 +0000)]
Merge "envsetup,product,ninja: enable symlink traversal"
am: f589c7b442

* commit 'f589c7b442feb02843bdf82305b599b686fc5204':
  envsetup,product,ninja: enable symlink traversal

8 years agoMerge "Support build targets with no installable apps/packages"
Gaurav Shah [Mon, 2 Nov 2015 22:27:20 +0000 (22:27 +0000)]
Merge "Support build targets with no installable apps/packages"
am: aed6805380

* commit 'aed6805380810f51bb0d8b93fc5eac005a6de364':
  Support build targets with no installable apps/packages

8 years agoMerge "build: Add extra build customization for /product"
Gaurav Shah [Mon, 2 Nov 2015 22:27:14 +0000 (22:27 +0000)]
Merge "build: Add extra build customization for /product"
am: a80f1e3257

* commit 'a80f1e32575db5d66f4b4e6efdf79dd10dd2295e':
  build: Add extra build customization for /product

8 years agoMerge "build: Add support for defining products in /product"
Gaurav Shah [Mon, 2 Nov 2015 22:27:08 +0000 (22:27 +0000)]
Merge "build: Add support for defining products in /product"
am: acb8a7c1f8

* commit 'acb8a7c1f8cacaf136edba1a25d64467d352a432':
  build: Add support for defining products in /product