OSDN Git Service

android-x86/build.git
8 years agoMerge "build: pass version and patch level to mkbootimg"
Sami Tolvanen [Tue, 8 Mar 2016 16:08:14 +0000 (16:08 +0000)]
Merge "build: pass version and patch level to mkbootimg"
am: b32d845090

* commit 'b32d845090d19d2dfbbf32d4628ef81478325927':
  build: pass version and patch level to mkbootimg

8 years agoMerge "build: pass version and patch level to mkbootimg"
Sami Tolvanen [Tue, 8 Mar 2016 16:02:24 +0000 (16:02 +0000)]
Merge "build: pass version and patch level to mkbootimg"

8 years agoMerge "Reexport include dirs for whole static libs"
Dan Willemsen [Tue, 8 Mar 2016 00:16:45 +0000 (00:16 +0000)]
Merge "Reexport include dirs for whole static libs"
am: e2379484ab

* commit 'e2379484ab96e7e5f9a60061557e492068ef1789':
  Reexport include dirs for whole static libs

8 years agoMerge "Reexport include dirs for whole static libs"
Dan Willemsen [Tue, 8 Mar 2016 00:14:02 +0000 (00:14 +0000)]
Merge "Reexport include dirs for whole static libs"

8 years agoMerge "Removed duplicate definition of E2FSCK"
Martin Blumenstingl [Tue, 8 Mar 2016 00:05:12 +0000 (00:05 +0000)]
Merge "Removed duplicate definition of E2FSCK"
am: d7a4e56a87

* commit 'd7a4e56a87c324378e60f5989a14a5d5addfd456':
  Removed duplicate definition of E2FSCK

8 years agoMerge "Removed duplicate definition of E2FSCK"
Colin Cross [Mon, 7 Mar 2016 23:54:40 +0000 (23:54 +0000)]
Merge "Removed duplicate definition of E2FSCK"

8 years agoMerge "releasetools: Fix the bug in AssertSequenceGood."
Tao Bao [Mon, 7 Mar 2016 22:35:40 +0000 (22:35 +0000)]
Merge "releasetools: Fix the bug in AssertSequenceGood."
am: 236e664efa

* commit '236e664efa04bd92ce28ba553afebf8e79ca17fa':
  releasetools: Fix the bug in AssertSequenceGood.

8 years agoMerge "releasetools: Fix the bug in AssertSequenceGood."
Tao Bao [Mon, 7 Mar 2016 22:25:02 +0000 (22:25 +0000)]
Merge "releasetools: Fix the bug in AssertSequenceGood."

8 years agoMerge "Use ulimit -p rather than prlimit."
Elliott Hughes [Mon, 7 Mar 2016 22:17:37 +0000 (22:17 +0000)]
Merge "Use ulimit -p rather than prlimit."
am: 74d4d98be1

* commit '74d4d98be1156982a1ab9a26be1dac26ee4e51d1':
  Use ulimit -p rather than prlimit.

8 years agoMerge "Use ulimit -p rather than prlimit."
Elliott Hughes [Mon, 7 Mar 2016 22:10:44 +0000 (22:10 +0000)]
Merge "Use ulimit -p rather than prlimit."

8 years agoUse ulimit -p rather than prlimit.
Elliott Hughes [Mon, 7 Mar 2016 21:53:53 +0000 (13:53 -0800)]
Use ulimit -p rather than prlimit.

Neither is standard, but ulimit is toybox and therefore a bit more
regular and at least has help text.

Change-Id: Id7ba9adc9ca256b821d8060506010abef30dee28

8 years agoMerge "Move BUILD_NATIVE_BENCHMARK over to libgoogle-benchmark."
Elliott Hughes [Mon, 7 Mar 2016 21:22:53 +0000 (21:22 +0000)]
Merge "Move BUILD_NATIVE_BENCHMARK over to libgoogle-benchmark."
am: ef0c20621d

* commit 'ef0c20621d7b82f25f8fa669a0b2d8031588169d':
  Move BUILD_NATIVE_BENCHMARK over to libgoogle-benchmark.

8 years agoMerge "Move BUILD_NATIVE_BENCHMARK over to libgoogle-benchmark."
Elliott Hughes [Mon, 7 Mar 2016 21:17:45 +0000 (21:17 +0000)]
Merge "Move BUILD_NATIVE_BENCHMARK over to libgoogle-benchmark."

8 years agoMerge "Fix dumping variables of absolute paths."
Ying Wang [Mon, 7 Mar 2016 20:04:13 +0000 (20:04 +0000)]
Merge "Fix dumping variables of absolute paths."
am: dd70b91060

* commit 'dd70b9106079f39738c129c6f874576748f92d3e':
  Fix dumping variables of absolute paths.

8 years agoMerge "Fix dumping variables of absolute paths."
Ying Wang [Mon, 7 Mar 2016 19:58:14 +0000 (19:58 +0000)]
Merge "Fix dumping variables of absolute paths."

8 years agobuild: pass version and patch level to mkbootimg
Sami Tolvanen [Fri, 4 Mar 2016 23:41:02 +0000 (15:41 -0800)]
build: pass version and patch level to mkbootimg

Add --os_version and --os_patch_level arguments to mkbootimg.

Needs matching changes from
  I57682611e0c27fec5ed284da7d9a788383ff98b1

Bug: 27498078
Bug: 22914603
Change-Id: I04e20b0de40d864aac92ac7bcf466a6cbde3d0e4

8 years agoFix dumping variables of absolute paths.
Ying Wang [Mon, 7 Mar 2016 19:27:20 +0000 (11:27 -0800)]
Fix dumping variables of absolute paths.

Calling $(abspath) is better than checking and prepending $(PWD) if
necessary.

Bug: 27429759
Change-Id: Ia156f8a5d6b88b6090f4d23c7f9166bd62d3ab70

8 years agoRemoved duplicate definition of E2FSCK
Martin Blumenstingl [Sun, 6 Mar 2016 21:38:19 +0000 (22:38 +0100)]
Removed duplicate definition of E2FSCK

Change-Id: I810711ad05e198ee1f9606c37649e80df7b55fa5

8 years agoMerge "Delete relics left behind by commit 86e6b7ed51dab3e ."
Ying Wang [Sat, 5 Mar 2016 00:32:27 +0000 (00:32 +0000)]
Merge "Delete relics left behind by commit 86e6b7ed51dab3e ."
am: 880c9ffe7a

* commit '880c9ffe7a47c163f986f7bc02963bbde1c83c0f':
  Delete relics left behind by commit 86e6b7ed51dab3e .

8 years agoMerge "Delete relics left behind by commit 86e6b7ed51dab3e ."
Ying Wang [Sat, 5 Mar 2016 00:29:00 +0000 (00:29 +0000)]
Merge "Delete relics left behind by commit 86e6b7ed51dab3e ."

8 years agoDelete relics left behind by commit 86e6b7ed51dab3e .
Ying Wang [Sat, 5 Mar 2016 00:24:36 +0000 (16:24 -0800)]
Delete relics left behind by commit 86e6b7ed51dab3e .

Change-Id: I81febc28f471727fc37335b11e47749753a57997
(cherry-pick from commit 0f59fdf30db2209cf30ea042d86ef60dcf807838)

8 years agoMerge "Tell soong about MALLOC_SVELTE"
Dan Willemsen [Fri, 4 Mar 2016 23:55:48 +0000 (23:55 +0000)]
Merge "Tell soong about MALLOC_SVELTE"
am: fd2691c35f

* commit 'fd2691c35f6e0c7b5339befa8afefaebdfb72283':
  Tell soong about MALLOC_SVELTE

8 years agoMerge "Tell soong about MALLOC_SVELTE"
Dan Willemsen [Fri, 4 Mar 2016 23:53:36 +0000 (23:53 +0000)]
Merge "Tell soong about MALLOC_SVELTE"

8 years agoreleasetools: Fix the bug in AssertSequenceGood.
Tao Bao [Fri, 4 Mar 2016 23:23:34 +0000 (15:23 -0800)]
releasetools: Fix the bug in AssertSequenceGood.

We use a bitset for blocks in the target image to assert a block hasn't
been touched before reading. Skip checking the blocks that are in the
source image only.

Change-Id: I3a77292da673c813bd20d8dc177ff36419d8ecae

8 years agoMerge "Get gtest includes from the exported headers."
Dan Albert [Fri, 4 Mar 2016 22:34:39 +0000 (22:34 +0000)]
Merge "Get gtest includes from the exported headers."
am: f8b170dc52

* commit 'f8b170dc52575f16a63bfd6b6710efb46580c8b2':
  Get gtest includes from the exported headers.

8 years agoMerge "Get gtest includes from the exported headers."
Dan Albert [Fri, 4 Mar 2016 22:30:58 +0000 (22:30 +0000)]
Merge "Get gtest includes from the exported headers."

8 years agoMerge "Small fixes."
Ying Wang [Fri, 4 Mar 2016 22:10:23 +0000 (22:10 +0000)]
Merge "Small fixes."
am: dfa0d1063a

* commit 'dfa0d1063a8b07c22d79116be799ffda537211e8':
  Small fixes.

8 years agoMerge "Small fixes."
Ying Wang [Fri, 4 Mar 2016 21:58:08 +0000 (21:58 +0000)]
Merge "Small fixes."

8 years agoSmall fixes.
Ying Wang [Fri, 4 Mar 2016 21:56:23 +0000 (13:56 -0800)]
Small fixes.

Change-Id: Ia949ed0bc93edb78d0b029f3bd3dd584e9a00dc8

8 years agoMove BUILD_NATIVE_BENCHMARK over to libgoogle-benchmark.
Elliott Hughes [Fri, 4 Mar 2016 21:37:43 +0000 (13:37 -0800)]
Move BUILD_NATIVE_BENCHMARK over to libgoogle-benchmark.

Bug: http://b/24803663
Change-Id: I1565cf680298a1765e88162d8b0e59dedba29bd7

8 years agoMerge "Do not apply GLOBAL_CFLAGS_NO_OVERRIDE to host *.S"
Dan Willemsen [Fri, 4 Mar 2016 20:59:24 +0000 (20:59 +0000)]
Merge "Do not apply GLOBAL_CFLAGS_NO_OVERRIDE to host *.S"
am: 6d813d8c92

* commit '6d813d8c9223ba6e55e98f23a8a8c2248466feff':
  Do not apply GLOBAL_CFLAGS_NO_OVERRIDE to host *.S

8 years agoMerge "Do not apply GLOBAL_CFLAGS_NO_OVERRIDE to host *.S"
Dan Willemsen [Fri, 4 Mar 2016 20:52:57 +0000 (20:52 +0000)]
Merge "Do not apply GLOBAL_CFLAGS_NO_OVERRIDE to host *.S"

8 years agoReexport include dirs for whole static libs
Dan Willemsen [Fri, 4 Mar 2016 20:40:25 +0000 (12:40 -0800)]
Reexport include dirs for whole static libs

When a static library uses LOCAL_EXPORT_C_INCLUDE_DIRS, then is included
entirely in another library with LOCAL_WHOLE_STATIC_LIBRARIES, all the
symbols are reexported, so reexport the headers too.

Change-Id: I92cf17894fc991a5b5ecb59ca5e095e407c98de4

8 years agoMerge "releasetools: Fix one missing case for --oem_no_mount."
Tao Bao [Fri, 4 Mar 2016 19:30:01 +0000 (19:30 +0000)]
Merge "releasetools: Fix one missing case for --oem_no_mount."
am: 4e677900f7

* commit '4e677900f7b0017fcd926dc66d778e355e6a1bae':
  releasetools: Fix one missing case for --oem_no_mount.

8 years agoMerge "releasetools: Fix one missing case for --oem_no_mount."
Tao Bao [Fri, 4 Mar 2016 19:20:15 +0000 (19:20 +0000)]
Merge "releasetools: Fix one missing case for --oem_no_mount."

8 years agoMerge "Speed up lunch/tapas/etc. shell utility functions."
Ying Wang [Fri, 4 Mar 2016 19:06:53 +0000 (19:06 +0000)]
Merge "Speed up lunch/tapas/etc. shell utility functions."
am: d3c08f8b76

* commit 'd3c08f8b763c1d8f865896cf7d03d1794bdd14fe':
  Speed up lunch/tapas/etc. shell utility functions.

8 years agoMerge "Speed up lunch/tapas/etc. shell utility functions."
Ying Wang [Fri, 4 Mar 2016 19:03:56 +0000 (19:03 +0000)]
Merge "Speed up lunch/tapas/etc. shell utility functions."

8 years agoSpeed up lunch/tapas/etc. shell utility functions.
Ying Wang [Fri, 4 Mar 2016 04:57:21 +0000 (20:57 -0800)]
Speed up lunch/tapas/etc. shell utility functions.

1. Combined ~10 calls to the make build system to only one.
   We added a phony target "dump-many-vars" to the build system to dump
   "<var>=<value>" pairs. We then store the pairs as shell variables.
   With this cache get_build_var/get_abs_build_var can just return
   the shell variables instead of querying the build system.
2. Prune .git when we search for AndroidProduct.mks.

In internal source tree lunch time was reduced from ~15s to ~1.5s.

Bug: 27429759
Change-Id: I24e88598f6fab598ef26518885fd5e86e71a772d

8 years agoMerge "Align up java-lib-files and java-lib-deps."
Ying Wang [Fri, 4 Mar 2016 18:54:25 +0000 (18:54 +0000)]
Merge "Align up java-lib-files and java-lib-deps."
am: 58b8c86f84

* commit '58b8c86f84ad0bf8fb3bb7dfc259fd1e3ce0dae1':
  Align up java-lib-files and java-lib-deps.

8 years agoMerge "Align up java-lib-files and java-lib-deps."
Ying Wang [Fri, 4 Mar 2016 18:40:05 +0000 (18:40 +0000)]
Merge "Align up java-lib-files and java-lib-deps."

8 years agoAlign up java-lib-files and java-lib-deps.
Ying Wang [Thu, 3 Mar 2016 01:25:01 +0000 (17:25 -0800)]
Align up java-lib-files and java-lib-deps.

- For host Java libraries, java-lib-files should return javalib.jar.
- Host dalvik Java libraries are special: factor out
  host-dex-java-lib-files.
- Be explict that jack-lib-deps equals jack-lib-files.

Bug: 27451686
Change-Id: I9235384354e119ef7ebbf29b7e525d1ceea242e0
(cherry-pick from commit 063d0455e0f3a14f2577a26715f82e0bf3e79ee9)

8 years agoreleasetools: Fix one missing case for --oem_no_mount.
Tao Bao [Fri, 4 Mar 2016 17:45:03 +0000 (09:45 -0800)]
releasetools: Fix one missing case for --oem_no_mount.

The CL in [1] added support for --oem_no_mount. It missed one place that
guards the OEM mounting.

[1] commit 8608cde944d64dece63e8c770deb78c1d092c719

Change-Id: I6ecaa94cd0866e0fd4fc88cb0aa3ebf55cde2968

8 years agoMerge "Add JarJar support to BUILD_HOST_JAVA_LIBRARY"
Neil Fuller [Fri, 4 Mar 2016 13:09:22 +0000 (13:09 +0000)]
Merge "Add JarJar support to BUILD_HOST_JAVA_LIBRARY"
am: b97ce3bb61

* commit 'b97ce3bb613c1ea18c9aea42e829ac34039b7679':
  Add JarJar support to BUILD_HOST_JAVA_LIBRARY

8 years agoMerge "Add JarJar support to BUILD_HOST_JAVA_LIBRARY"
Neil Fuller [Fri, 4 Mar 2016 12:58:44 +0000 (12:58 +0000)]
Merge "Add JarJar support to BUILD_HOST_JAVA_LIBRARY"

8 years agoAdd JarJar support to BUILD_HOST_JAVA_LIBRARY
Neil Fuller [Wed, 2 Mar 2016 11:19:41 +0000 (11:19 +0000)]
Add JarJar support to BUILD_HOST_JAVA_LIBRARY

This will allow us to convert icu4j-icudata / icu4j-icutzdata
targets to "host" targets rather than "target" targets.
Right now they are forcing Jack off just so they can use
javac + jarjar (even though the resulting file is used on
host).

Bug: 27218410
(cherry picked from commit 30b21ad579fab9669ec00845bfa092e4318eed10)

Change-Id: I4f16896606bcfdd00164078eeb142d05b29bb832

8 years agoDo not apply GLOBAL_CFLAGS_NO_OVERRIDE to host *.S
Dan Willemsen [Fri, 4 Mar 2016 01:37:50 +0000 (17:37 -0800)]
Do not apply GLOBAL_CFLAGS_NO_OVERRIDE to host *.S

Target assembly files do not get these cflags, align the host
definitions to do the same.

Change-Id: Idadfa1f367c3ebea44460c5798225a85dd319371

8 years agoMerge "Enable LOCAL_POST_LINK_CMD for non-static executables."
Yabin Cui [Thu, 3 Mar 2016 19:02:56 +0000 (19:02 +0000)]
Merge "Enable LOCAL_POST_LINK_CMD for non-static executables."
am: 1f310530fc

* commit '1f310530fcd3c15b0d5d2b067d1ad320bc4faef2':
  Enable LOCAL_POST_LINK_CMD for non-static executables.

8 years agoMerge "Enable LOCAL_POST_LINK_CMD for non-static executables."
Yabin Cui [Thu, 3 Mar 2016 18:59:38 +0000 (18:59 +0000)]
Merge "Enable LOCAL_POST_LINK_CMD for non-static executables."

8 years agoEnable LOCAL_POST_LINK_CMD for non-static executables.
Yabin Cui [Wed, 2 Mar 2016 22:03:41 +0000 (14:03 -0800)]
Enable LOCAL_POST_LINK_CMD for non-static executables.

It is needed to insert testdata section into simpleperf cts test.

Bug: 27387280
Change-Id: I58cea106d135f535626d8624a016bd2aaceeb8ea

8 years agoGet gtest includes from the exported headers.
Dan Albert [Wed, 2 Mar 2016 21:05:46 +0000 (13:05 -0800)]
Get gtest includes from the exported headers.

Change-Id: I47db781a36318664fabff8a5e75031c6bee674e4

8 years agoMerge "Clean generated source dir if .proto/.rs is gonee."
Ying Wang [Wed, 2 Mar 2016 19:21:23 +0000 (19:21 +0000)]
Merge "Clean generated source dir if .proto/.rs is gonee."
am: 591fa1284a

* commit '591fa1284aa29ec8b2ff8917ce86f81c5b14ad0a':
  Clean generated source dir if .proto/.rs is gonee.

8 years agoMerge "Support arch specific variants of LOCAL_STRIP_MODULE/LOCAL_PACK_MODULE_RELOCAT...
Ying Wang [Wed, 2 Mar 2016 19:21:12 +0000 (19:21 +0000)]
Merge "Support arch specific variants of LOCAL_STRIP_MODULE/LOCAL_PACK_MODULE_RELOCATIONS"
am: de9e5d40ef

* commit 'de9e5d40ef8d9433ad22bb41fa428c7cec5e1549':
  Support arch specific variants of LOCAL_STRIP_MODULE/LOCAL_PACK_MODULE_RELOCATIONS

8 years agoMerge "Clean generated source dir if .proto/.rs is gonee."
Ying Wang [Wed, 2 Mar 2016 19:01:28 +0000 (19:01 +0000)]
Merge "Clean generated source dir if .proto/.rs is gonee."

8 years agoMerge "Support arch specific variants of LOCAL_STRIP_MODULE/LOCAL_PACK_MODULE_RELOCAT...
Ying Wang [Wed, 2 Mar 2016 19:01:24 +0000 (19:01 +0000)]
Merge "Support arch specific variants of LOCAL_STRIP_MODULE/LOCAL_PACK_MODULE_RELOCATIONS"

8 years agoClean generated source dir if .proto/.rs is gonee.
Ying Wang [Wed, 2 Mar 2016 06:05:25 +0000 (22:05 -0800)]
Clean generated source dir if .proto/.rs is gonee.

Similar to how we clean the generated source dir if .aidl becomes
obsolete.

Bug: 26688474
Change-Id: I66c5b6d6513259b5f4f4bac84f384f4bf953d82a
(cherry-pick from commit d5ffec938344defd437d8e315d6a3376b1100a5a)

8 years agoSupport arch specific variants of LOCAL_STRIP_MODULE/LOCAL_PACK_MODULE_RELOCATIONS
Ying Wang [Wed, 2 Mar 2016 04:14:52 +0000 (20:14 -0800)]
Support arch specific variants of LOCAL_STRIP_MODULE/LOCAL_PACK_MODULE_RELOCATIONS

So that we can disable only one in multilib modules.

Bug: 27442756
Change-Id: I4ca379fac997f9165c47cb93d34bf1f483f5a241
(cherry-pick from commit b6eb8ddbde11de0bc59cfedf7adb91a83c27d279)

8 years agoMerge "Ensure prebuilt executables are executable"
Dan Willemsen [Wed, 2 Mar 2016 18:25:58 +0000 (18:25 +0000)]
Merge "Ensure prebuilt executables are executable"
am: c92dc59c86

* commit 'c92dc59c86f09526735625c605b8e7ded1070e90':
  Ensure prebuilt executables are executable

8 years agoMerge "Ensure prebuilt executables are executable"
Dan Willemsen [Wed, 2 Mar 2016 18:12:06 +0000 (18:12 +0000)]
Merge "Ensure prebuilt executables are executable"

8 years agoMerge "Use Jack to check build"
Yohann Roussel [Wed, 2 Mar 2016 09:04:20 +0000 (09:04 +0000)]
Merge "Use Jack to check build"
am: 6a9d0f9718

* commit '6a9d0f9718f127475d702ae6831a2bec3be976b6':
  Use Jack to check build

8 years agoMerge "Use Jack to check build"
Yohann Roussel [Wed, 2 Mar 2016 08:46:24 +0000 (08:46 +0000)]
Merge "Use Jack to check build"

8 years agoEnsure prebuilt executables are executable
Dan Willemsen [Wed, 2 Mar 2016 06:04:57 +0000 (22:04 -0800)]
Ensure prebuilt executables are executable

Use 'chmod +x' to make sure that they're executable, even if the source
file is not.

Change-Id: Id155f6b4ff188f5c909fd6237fd64183af264f79

8 years agoTell soong about MALLOC_SVELTE
Dan Willemsen [Tue, 1 Mar 2016 23:21:15 +0000 (15:21 -0800)]
Tell soong about MALLOC_SVELTE

Change-Id: I50ce6c0767db8963a7a633bdb349db1c96427cd8

8 years agoMerge changes I12810c1b,I62287a80,Ied96fdc3
Dan Willemsen [Tue, 1 Mar 2016 23:19:33 +0000 (23:19 +0000)]
Merge changes I12810c1b,I62287a80,Ied96fdc3
am: a65b01fc09

* commit 'a65b01fc09b47c83e59dc4757c76eafba1e15cbc':
  Remove LOCAL_ACP_UNAVAILABLE
  Remove unused dependencies on $(ACP)
  Replace some uses of acp with cp

8 years agoMerge changes I12810c1b,I62287a80,Ied96fdc3
Dan Willemsen [Tue, 1 Mar 2016 23:18:27 +0000 (23:18 +0000)]
Merge changes I12810c1b,I62287a80,Ied96fdc3

* changes:
  Remove LOCAL_ACP_UNAVAILABLE
  Remove unused dependencies on $(ACP)
  Replace some uses of acp with cp

8 years agoMerge "Adding a brillo_tests task."
Ari Hausman-Cohen [Tue, 1 Mar 2016 22:45:24 +0000 (22:45 +0000)]
Merge "Adding a brillo_tests task."
am: 3bbaa8a8ff

* commit '3bbaa8a8ffe18a2afc3d9d2ee36dfcf74775aba8':
  Adding a brillo_tests task.

8 years agoMerge "Adding a brillo_tests task."
Ari Hausman-Cohen [Tue, 1 Mar 2016 22:38:07 +0000 (22:38 +0000)]
Merge "Adding a brillo_tests task."

8 years agoRemove LOCAL_ACP_UNAVAILABLE
Dan Willemsen [Mon, 29 Feb 2016 21:20:29 +0000 (13:20 -0800)]
Remove LOCAL_ACP_UNAVAILABLE

Now that copy-file-to-target doesn't use acp, nothing in the acp build
path uses acp, so we don't need to special case it to prevent loops.

Change-Id: I12810c1b064d0c03135a80077a76bc4c9cc18b24

8 years agoRemove unused dependencies on $(ACP)
Dan Willemsen [Tue, 1 Mar 2016 01:52:39 +0000 (17:52 -0800)]
Remove unused dependencies on $(ACP)

Most of these are calling to copy-file-to-target or similar, which no
longer use $(ACP).

Change-Id: I62287a80c577c34df587b74e70055c2f56050ce7

8 years agoReplace some uses of acp with cp
Dan Willemsen [Mon, 29 Feb 2016 20:45:18 +0000 (12:45 -0800)]
Replace some uses of acp with cp

ACP was originally created to overcome differences with cp between
Linux, Darwin, and Windows. We've since dropped Windows as a build host,
and don't use features like '-u' anymore.

For most of our current usecases, 'acp' is identical to 'cp' except that
it splits 'cp -p' into 'acp -p' for mode and ownership, and 'acp -t' for
timestamps. On Linux, this could be specified using
'--preserve=mode,ownership', but Darwin doesn't have this.

Since we're removing the destination file before copying, 'cp' already
preserves the mode (modulated by the umask). So the only extra thing
that gets preserved with 'acp -p' is ownership, which we should not care
about in the build system. (In many cases we shouldn't be preserving
mode either, so that readonly source trees can actually be marked
readonly, but that will be a future change)

Change-Id: Ied96fdc303ac5c774347c07363daec8b6dfb22e4

8 years agoMerge "Remove unused config variables"
Dan Willemsen [Tue, 1 Mar 2016 18:50:46 +0000 (18:50 +0000)]
Merge "Remove unused config variables"
am: 1dde47d0b6

* commit '1dde47d0b6796c3f9c1ec2d41c6c2597f9f13242':
  Remove unused config variables

8 years agoMerge "Remove unused config variables"
Dan Willemsen [Tue, 1 Mar 2016 18:49:37 +0000 (18:49 +0000)]
Merge "Remove unused config variables"

8 years agoMerge "Remove destination before copying file"
Dan Willemsen [Tue, 1 Mar 2016 18:21:17 +0000 (18:21 +0000)]
Merge "Remove destination before copying file"
am: 469665ded5

* commit '469665ded53d758a6cb5b5462e1219efe4135108':
  Remove destination before copying file

8 years agoMerge "Remove destination before copying file"
Dan Willemsen [Tue, 1 Mar 2016 18:20:06 +0000 (18:20 +0000)]
Merge "Remove destination before copying file"

8 years agoUse Jack to check build
Yohann Roussel [Tue, 18 Aug 2015 17:18:18 +0000 (19:18 +0200)]
Use Jack to check build

Run jack with no outputs as a quick check for compilation errors and use
a timestamp to store that check was made.

Bug: 19069325

(cherry picked from commit 43084d9f49a994a7eaebd3c94758d0ebf4c74b6e)

Change-Id: I9b84b503b28cfdfa245f91da0061ee3a79386b28

8 years agoRemove unused config variables
Dan Willemsen [Tue, 1 Mar 2016 09:14:03 +0000 (01:14 -0800)]
Remove unused config variables

These either don't exist or are not used.

Change-Id: I219e4691337223357797fae47ce112df8428bdfa

8 years agoMerge "Remove special cases in installclean"
Dan Willemsen [Tue, 1 Mar 2016 07:06:44 +0000 (07:06 +0000)]
Merge "Remove special cases in installclean"
am: fc7c3d33b8

* commit 'fc7c3d33b8b32042f8c12687fd269270b4e8ec90':
  Remove special cases in installclean

8 years agoMerge "Remove special cases in installclean"
Dan Willemsen [Tue, 1 Mar 2016 07:04:40 +0000 (07:04 +0000)]
Merge "Remove special cases in installclean"

8 years agoRemove destination before copying file
Dan Willemsen [Mon, 29 Feb 2016 20:45:18 +0000 (12:45 -0800)]
Remove destination before copying file

If there's a symlink as the destination to one of these macros,
currently we'll write to the destination of that symlink instead of
overwriting the symlink. We've run into this a few times when a module
is added to replace a symlink that used to exist via
LOCAL_POST_INSTALL_CMD. These have required manual discovery, and
additions to CleanSpec.mk files:
http://android-review.googlesource.com/143334

Use `rm -f` for single-file targets to remove the destination before
copying. On Linux, `cp --remove-destination` can work, but is not
supported by Darwin or acp.

There may still be problems with dependencies when symlinks are
involved, since ninja will use the destination of the symlink to check
whether it is up to date. But at least with this change, if any
dependency gets regenerated, we'll properly reset the file.

Change-Id: I6d3ac0bd9ced5e21a0ff9dad0eaff012a7bc9c75

8 years agoMerge "sandybridge setup: no AES_NI, AVX, MOVBE"
Olof Johansson [Mon, 29 Feb 2016 23:27:59 +0000 (23:27 +0000)]
Merge "sandybridge setup: no AES_NI, AVX, MOVBE"
am: b044f082e6

* commit 'b044f082e62dd8ac3d2a08b209c95842fb30838e':
  sandybridge setup: no AES_NI, AVX, MOVBE

8 years agoMerge "sandybridge setup: no AES_NI, AVX, MOVBE"
Olof Johansson [Mon, 29 Feb 2016 23:27:04 +0000 (23:27 +0000)]
Merge "sandybridge setup: no AES_NI, AVX, MOVBE"

8 years agoRemove special cases in installclean
Dan Willemsen [Mon, 29 Feb 2016 23:15:16 +0000 (15:15 -0800)]
Remove special cases in installclean

When switch build types or products, it's no longer necessary to special
case these projects that change their command line based on the build
type or product. Ninja keeps track of the command line last used to
create a file, and will mark it as dirty if the new command line is
different.

Change-Id: I905ff9599eae2952bddc05e7328f77f0849be20a

8 years agoMerge "Remove USE_NINJA=false"
Dan Willemsen [Mon, 29 Feb 2016 22:17:29 +0000 (22:17 +0000)]
Merge "Remove USE_NINJA=false"
am: 3bfc095f53

* commit '3bfc095f5373ca1756923f8aacdebdadc8ebd4ea':
  Remove USE_NINJA=false

8 years agoMerge "Remove USE_NINJA=false"
Dan Willemsen [Mon, 29 Feb 2016 22:16:14 +0000 (22:16 +0000)]
Merge "Remove USE_NINJA=false"

8 years agoAdding a brillo_tests task.
Ari Hausman-Cohen [Mon, 29 Feb 2016 21:08:49 +0000 (13:08 -0800)]
Adding a brillo_tests task.

Places whitelisted brillo tests and the whitelist itself
in a zip when run.

BUG: 27385399
Change-Id: I93c2ea8cc521292a6de811bb47bc87a727edd21f
TEST: manual make dist brillo_tests, confirmed desired files were in zip.

8 years agoMerge "delete recovery policy on changing build types"
Nick Kralevich [Mon, 29 Feb 2016 16:46:08 +0000 (16:46 +0000)]
Merge "delete recovery policy on changing build types"
am: 1888ea5fef

* commit '1888ea5fef5f41ec3298bfd67f14b06e6dfb6f9c':
  delete recovery policy on changing build types

8 years agoMerge "delete recovery policy on changing build types"
Nick Kralevich [Mon, 29 Feb 2016 16:44:37 +0000 (16:44 +0000)]
Merge "delete recovery policy on changing build types"

8 years agoMerge "Check LEGACY_USE_JAVA7 before using 1.8."
Nicolas Geoffray [Mon, 29 Feb 2016 12:29:31 +0000 (12:29 +0000)]
Merge "Check LEGACY_USE_JAVA7 before using 1.8."
am: 239783a7ff

* commit '239783a7ff9691ec92034f0268eeebbe75e906e3':
  Check LEGACY_USE_JAVA7 before using 1.8.

8 years agoMerge "Check LEGACY_USE_JAVA7 before using 1.8."
Nicolas Geoffray [Mon, 29 Feb 2016 12:27:58 +0000 (12:27 +0000)]
Merge "Check LEGACY_USE_JAVA7 before using 1.8."

8 years agoCheck LEGACY_USE_JAVA7 before using 1.8.
Nicolas Geoffray [Mon, 29 Feb 2016 12:07:00 +0000 (12:07 +0000)]
Check LEGACY_USE_JAVA7 before using 1.8.

Fixes current bots not updated to Java8 yet.

Change-Id: I61f5a3f0de6ca0ee9eca64f0ee08454f93e59704

8 years agoMerge "Link everything in libpthread.a to ckati"
Shinichiro Hamaji [Mon, 29 Feb 2016 11:05:46 +0000 (11:05 +0000)]
Merge "Link everything in libpthread.a to ckati"
am: a9b464770b

* commit 'a9b464770bf2a2a2cff279eb6042477786798d24':
  Link everything in libpthread.a to ckati

8 years agoMerge "Link everything in libpthread.a to ckati"
Shinichiro Hamaji [Mon, 29 Feb 2016 11:04:36 +0000 (11:04 +0000)]
Merge "Link everything in libpthread.a to ckati"

8 years agoMerge "Change the default for LOCAL_JAVA_LANGUAGE_VERSION from 1.7 to 1.8"
Neil Fuller [Mon, 29 Feb 2016 10:59:44 +0000 (10:59 +0000)]
Merge "Change the default for LOCAL_JAVA_LANGUAGE_VERSION from 1.7 to 1.8"
am: 008ebe4f04

* commit '008ebe4f04e41ef500bdbcab1b58cadcaec54cb5':
  Change the default for LOCAL_JAVA_LANGUAGE_VERSION from 1.7 to 1.8

8 years agoMerge "Change the default for LOCAL_JAVA_LANGUAGE_VERSION from 1.7 to 1.8"
Neil Fuller [Mon, 29 Feb 2016 10:58:09 +0000 (10:58 +0000)]
Merge "Change the default for LOCAL_JAVA_LANGUAGE_VERSION from 1.7 to 1.8"

8 years agodelete recovery policy on changing build types
Nick Kralevich [Sat, 27 Feb 2016 18:41:41 +0000 (10:41 -0800)]
delete recovery policy on changing build types

When the build type changes (for example, from "shamu-userdebug"
to "shamu-user"), the build system doesn't delete all files
and start over. Rather, build artifacts from the old build type
are reused for the new build type.

This is problematic for the recovery SELinux policy, which differs
between build types. Reusing a userdebug policy on a user build
is inappropriate and could lead to security bugs.

Force the deletion of the recovery SELinux policy when changing
build types, so it can be properly regenerated. This is consistent
with how we treat the normal SELinux policy (see commit
a8b3d54101eccb9950651103c199edf0ce2520f7).

Change-Id: I4ebafe3712dc121644828f6538865061aad58cc0

8 years agoRemove USE_NINJA=false
Dan Willemsen [Wed, 6 Jan 2016 22:28:36 +0000 (14:28 -0800)]
Remove USE_NINJA=false

And everything special-cased on that. Add a warning if USE_NINJA is
set to let users know that it no longer changes anything.

Change-Id: Ib8739151fe26ea6bf8f76b7ac2b8f4097dab0b47

8 years agoMerge "Make multiple rules to generate a file an error"
Colin Cross [Sat, 27 Feb 2016 05:14:02 +0000 (05:14 +0000)]
Merge "Make multiple rules to generate a file an error"
am: 5e2e53e421

* commit '5e2e53e4216300aa841d65f95dd607be58983a14':
  Make multiple rules to generate a file an error

8 years agoMerge "Make multiple rules to generate a file an error"
Dan Willemsen [Sat, 27 Feb 2016 05:12:28 +0000 (05:12 +0000)]
Merge "Make multiple rules to generate a file an error"

8 years agoMerge "releasetools: Add --oem_no_mount option."
Tao Bao [Sat, 27 Feb 2016 00:12:08 +0000 (00:12 +0000)]
Merge "releasetools: Add --oem_no_mount option."
am: 1e0367410d

* commit '1e0367410d3c79fcd7e64a584029a3c756757c80':
  releasetools: Add --oem_no_mount option.

8 years agoMerge "releasetools: Add --oem_no_mount option."
Tao Bao [Sat, 27 Feb 2016 00:08:39 +0000 (00:08 +0000)]
Merge "releasetools: Add --oem_no_mount option."

8 years agoreleasetools: Add --oem_no_mount option.
Tao Bao [Fri, 26 Feb 2016 03:49:55 +0000 (19:49 -0800)]
releasetools: Add --oem_no_mount option.

We may have devices with OEM-specific properties but without an OEM
partition (e.g. the properties might be set by init based on hardware
SKUs). For such devices, we supply --oem_no_mount to skip mounting the
OEM partition in the updater-script. The option is only meaningful when
-o (--oem_settings) is specified.

Bug: 27359929
Change-Id: Ic08396e478a82be4188e980e704b33b4f704a8d7