OSDN Git Service

android-x86/build.git
8 years agoAllow custom recovery resource dirs.
Ying Wang [Thu, 6 Aug 2015 18:47:47 +0000 (11:47 -0700)]
Allow custom recovery resource dirs.

Set TARGET_PRIVATE_RES_DIRS in your BoardConfig.mk to specify custom
private recovery resource directories.
With this change you can share the same recovery resource dir for more
than one device; Also you can specify more than one directories.

Change-Id: Ieeb18f5ac11c98b6f08d0ab6fb4e0d9aa72b27e7

8 years agoMerge "Change the cache partition size check into warnings."
Tao Bao [Sat, 8 Aug 2015 04:26:57 +0000 (04:26 +0000)]
Merge "Change the cache partition size check into warnings."

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

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

Change-Id: Ie94c7fbb1a9f3a7db3f16e8d845e493a534aac5b

8 years agoMerge "releasetools: Support packaging for system_root_image."
Tao Bao [Fri, 7 Aug 2015 04:45:20 +0000 (04:45 +0000)]
Merge "releasetools: Support packaging for system_root_image."

8 years agoMerge "build: Load makefiles in the same order with Make 4.0"
Dan Willemsen [Fri, 7 Aug 2015 00:47:51 +0000 (00:47 +0000)]
Merge "build: Load makefiles in the same order with Make 4.0"

8 years agobuild: Load makefiles in the same order with Make 4.0
Dan Willemsen [Thu, 6 Aug 2015 22:01:24 +0000 (15:01 -0700)]
build: Load makefiles in the same order with Make 4.0

Make 4.0 (and Kati) removed the implicit sort from the $(wildcard)
function. In order to ensure that makefiles are always loaded in the
same order, and an explicit sort.

This shouldn't matter, but some makefiles are modifying variables used
by siblings (LLVM_ROOT_PATH under frameworks/compile). In this case, the
path value still pointed to the same path, it just had extra '..'
references, and was enough to cause the binaries to be different.

Change-Id: Ief6551f999351ee2c193275aaae426dc064f8b34

8 years agoMerge "Remove LOCAL_MODULE from generated DBus header path."
Gilad Arnold [Thu, 6 Aug 2015 21:55:47 +0000 (21:55 +0000)]
Merge "Remove LOCAL_MODULE from generated DBus header path."

8 years agoMerge "Dedup system shared libraries."
Dan Albert [Thu, 6 Aug 2015 21:25:45 +0000 (21:25 +0000)]
Merge "Dedup system shared libraries."

8 years agoMerge "Disable transitive symbol resolving for mips64."
Dan Albert [Thu, 6 Aug 2015 21:25:38 +0000 (21:25 +0000)]
Merge "Disable transitive symbol resolving for mips64."

8 years agoDedup system shared libraries.
Dan Albert [Thu, 6 Aug 2015 19:22:40 +0000 (12:22 -0700)]
Dedup system shared libraries.

These shouldn't differ by target. Right now only mips64 does, and
that's a bug.

Change-Id: Ic941ede85ba1bc07d3316a55639ba71a6afc9630

8 years agoDisable transitive symbol resolving for mips64.
Dan Albert [Thu, 6 Aug 2015 21:17:40 +0000 (14:17 -0700)]
Disable transitive symbol resolving for mips64.

The transitive symbol resolving causes build breakage when a binary
has indirect dependency on the NDK library.

This matches the change made for the the aarch64 toolchain:
https://android-review.googlesource.com/#/c/120654

Change-Id: Id5b2a63301cb1cdcdd84b4bcd9fbec8cf6ec0b3c

8 years agoRemove LOCAL_MODULE from generated DBus header path.
Gilad Arnold [Thu, 6 Aug 2015 19:50:23 +0000 (12:50 -0700)]
Remove LOCAL_MODULE from generated DBus header path.

Its presence requires #include directives to contain the build target
name, which is problematic because these directives can live in headers
that are shared by multiple build targets. Furthermore, having
LOCAL_MODULE in the generated header path is redundant because the
target directory is already private to the current build target (e.g.
.../<target_name>_intermediates/...).

Bug: 22608897
Change-Id: I059f71a1231e80f89c99441794a4491f2685036f

8 years agoMerge "build: Support packaging for system_root_image."
Tao Bao [Thu, 6 Aug 2015 17:43:46 +0000 (17:43 +0000)]
Merge "build: Support packaging for system_root_image."

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

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

Change-Id: I817776ca97194991308b2131d0e34ab136283464

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

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

Change-Id: Ica345c8b1b03475f8ac6c44fd576045fcf17c882

8 years agoMerge "Build static ckati on Linux."
Ying Wang [Wed, 5 Aug 2015 16:43:59 +0000 (16:43 +0000)]
Merge "Build static ckati on Linux."

8 years agoMerge "Add build rules to generate native DBus interfaces"
Christopher Wiley [Wed, 5 Aug 2015 15:40:00 +0000 (15:40 +0000)]
Merge "Add build rules to generate native DBus interfaces"

8 years agoMerge "Replace Browser with Browser2 and BookmarkProvider"
Paul Miller [Tue, 4 Aug 2015 23:20:29 +0000 (23:20 +0000)]
Merge "Replace Browser with Browser2 and BookmarkProvider"

8 years agoMerge "Ignore .*.java files when collecting .java files."
Ying Wang [Tue, 4 Aug 2015 19:52:06 +0000 (19:52 +0000)]
Merge "Ignore .*.java files when collecting .java files."

8 years agoIgnore .*.java files when collecting .java files.
Ying Wang [Tue, 4 Aug 2015 19:44:38 +0000 (12:44 -0700)]
Ignore .*.java files when collecting .java files.

Bug: 22934689
Change-Id: I6c9cc8f37d09eb190946e596e5d1ba0c3b318088

8 years agoBuild static ckati on Linux.
Ying Wang [Tue, 4 Aug 2015 01:15:43 +0000 (18:15 -0700)]
Build static ckati on Linux.

Bug: 22798670
Change-Id: I3aaf127627c1c478ab3af2549e49506d4d1f19df

8 years agoMerge "Fix writing clean_steps.mk in the first build."
Ying Wang [Tue, 4 Aug 2015 19:14:57 +0000 (19:14 +0000)]
Merge "Fix writing clean_steps.mk in the first build."

8 years agoFix writing clean_steps.mk in the first build.
Ying Wang [Tue, 4 Aug 2015 19:11:54 +0000 (12:11 -0700)]
Fix writing clean_steps.mk in the first build.

Change-Id: Ieddc799f38e5d1522e329e8300bd9f49c26c70ae

8 years agoMerge "Don't prepend CC_WRAPPER to CLANG."
Ying Wang [Mon, 3 Aug 2015 21:13:37 +0000 (21:13 +0000)]
Merge "Don't prepend CC_WRAPPER to CLANG."

8 years agoDon't prepend CC_WRAPPER to CLANG.
Ying Wang [Mon, 3 Aug 2015 21:06:58 +0000 (14:06 -0700)]
Don't prepend CC_WRAPPER to CLANG.

We have deferred the CC_WRAPPER prepending to binary.mk per module.

Bug: 22612634
Change-Id: If2c0549503989d17ff7be619fdd49c26fd78f0a5
(cherry-pick from commit 66c8e8c756fb1790cac792b32ba2de057c3b1b4e)

8 years agoMerge "Build 64-bit host tools in Linux/Mac SDK build."
Ying Wang [Sat, 1 Aug 2015 17:23:20 +0000 (17:23 +0000)]
Merge "Build 64-bit host tools in Linux/Mac SDK build."

8 years agoMerge "build: core: Fix issue in recovery"
Daniel Rosenberg [Sat, 1 Aug 2015 00:10:09 +0000 (00:10 +0000)]
Merge "build: core: Fix issue in recovery"

8 years agoMerge "Add support for system images that contain the root directory"
Daniel Rosenberg [Sat, 1 Aug 2015 00:10:02 +0000 (00:10 +0000)]
Merge "Add support for system images that contain the root directory"

8 years agoMerge "Add ro.build.system_root_image"
Daniel Rosenberg [Sat, 1 Aug 2015 00:05:05 +0000 (00:05 +0000)]
Merge "Add ro.build.system_root_image"

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

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

Change-Id: Ie781507b22e4661629840075b274eaab2f712de6

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

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

Change-Id: I8031b32d7cb9ca699c1cc22939e28afce9d1c847

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

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

Change-Id: I17208ebd004c63aebb09db6c3e5f795619e73bd2

8 years agoMerge "Add system/core to the PYTHONPATH."
Dan Albert [Fri, 31 Jul 2015 20:48:17 +0000 (20:48 +0000)]
Merge "Add system/core to the PYTHONPATH."

8 years agoAdd system/core to the PYTHONPATH.
Dan Albert [Mon, 27 Jul 2015 23:06:25 +0000 (16:06 -0700)]
Add system/core to the PYTHONPATH.

There's an adb Python interface now, and system/core needs to be in
the PYTHONPATH for `import adb` to find it.

Change-Id: I712767a2ba96cb017ce5857dc367e4cacf2ec51f

8 years agoMerge "Docs: Add Google Feedback link to the footer for SAC pages."
Gina Dimino [Fri, 31 Jul 2015 18:47:20 +0000 (18:47 +0000)]
Merge "Docs: Add Google Feedback link to the footer for SAC pages."

8 years agoAdd build rules to generate native DBus interfaces
Christopher Wiley [Thu, 30 Jul 2015 00:14:24 +0000 (17:14 -0700)]
Add build rules to generate native DBus interfaces

With this patch, we can now write Android makefiles like:

include $(CLEAR_VARS)
LOCAL_MODULE := dbus-binding-example
LOCAL_SRC_FILES := main.cpp \
                   dbus-service-config.json \
                   org.example.Daemon.Command.dbus.xml \
                   org.example.Daemon.Manager.dbus.xml
include $(BUILD_EXECUTABLE)

This will cause header files defining native DBus interfaces
to be generated.  These can be included from main.cpp to
easily expose object oriented interface over DBus.

Bug: 22608897
Change-Id: Ic4304ac8de77de74d6955ed17789e5477be9a53e

8 years agoMerge "build: Fix "adb shell" in recovery for system_root_image."
Tao Bao [Fri, 31 Jul 2015 16:43:59 +0000 (16:43 +0000)]
Merge "build: Fix "adb shell" in recovery for system_root_image."

8 years agoBuild 64-bit host tools in Linux/Mac SDK build.
Ying Wang [Fri, 31 Jul 2015 16:24:15 +0000 (09:24 -0700)]
Build 64-bit host tools in Linux/Mac SDK build.

With this we build 32-bit host tools in only MinGW Windows build.

Bug: 22776595
Change-Id: Icca02b0f629460449a3437ff1769d4d081e92413

8 years agoReplace Browser with Browser2 and BookmarkProvider
Paul Miller [Fri, 31 Jul 2015 01:12:21 +0000 (18:12 -0700)]
Replace Browser with Browser2 and BookmarkProvider

Browser is going away. Browser2 is a tiny, WebView-based browser for
testing purposes. BookmarkProvider will take over the
"com.android.browser;browser" authorities and return empty Cursors for
all queries. See packages/apps/Browser2/README for how to obtain a
regular browser.

BUG:19351071
Change-Id: I8af605ec65a1185923598ba553a98e3fd9b887db

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

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

Bug: 22855115
Change-Id: Ia6b257b75aeb67687c3909063d1725a23a5ccd60

8 years agoDocs: Add Google Feedback link to the footer for SAC pages.
Gina Dimino [Wed, 8 Jul 2015 21:34:16 +0000 (14:34 -0700)]
Docs: Add Google Feedback link to the footer for SAC pages.

Bug: 8906018
Change-Id: Id53b8a4421e01cef0ea1609efde1e29eb2a50f47

8 years agoMerge "Make TSAN easier to use."
Dan Albert [Thu, 30 Jul 2015 18:44:19 +0000 (18:44 +0000)]
Merge "Make TSAN easier to use."

8 years agoMerge "Remove HAVE_WINSOCK."
Elliott Hughes [Thu, 30 Jul 2015 17:24:06 +0000 (17:24 +0000)]
Merge "Remove HAVE_WINSOCK."

8 years agoMake TSAN easier to use.
Dan Albert [Thu, 30 Jul 2015 17:17:33 +0000 (10:17 -0700)]
Make TSAN easier to use.

TSAN is not supported on 32-bit architectures. For non-multilib cases,
make its use an error. For multilib cases, don't use it for the 32-bit
case.

Change-Id: I8e40be4002379cc2c9aa98ab8b812b337d6e077e

8 years agoMerge "Remove the now-empty darwin AndroidConfig.h."
Elliott Hughes [Thu, 30 Jul 2015 16:19:25 +0000 (16:19 +0000)]
Merge "Remove the now-empty darwin AndroidConfig.h."

8 years agoRemove the now-empty darwin AndroidConfig.h.
Elliott Hughes [Thu, 30 Jul 2015 16:16:01 +0000 (09:16 -0700)]
Remove the now-empty darwin AndroidConfig.h.

Change-Id: Icdbb06514c099653923aae936c31abfbaeaccf7a

8 years agoMerge "Don't define S_IRGRP in AndroidConfig.h."
Elliott Hughes [Thu, 30 Jul 2015 03:43:38 +0000 (03:43 +0000)]
Merge "Don't define S_IRGRP in AndroidConfig.h."

8 years agoMerge "Remove global Windows __BEGIN_DECLS/__END_DECLS."
Elliott Hughes [Thu, 30 Jul 2015 03:20:36 +0000 (03:20 +0000)]
Merge "Remove global Windows __BEGIN_DECLS/__END_DECLS."

8 years agoRemove global Windows __BEGIN_DECLS/__END_DECLS.
Elliott Hughes [Thu, 30 Jul 2015 03:14:59 +0000 (20:14 -0700)]
Remove global Windows __BEGIN_DECLS/__END_DECLS.

Change-Id: Ic1ba634a0376c9c1b484098b4ca41cf7659f06b1

8 years agoDon't define S_IRGRP in AndroidConfig.h.
Elliott Hughes [Thu, 30 Jul 2015 02:26:39 +0000 (19:26 -0700)]
Don't define S_IRGRP in AndroidConfig.h.

Nothing seems to be relying on this anyway.

Change-Id: I24e2509e4d24bc445961430bb74f8ca04135bc37

8 years agoRemove HAVE_WINSOCK.
Elliott Hughes [Thu, 30 Jul 2015 02:05:24 +0000 (19:05 -0700)]
Remove HAVE_WINSOCK.

Change-Id: I362451b68775de0216c5b8736f5cc16a7933b6c2

8 years agoMerge "Update mac_sdk_versions_supported."
Ying Wang [Thu, 30 Jul 2015 00:37:38 +0000 (00:37 +0000)]
Merge "Update mac_sdk_versions_supported."

8 years agoUpdate mac_sdk_versions_supported.
Ying Wang [Wed, 29 Jul 2015 23:35:40 +0000 (16:35 -0700)]
Update mac_sdk_versions_supported.

Now we requires Mac OS X SDK version at least 10.8.
Also removed the unnecessary sort call in getting
mac_sdk_versions_installed.
Lexical sort doesn't make sense when 10.10 is added to that list.
Actually the next makefile line makes sure we always get the first
match in $(mac_sdk_versions_supported):
mac_sdk_version := $(firstword $(filter $(mac_sdk_versions_installed),
$(mac_sdk_versions_supported)))

Bug: 22825165
Change-Id: I4bfafabb11f94b66704d4799fe61fe3f16429538

8 years agoMerge "Remove OS_PATH_SEPARATOR from AndroidConfig.h."
Elliott Hughes [Wed, 29 Jul 2015 23:14:52 +0000 (23:14 +0000)]
Merge "Remove OS_PATH_SEPARATOR from AndroidConfig.h."

8 years agoRemove OS_PATH_SEPARATOR from AndroidConfig.h.
Elliott Hughes [Wed, 29 Jul 2015 22:31:39 +0000 (15:31 -0700)]
Remove OS_PATH_SEPARATOR from AndroidConfig.h.

Change-Id: I4143be14e5117526bfa98d83e246cc4360209c13

8 years agoMerge "Use unmodified MAKECMDGOALS in ninja.mk."
Ying Wang [Wed, 29 Jul 2015 21:59:42 +0000 (21:59 +0000)]
Merge "Use unmodified MAKECMDGOALS in ninja.mk."

8 years agoMerge "Add compressor options for squashfs system images"
Simon Wilson [Wed, 29 Jul 2015 21:35:57 +0000 (21:35 +0000)]
Merge "Add compressor options for squashfs system images"

8 years agoMerge "Read fstab from the source build."
Tao Bao [Wed, 29 Jul 2015 21:21:14 +0000 (21:21 +0000)]
Merge "Read fstab from the source build."

8 years agoRead fstab from the source build.
Tao Bao [Wed, 29 Jul 2015 21:09:23 +0000 (14:09 -0700)]
Read fstab from the source build.

When creating incremental OTAs, we should always use the fstab from the
source build instead of the target.

Bug: 21948974
Change-Id: Iff44130f88a679b253ea1adcfac4ed8566ce9cc7

8 years agoUse unmodified MAKECMDGOALS in ninja.mk.
Ying Wang [Wed, 29 Jul 2015 00:57:45 +0000 (17:57 -0700)]
Use unmodified MAKECMDGOALS in ninja.mk.

The build system removes targets like "PRODUCT-full-eng" from
MAKECMDGOALS in build/core/product_config.mk.
Without this change, such target isn't passed to kati.

Change-Id: I0b3949ed1f5557445d7f5d5bd59b7875c0b2ea7f

8 years agoMerge "Remove $(DEX2OAT) from DEX2OAT_DEPENDENCY when USE_DEX2OAT_DEBUG is set."
Ying Wang [Wed, 29 Jul 2015 16:59:50 +0000 (16:59 +0000)]
Merge "Remove $(DEX2OAT) from DEX2OAT_DEPENDENCY when USE_DEX2OAT_DEBUG is set."

8 years agoMerge "Remove HAVE_WINDOWS_PATHS."
Elliott Hughes [Wed, 29 Jul 2015 15:48:41 +0000 (15:48 +0000)]
Merge "Remove HAVE_WINDOWS_PATHS."

8 years agoRemove HAVE_WINDOWS_PATHS.
Elliott Hughes [Wed, 29 Jul 2015 15:45:40 +0000 (08:45 -0700)]
Remove HAVE_WINDOWS_PATHS.

Change-Id: I11284ceddf08eb284af56360f0cf80f4725c98e9

8 years agoMerge "Support systems that use a full copy of recovery image."
Tao Bao [Tue, 28 Jul 2015 23:28:40 +0000 (23:28 +0000)]
Merge "Support systems that use a full copy of recovery image."

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

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

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

8 years agoRemove $(DEX2OAT) from DEX2OAT_DEPENDENCY when USE_DEX2OAT_DEBUG is set.
Fredrik Roubert [Mon, 27 Jul 2015 19:48:39 +0000 (21:48 +0200)]
Remove $(DEX2OAT) from DEX2OAT_DEPENDENCY when USE_DEX2OAT_DEBUG is set.

Currently, DEX2OATD_DEPENDENCY is created by appending $(DEX2OATD) to
the value of DEX2OAT_DEPENDENCY and then if USE_DEX2OAT_DEBUG is set,
DEX2OAT_DEPENDENCY is set to DEX2OATD_DEPENDENCY, adding a dependency
on $(DEX2OAT) even in configurations where this will not be built.

This change removes DEX2OATD and DEX2OATD_DEPENDENCY entirely to instead
assign dex2oat or dex2oatd to DEX2OAT depending on USE_DEX2OAT_DEBUG,
making it possible to build with these flags set:

USE_DEX2OAT_DEBUG=true
ART_BUILD_HOST_NDEBUG=false
ART_BUILD_HOST_DEBUG=true
ART_BUILD_TARGET_NDEBUG=false
ART_BUILD_TARGET_DEBUG=true
make build-art-host

Change-Id: I4fa75d1b7e9751c73c43ec943fd8446cc231a070

8 years agoMerge "Remove unused "host/Directories.h"."
Elliott Hughes [Tue, 28 Jul 2015 14:55:06 +0000 (14:55 +0000)]
Merge "Remove unused "host/Directories.h"."

8 years agoRemove unused "host/Directories.h".
Elliott Hughes [Tue, 28 Jul 2015 14:49:02 +0000 (07:49 -0700)]
Remove unused "host/Directories.h".

There's no implementation of these functions.

Change-Id: Ic12286ccd1a392be32e5da67e5b7637bac4820f6

8 years agoMerge "Disallow LOCAL_CXX_STL with LOCAL_SDK_VERSION."
Dan Albert [Tue, 28 Jul 2015 00:04:36 +0000 (00:04 +0000)]
Merge "Disallow LOCAL_CXX_STL with LOCAL_SDK_VERSION."

8 years agoDisallow LOCAL_CXX_STL with LOCAL_SDK_VERSION.
Dan Albert [Mon, 27 Jul 2015 21:14:56 +0000 (14:14 -0700)]
Disallow LOCAL_CXX_STL with LOCAL_SDK_VERSION.

Change-Id: I2cd97b453ad24cc4e5d59b4035e861df41b8cbb9

8 years agoMerge "Bump generic_arm64 system partition size to 1200 MB."
Ying Wang [Mon, 27 Jul 2015 18:48:35 +0000 (18:48 +0000)]
Merge "Bump generic_arm64 system partition size to 1200 MB."

8 years agoBump generic_arm64 system partition size to 1200 MB.
Ying Wang [Mon, 27 Jul 2015 18:01:50 +0000 (11:01 -0700)]
Bump generic_arm64 system partition size to 1200 MB.

Change-Id: I31740673829e578d7fc0edd895868bf1f21cfe15

9 years agoMerge "Fix mmma uses like "mmma ./external/apache-harmony""
Ying Wang [Fri, 24 Jul 2015 19:35:47 +0000 (19:35 +0000)]
Merge "Fix mmma uses like "mmma ./external/apache-harmony""

9 years agoFix mmma uses like "mmma ./external/apache-harmony"
Ying Wang [Fri, 24 Jul 2015 19:30:41 +0000 (12:30 -0700)]
Fix mmma uses like "mmma ./external/apache-harmony"

Fix mmma uses like "mmma ./external/apache-harmony" by removing the
leading ./ in entries in BUILD_MODULES_IN_PATHS.

Change-Id: I414e734c8a29434fc89ddb2b745613c33709c5e3

9 years agoMerge "Build with kati+ninja when USE_NINJA=true"
Colin Cross [Fri, 24 Jul 2015 18:43:58 +0000 (18:43 +0000)]
Merge "Build with kati+ninja when USE_NINJA=true"

9 years agoMerge "Remove unneeded aapt dependency"
Brian Carlstrom [Fri, 24 Jul 2015 04:10:25 +0000 (04:10 +0000)]
Merge "Remove unneeded aapt dependency"

9 years agoBuild with kati+ninja when USE_NINJA=true
Colin Cross [Fri, 17 Jul 2015 00:27:52 +0000 (17:27 -0700)]
Build with kati+ninja when USE_NINJA=true

If USE_NINJA=true, use kati to translate makefiles into ninja files,
and then execute them with ninja.

Builds kati from source using simplified versions of the rules
in binary.mk and definitions.mk.

Adds two new goals when USE_NINJA=true: generateonly will regenerate
build.ninja but not rebuild (useful for comparing build.ninja output
between runs), and fastincremental will skip regenerating build.ninja
and go directly to running ninja, providing ~5 second incremental
builds.

Change-Id: Ib85399e730f1fbb1be7371fafeee7d1c31080771

9 years agoRemove unneeded aapt dependency
Brian Carlstrom [Fri, 24 Jul 2015 00:12:10 +0000 (17:12 -0700)]
Remove unneeded aapt dependency

Change-Id: Ie9b550367f7c6b91d46dc2506c420a45b0d39703

9 years agoMerge "Add build subprojects to .gitignore"
Colin Cross [Thu, 23 Jul 2015 22:11:31 +0000 (22:11 +0000)]
Merge "Add build subprojects to .gitignore"

9 years agoAdd build subprojects to .gitignore
Colin Cross [Thu, 23 Jul 2015 20:18:22 +0000 (13:18 -0700)]
Add build subprojects to .gitignore

Add blueprint, kati, and soong subdirectories to .gitignore so nothing
gets committed there when new subprojects are added to the manifest.

Change-Id: I888b94a89c87d99c8d28e8abd07a830f9cd86702

9 years agoMerge "Cleanups."
Ying Wang [Tue, 21 Jul 2015 23:45:42 +0000 (23:45 +0000)]
Merge "Cleanups."

9 years agoMerge "Create OUT_DIR before writing build_number.txt."
Ying Wang [Tue, 21 Jul 2015 23:44:45 +0000 (23:44 +0000)]
Merge "Create OUT_DIR before writing build_number.txt."

9 years agoCreate OUT_DIR before writing build_number.txt.
Ying Wang [Tue, 21 Jul 2015 23:22:51 +0000 (16:22 -0700)]
Create OUT_DIR before writing build_number.txt.

Change-Id: I6a84ec59194c48f4291480cb0c94db0da488518c

9 years agoCleanups.
Ying Wang [Tue, 21 Jul 2015 23:01:00 +0000 (16:01 -0700)]
Cleanups.

- Deleted unused functions in definitions.mk.
- lint is never fully functional in the platform source tree.
- Retire LOCAL_DIST_BUNDLED_BINARIES: now the build system/framework
  supports JNI embedded in apk.

Change-Id: I6314cb20d1544c704ccbc4c1f9cccb9c54fb5a51

9 years agoMerge "Split [CC|CXX]_WRAPPER from [TARGET|HOST]_[CC|CXX]"
Ying Wang [Tue, 21 Jul 2015 21:09:22 +0000 (21:09 +0000)]
Merge "Split [CC|CXX]_WRAPPER from [TARGET|HOST]_[CC|CXX]"

9 years agoSplit [CC|CXX]_WRAPPER from [TARGET|HOST]_[CC|CXX]
Ying Wang [Tue, 21 Jul 2015 01:40:18 +0000 (18:40 -0700)]
Split [CC|CXX]_WRAPPER from [TARGET|HOST]_[CC|CXX]

- Don't overwrite [TARGET|HOST]_[CC|CXX] with the [CC|CXX]_WRAPPER prefix,
  so that we can disable the wrapper per module.
- Disable ccache on a module when FDO is enabled.

Bug: 22612634
Change-Id: Ibc04a4742d589955066c7eceb43a0da9a2b893bc
(cherry-pick from commit c671a7cf5cae42b61991d9b72e53d9d8a6ace84e)

9 years agoMerge "Read BUILD_NUMBER from file in rules"
Colin Cross [Tue, 21 Jul 2015 19:20:36 +0000 (19:20 +0000)]
Merge "Read BUILD_NUMBER from file in rules"

9 years agoMerge "Disable relocation packer in SANITIZE_TARGET mode."
Evgenii Stepanov [Tue, 21 Jul 2015 17:30:02 +0000 (17:30 +0000)]
Merge "Disable relocation packer in SANITIZE_TARGET mode."

9 years agoMerge "Override properties that point to out/ directory."
Tao Bao [Tue, 21 Jul 2015 05:01:46 +0000 (05:01 +0000)]
Merge "Override properties that point to out/ directory."

9 years agoMerge "Do not update previous_XXX.mk when there is no change"
Shinichiro Hamaji [Tue, 21 Jul 2015 01:32:40 +0000 (01:32 +0000)]
Merge "Do not update previous_XXX.mk when there is no change"

9 years agoDo not update previous_XXX.mk when there is no change
Shinichiro Hamaji [Mon, 20 Jul 2015 22:28:39 +0000 (07:28 +0900)]
Do not update previous_XXX.mk when there is no change

I'm adding a rule which regenerates ninja files to kati:

https://github.com/shinh/kati/commit/8666cfba20bf4ff0e59053dcfa7bcac9896bcf16

With this regeneration rule, unnecessary re-generation will happen
when these .mk files are updated even if there are no changes in
their contents. With this patch, these .mk files are updated only
when the contents will be actually changed.

Change-Id: I4c796f9454502f6bb25019b3806ca577ea5258c1

9 years agoMerge "Auto-clean host tools when switching between apps_only and platform build."
Ying Wang [Tue, 21 Jul 2015 00:32:33 +0000 (00:32 +0000)]
Merge "Auto-clean host tools when switching between apps_only and platform build."

9 years agoAuto-clean host tools when switching between apps_only and platform build.
Ying Wang [Tue, 14 Apr 2015 21:10:46 +0000 (14:10 -0700)]
Auto-clean host tools when switching between apps_only and platform build.

For apps_only (also PDK build) we use prebuilt host tools in
prebuilts/sdk/tools; For platform build we use tools built from source.
Auto-clean intermediate files of these tools when build type change is
detected.

Bug: 20213206
Change-Id: I9173af322684c017fdb91a3abfbe39ecfe5650e9
(cherry-pick from commit 036b53b6de3cc2a5de46be31eeb4d07ffb0d057f)

9 years agoDisable relocation packer in SANITIZE_TARGET mode.
Evgenii Stepanov [Mon, 20 Jul 2015 23:32:53 +0000 (16:32 -0700)]
Disable relocation packer in SANITIZE_TARGET mode.

Workaround for
https://code.google.com/p/address-sanitizer/issues/detail?id=387.

Change-Id: I151c3f0eb7e2a4c92a64192a0b43ac17646eab5c

9 years agoMerge "Revert "Revert "Hide unwinder symbols in each binary."""
Dan Albert [Mon, 20 Jul 2015 23:11:56 +0000 (23:11 +0000)]
Merge "Revert "Revert "Hide unwinder symbols in each binary."""

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

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

Change-Id: I18e930cbea224ab9c6db8d4e721b1c266a671db6

9 years agoRead BUILD_NUMBER from file in rules
Colin Cross [Fri, 17 Jul 2015 00:15:19 +0000 (17:15 -0700)]
Read BUILD_NUMBER from file in rules

Using $(BUILD_NUMBER) inside a rule causes odd behavior, as the rule
is different every time make is run, but since make doesn't depend
on the command line it only ends up being built with the new value
if some other dependency has changed.

To allow ninja, which does depend on the command line, to provide the
same behavior, store the build number in out/build_number.txt, and
use a shell expansion to cat the file in rules that use it.  This will
cause the rule command to stay identical between builds, while still
getting the new build number if the rule is rerun for a dependency.

Also use the same trick for BUILD_FINGERPRINT, and the date in
droiddoc rules.

Change-Id: I6c5e6b6b3ef4c613563d7f5604df0e401575ba5f

9 years agoMerge "Move @echo to first command in rules"
Colin Cross [Fri, 17 Jul 2015 23:01:58 +0000 (23:01 +0000)]
Merge "Move @echo to first command in rules"

9 years agoMove @echo to first command in rules
Colin Cross [Fri, 17 Jul 2015 00:14:27 +0000 (17:14 -0700)]
Move @echo to first command in rules

Move the @echo command that prints the rule description to be the
first command in each rule so that the kati tool can find it to
use as a ninja rule description.

Change-Id: I90f27c35bb719d327a7f2109f8d00d3589082f19

9 years agoMerge "file_contexts: Label /dev/ttyS2 as console_device"
Nick Kralevich [Thu, 16 Jul 2015 18:47:56 +0000 (18:47 +0000)]
Merge "file_contexts: Label /dev/ttyS2 as console_device"