History log of /build/core/main.mk
Revision Date Author Comments
7859c8c4a89793fa31206d90ec699edef947b376 24-Oct-2014 Ying Wang <wangying@google.com> Store symbols.zip in apps_only build.

Bug: 18103055
Change-Id: I0eb335e944138b0edc3050d19c076891f499a07c
2abc44c2fe30760aac0051a3a2f43ad0baeae05e 03-Oct-2014 Andreas Gampe <agampe@google.com> Build: Do not set interpreted mode for SDK build

In case of emulator images created for an sdk build (sdk, win_sdk,
sdk_addon), do not set dex2oat to compile apps interpret-only.

Bug: 17796919

Change-Id: I6961aa20fd3b6ea164a1f55321387e84c8983550
28be9d8884861f70fbd39b3768a6d4b34009deed 19-Aug-2014 Calin Juravle <calin@google.com> Push ISA features into system properties

We need to know instruction set featues at runtime as well so that the
apps get compiled on target with the proper features. The properties are
read by installd and passed to dex2oat.

Bug: 16716262
Change-Id: Ia73f2055f696880d45a63a0d6e0ee98d37a01113
cced082f5d8e6386815a5cfba125789e78c5e7ca 29-Jul-2014 Brian Carlstrom <bdc@google.com> Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [build]

This will allow us to conditionally change the compiler-filter based on other properties.

Bug: 15165413

(cherry picked from commit 4d30e5e2604a77df2acd41e36cbca54cd42cbf0a)

Change-Id: I84e8038c6536291e6775f39b33556b8169fdf292
7e73eb3f7cd8e6010df2c62c4d380cdc34ba3edc 24-Jun-2014 Ying Wang <wangying@google.com> Resolve :32 to 32-bit variant only if the variant exists.

Otherwise we just use the original module name.
With this change :32 in 32-bit product configuration will be installed
as expected.

Change-Id: Ibbbf3e8807a17b47f4259c00000a63336bc02f92
ae2986e51a52833deac6c03f55924e3271e3586d 18-Jun-2014 Colin Cross <ccross@android.com> build: delete 64-bit blacklist

The last projects in the blacklist have been fixed, delete the code.

Change-Id: I0fe7809bd18e32516374c9cb2a6f71df1d3c62ee
ff3a9045229b0613552e45de2a31a7ac8debb597 11-Jun-2014 Ying Wang <wangying@google.com> Check existence of both 64-bit and 32-bit module variants.

- Do the module name resolving for both host and target modules.
- Check existence of both 64-bit and 32-bit module variants.

Change-Id: I8ada0e734efac6c8dafade8708fff9797b19a78d
e1b867dde77d59bb35f366c2e3d65fe37c696880 10-Jun-2014 Ying Wang <wangying@google.com> Fix loophole in module expansion.

Previously we only expanded product_MODULES with LOCAL_REQUIRED_MODULES,
but not modules introduced by LOCAL_SHARED_LIBRARIES; Later we did a further
shared libary expansion in vendor_module_check.mk.
It couldn't track C in the following case:
A : B, by LOCAL_SHARED_LIBRARIES; B : C, by LOCAL_REQUIRED_MODULES.

With this change, we transformed the LOCAL_SHARED_LIBRARIES dependencies
into LOCAL_REQUIRED_MODULES dependencies before doing the required
module expansion and the loophole is closed.
All module names are now expanded to product_MODULES now and it makes
vendor_module_check.mk simpler.

Change-Id: I8835a478d2ce0ce10601a8449f446f07b01c2b7f
3f5ff08dc5cd3b3615d35a2bf1e6f89fefcc6657 29-May-2014 Brian Carlstrom <bdc@google.com> Only enable WITH_DEXPREOPT by default for libdvm.so

Bug: 14298175

(cherry picked from commit 9f8e214a919097284a88cb19a1b85ceafc202a67)

Change-Id: I96ba4e198b7bc1b7d9a502c432590f41c87d05c4
9f8e214a919097284a88cb19a1b85ceafc202a67 29-May-2014 Brian Carlstrom <bdc@google.com> Only enable WITH_DEXPREOPT by default for libdvm.so

Bug: 14298175
Change-Id: I42255a61667f88924a779fff1812134044c7b6b2
9734252ccf26fd3067d68719d8476b48acc07a2f 22-May-2014 Ying Wang <wangying@google.com> Don't build tests in PDK build.

Change-Id: I8994be0938a3ce87a097669c28b232fd04b77a36
c2c368fb76ba6cd3593d17922f53079e0b630a03 21-May-2014 Ying Wang <wangying@google.com> check build tests modules in eng and userdebug builds

To catch more build breakage, check build tests modules in eng and
userdebug builds.

Change-Id: Ic3b34dcd199e50e555c33eb686a501acef59a8c2
966c1e0cae6a59f15264d3b542af08e21e2dc06c 20-May-2014 Ying Wang <wangying@google.com> Add HOST_PREFER_32_BIT to support 32-bit-by-default multilib build

We already support pure 32-bit and 64-bit-by-default multilib build.
With HOST_PREFER_32_BIT we can build 32-bit-by-default multilib build.
This will be lest disruptive during the period we transition to
64-bit-by-default.

Bug: 13751317
Change-Id: I0d56ce4abbe4afeaacfd70d709f6a349791c0722
6feb6d5607ce86a446645564212043964628f540 17-Apr-2014 Ying Wang <wangying@google.com> Support host multilib build

This change basically ported our target multilib to the host side.
It supports 2 host build modes: x86 and x86_64 multilib build.
For now you need to set "BUILD_HOST_64bit=true" to switch to x86_64
multilib build. Later we'll default to x86_64 build and have a flag
to force 32-bit only build, which may be needed by SDK build.

In host module definition, like in target ones, you can use the
following
LOCAL variables to set up multilib configuration:
LOCAL_MULTILIB: can be "both", "first", "32" or "64".
It also supports the same set of arch or 32-vs-64 specific LOCAL
variables.
By default, it builds only for the first arch.

To keep path compatibility, in x86_64 build files are still output to
out/host/linux-x86; Both 32-bit and 64-bit executables are in
out/host/linux-86/bin;
In x86_64 build 32-bit shared libraries are installed to
out/host/linux-x86/lib32
and 64-bit shared libraries are installed to out/host/linux-x86/lib;
32-bit object files are output to out/host/linux-x86/obj32 and 64-bit
object files
are output to out/host/linux-x86/obj.

Bug: 13751317
Change-Id: I6044f83b7db369a33e05209e8c588eb6dc83409f
f6e2694dd24d54a93d3c9adb633e0776cedb1049 09-May-2014 David 'Digit' Turner <digit@google.com> Disable emulator from platform builds.

Now that emulator prebuilts are available under prebuilts/android-emulator/,
disable building the emulator from source in all platform builds, except
if one defines BUILD_EMULATOR to 'true' in its environment.

NOTE: This patch should be applied after this one to avoid issues
with the GPU emulation libraries:
https://android-review.googlesource.com/93980

Change-Id: I53b2ada9ca0c2e159dccee7cdca7f55f6b0d1d42
07b2055d3e4b2db2e0cdddc13f8f992d81c06ffb 08-May-2014 Ying Wang <wangying@google.com> Target "tests" now only builds the modules tagged as "tests"

But not install them.
This prevents "make tests" polluting system.img or userdata.img.
We have new mechanism to build and package up modules into zip file in
build/core/tasks/tools.
Change package-modules.mk to install DATA/ instead of data/ in the
zip file; Better handle of module name conflicting.

Bug: 13585955
Change-Id: I7586a8c7995b984c9ead0ba2fa84dd5d2dd20bd1
571fee8985746659c4d39ef613d659e6124c66af 08-May-2014 Ying Wang <wangying@google.com> Target "tests" now only builds the modules tagged as "tests"

But not install them.
This prevents "make tests" polluting system.img or userdata.img.
We have new mechanism to build and package up modules into zip file in
build/core/tasks/tools.
Change package-modules.mk to install DATA/ instead of data/ in the
zip file; Better handle of module name conflicting.

Bug: 13585955
Change-Id: I7586a8c7995b984c9ead0ba2fa84dd5d2dd20bd1
fceb115bd6601a64c0510cba5ff2041d060cf610 11-Feb-2014 Brian Carlstrom <bdc@google.com> Add dalvik.vm.dex2oat-flags for eng build

Bug: 12869646
Change-Id: I794320267c846225931f12075c7f32d7848081e9
4709d7c3a5239d9d073a7d536385596ea18981a9 15-Apr-2014 Ying Wang <wangying@google.com> Allow to build target-files.zip in sdk build.

and put the target-files.zip on the build server.

Bug: 13763122
Change-Id: I71ab6aa40666fdb24ec0da0fbfc7b73753d4f0c7
38568b424d3139c6d590f9b3d7961e16b8795dc2 25-Mar-2014 Alan Viverette <alanv@google.com> Preserve symlinked OUT_DIR by only clearing contents

Change-Id: I824ecd46d7fd31885024ff20cf5cbd52e2cbb713
c84889b80ae40dec85ac4810fc500db70cbc82b2 01-Apr-2014 Narayan Kamath <narayan@google.com> Build with java7 by default.

All introduce a flag LEGACY_USE_JAVA6 to force java6 builds.
This is an unsupported configuration, and provided temporarily
to iron out regressions and compare build output (if required.).

- Increment the version check sequence number.
- Move a more specific check (OpenJDK vs non OpenJDK) after
the more general version check.
- Update the link in the version check error message to the
"initializing" page instead of the "download" page. The latter
talks about repo, mainly.

bug: 8992787

Change-Id: I313e17b1911768d4f3bc318c4162c53dec6eaf0d

Conflicts:
core/main.mk
422fadcf79dee6846c341b856180314c04cce3ed 01-Apr-2014 Narayan Kamath <narayan@google.com> Build with java7 by default.

All introduce a flag LEGACY_USE_JAVA6 to force java6 builds.
This is an unsupported configuration, and provided temporarily
to iron out regressions and compare build output (if required.).

- Increment the version check sequence number.
- Move a more specific check (OpenJDK vs non OpenJDK) after
the more general version check.
- Update the link in the version check error message to the
"initializing" page instead of the "download" page. The latter
talks about repo, mainly.

bug: 8992787

Change-Id: I313e17b1911768d4f3bc318c4162c53dec6eaf0d
8a52b231d24c0fdfdf229ecb1706e78a1885c118 03-Apr-2014 Ying Wang <wangying@google.com> Unset _JAVA_OPTIONS before running "java -version".

Unfortunately the previous approach of grepping out java version before
"head -n 1" clash with the effort of running "java -version" only once.

Change-Id: Ic78719c3bf1a54a45342d74bbbfa8e83bbc1bce1
bee0ec41965cd2d12537d80896d1e25ca47c81d2 17-Feb-2014 Narayan Kamath <narayan@google.com> Add warning message for java6 builds.

The instruction URL has been amended and a few additional
details have been added.

(cherry picked from 8c06afdea3d3c422d653b40fd19d5e3d4be64af2)

Change-Id: Icaffc3b13ed881ac7e29f2021ed31eb1f877a5ab
8d45e51803c0ca5194b07e493cb231e3a52db2ca 14-Nov-2013 Ying Wang <wangying@google.com> Call "java[c] -version" only once

and print out the full output if error occurs.
Bug: 11672548

(cherry picked from 7b66d366bf5c469130f71d0870424fcd265e0301)

Change-Id: I8e2f2ffa2f28146405273b04667efe3c8d1c03ad
d5fb7826823fa3fb45f8f06c9c1a781dd60210f8 01-Apr-2014 Narayan Kamath <narayan@google.com> Bring main.mk in sync with master.

These lines were removed in aosp in commit e2d27887b
but a bad merge conflict resolution left them in master.

Subsequent changes on master started using these variables
so they're being brought back.

Change-Id: Ic8f3c295130c47eb0d66057880f9d4f70c89af94
bb406bf4c059fac41bd91038e7a2d2725068c057 01-Apr-2014 Peter Ammon <pca@google.com> Fix java version detection when _JAVA_OPTIONS is set.

_JAVA_OPTIONS is an environment variable that
can be used to affect the behavior of java and javac.
It is currently required to get Android to build on
some configurations, where the default Java heap size
is too small. Unfortunately, if _JAVA_OPTIONS is set,
both java and javac will output its value to the console
as the first line on every invocation, including trivial
ones like java -version. This will confuse main.mk’s
version detection, which only looks at the first line of
output. Tweak the version detection to run grep before
head, so that the _JAVA_OPTIONS line is filtered by the grep.

Change-Id: I69aee52b56d27711b7d3087ec6b3ebab07ffc3af
c6848b398d776ca2303d5a6c225c6339a89e67f7 20-Mar-2014 Ying Wang <wangying@google.com> Remove the redundant DISABLE_DEXPREOPT

To disable dexpreopt, use just:
WITH_DEXPREOPT=false

Change-Id: I5804f3774f8ec50eb16c5336776dbce0c28b16d9
8c06afdea3d3c422d653b40fd19d5e3d4be64af2 17-Feb-2014 Narayan Kamath <narayan@google.com> Add warning message for java6 builds.

Change-Id: If5a402e1412e5adb5340b101854e9fbb4c5d4ec8
9bdcdff615f4e21eca818768cc7549a3e2bb8830 24-Jan-2014 Colin Cross <ccross@android.com> HACK: add 64-bit directory blacklist

Change-Id: I431e8b220db81d51930dc0b3d95995df120c179a
48fbc42f93ea0913634f94d815a8937248317012 26-Feb-2014 Ying Wang <wangying@google.com> Conditionally include the 'samplecode' rules.

Not sure goal 'samplecode' is still used by anybody these days.

Change-Id: I808a021a6e4be6a97c4b5c256b94374c1b3dae47
43d524854acf54e7de065d71d649f047a3283210 25-Feb-2014 Tsu Chiang Chuang <tsu@google.com> add exception to be able to build emulator_tests in conjunction with the
sdk.

Change-Id: Ic4c63c756c78da97657e08faa5b4b6891b951b03
b1d75bd81d7585135eb7ce8d99d4d781925791dd 14-Feb-2014 Ying Wang <wangying@google.com> Make the module existence check nonfatal

Now we have sdk variants that may inherit the non-existent module names
from the device product.

Change-Id: Ibe96a33cde650fd79ae4731561dcb674203c3b91
940d68af5324d3241a65301e31cb12900b49ac96 14-Feb-2014 Ying Wang <wangying@google.com> Don't check the existence for the 64-bit modules for 32-bit SDK build.

Change-Id: I0d5d6ecc07332bef6854466fd98380eb12fc08fc
02e31d240a9044b54ee793902ad958894f84e7a1 24-Jan-2014 Colin Cross <ccross@android.com> HACK: add 64-bit directory blacklist

Change-Id: I431e8b220db81d51930dc0b3d95995df120c179a
d18e570fbaef9fdc6605ed75960641416a370a79 12-Feb-2014 Ying Wang <wangying@google.com> Clean up dangling module names

Those modules have disappeared from the source tree.

https://code.google.com/p/android/issues/detail?id=61210

Change-Id: Iab369d2f591f46eb86b9fccf2087515edf974662
14a6cbd9026659b30f63c31e112d6cce9b47a9d6 11-Feb-2014 Ying Wang <wangying@google.com> Refine module name resolving in multilib build

-- Added TARGET_PREFER_32_BIT, which sets LOCAL_32_BIT_ONLY for an
executable, if LOCAL_NO_2ND_ARCH is not true.

Name resolving in 64-bit multilib build:
-- Name resolving in PRODUCT_PACKAGES:
foo:32 resolves to foo_32;
foo:64 resolves to foo;
foo resolves to both foo and foo_32 (if foo_32 is defined).

-- Name resolving for LOCAL_REQUIRED_MODULES:
If a module is built for 2nd arch, its required module resolves to
32-bit variant, if it exits;
Otherwise for executable and shared library, a required module
resolves to the default 64-bit variant; for other module classes,
required module foo resolves to both foo and foo_32 (if foo_32 is
defined)

Bug: 12898862
Change-Id: I5fda1a77f58814097b10b5ad2743ee25adfaecc4
fc33037547495aa21b25216d360b27a7100e2a42 01-Feb-2014 Ying Wang <wangying@google.com> Dedup the targets and dependencies of required modules.

For whatever reason, two modules may have the same file as their
installed module. In that case circular dependency is created if the two
modules have requited-by relation.

Change-Id: I15ed271ca3f3c343e4662182ded5ccc63d6c42cc
3136010cddcfbb20bdbc6d74d33fcc06f535dd47 01-Feb-2014 Ying Wang <wangying@google.com> Dedup the targets and dependencies of required modules.

For whatever reason, two modules may have the same file as their
installed module. In that case circular dependency is created if the two
modules have requited-by relation.

Change-Id: I15ed271ca3f3c343e4662182ded5ccc63d6c42cc
4d2cc665eafb16ffe20b4ec8b2b2fc3a55f6f6ae 16-Jan-2014 Ying Wang <wangying@google.com> Set up rules to build shared libraries for TARGET_2ND_ARCH

The rules for the 2nd arch are set up in the second inclusion
of shared_library_internal.mk.
Intermediate fils of libfoo of the 2nd arch will be built into
$(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/SHARED_LIBRARIES/libfoo_intermediates/
and the built libfoo.so will be in
$(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/lib.

Bug: 11654773
Change-Id: I58bbe5a05a65f63bce6279131552f3792000716e
0cf57dc99f7040a96e8d3da646adace12bcb58c7 21-Jan-2014 Brian Carlstrom <bdc@google.com> Add missing paren in "java -version" check

Change-Id: Id66e795423e8d25b48ac996956748a93060ea5db
791fa6a9094dced42b4b292c163708838a8d059e 16-Jan-2014 Ying Wang <wangying@google.com> Set up rules to build shared libraries for TARGET_2ND_ARCH

The rules for the 2nd arch are set up in the second inclusion
of shared_library_internal.mk.
Intermediate fils of libfoo of the 2nd arch will be built into
$(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/SHARED_LIBRARIES/libfoo_intermediates/
and the built libfoo.so will be in
$(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/lib.

Bug: 11654773
Change-Id: I58bbe5a05a65f63bce6279131552f3792000716e
e2d27887bef08b9c3297e765d32397c1a8f7df87 05-Dec-2013 Narayan Kamath <narayan@google.com> A few more Java7 related clean ups.

- Separate SDK checking from version checking and
make messages clearer.
- Add explicit source & target versions for javac to
make things clearer.
- Rename flag from EXPERIMENTAL_USE_JAVA7_OPENJDK to
EXPERIMENTAL_USE_JAVA7.
- Allow Oracle JDK 1.7 to be used on Mac OS, since there's
no official OpenJDK support for that platform.

Change-Id: I454d2c917ed78f03ec7559a99659fefe7e7d50f3
ad6909913145ba3daeb037f0170b95f855f7d08f 21-Sep-2013 Ying Wang <wangying@google.com> Add experimental flag to support OpenJDK builds.

bug: 8992787

(cherry picked from commit d1dbe7f5a23bacdff086b4992e1d31a96da706c3)

Change-Id: Ie977d4f26ae8d3eee9d7b9cf2c0c270bee5b54b3
7b66d366bf5c469130f71d0870424fcd265e0301 14-Nov-2013 Ying Wang <wangying@google.com> Call "java[c] -version" only once

and print out the full output if error occurs.
Bug: 11672548

Change-Id: Iba217789f7ab69d73902a4dc82e8975b2f6a48fc
32bfd70333b72646909ccbcf50217b5a275912da 05-Nov-2013 Elliott Hughes <enh@google.com> Remove the hacks needed to support ash and mksh concurrently.

We no longer have ash, and we'd rather not have unnecessary symbolic links
on the system.

Change-Id: Icfb1a51f1baaf1861c203f6ed93843b094deb65d
d1dbe7f5a23bacdff086b4992e1d31a96da706c3 21-Sep-2013 Ying Wang <wangying@google.com> Add experimental flag to support OpenJDK builds.

bug: 8992787

Change-Id: Ice0fc7dea1d855914fdab9a01b1ac9c722031288
2b537262fe884c11d7d27d208896a0849e72bd73 16-Oct-2013 synergydev <synergye@codefi.re> core: support make 4.00

Make 4.00 is now out, and builds work fine with it.

Change-Id: I49e36d651a7997a52270badb0e8badd975f64e8f
3d48d9c36b2d2cd696d3ee2656939e77ca5ba950 27-Jun-2013 Ying Wang <wangying@google.com> Allow to run checkbuild in sdk build.

Bug: 9594464
Change-Id: Ia02e7d8fc157cdfe2e065ce9e42a3800457f89f6
(cherry picked from commit fcec57a1165dc78ca2630c017dd95bddce31e55a)
253555b5e3ce7119e25159a5c2a05289abb8869f 02-Oct-2013 Mike Lockwood <lockwood@google.com> "make dist" should not try to package apps for embedded builds

Change-Id: Icbe522737f7b8a44c8a458b32678fe0472b94dff
293ad10d252e9a076990400f1302e200e2badf53 07-Jun-2013 Ying Wang <wangying@google.com> Remove unnecessary dependencies between host and target modules.

With this change, modules introduced by LOCAL_REQUIRED_MODULES will be
split by host/target: target modules only depend on target modules and
host modules only depend on host modules.

Bug: 9303948
Change-Id: I4078a7983aa3c00e99534f3f170dfe4b66b12287
20ef354e8c3a1fc10515a469fcc615935e6fb7cb 09-Sep-2013 Ying Wang <wangying@google.com> Load the ONE_SHOT_MAKEFILE even in dont_bother mode

This makes "mmm <path> snod" work again.
Note that snod has dependency on the rest of the command line goals,
which is all_modules for ONE_SHOT_MAKEFILE,
so build race condition is avoided.

Change-Id: Ib0c0e622530cde773180a095e5ec4dde1149b8e5
39e08f2827584111f1cb2487ac7a1aae95df7ff0 09-Sep-2013 Ying Wang <wangying@google.com> Delete dead code.

frameworks/policies/base/PolicyConfig.mk does no longer exist.

Change-Id: I34d4820bc7c1e19ac84095f5f2caf6aefdfe1bd3
495f68402493de82606b8c06213bae5bb1156a8b 28-Aug-2013 Ying Wang <wangying@google.com> In apps_only build dist a module only if it has a BUILT file.

This allows you to specify a PHONY target in TARGET_BUILD_APPS.

Change-Id: Idd813cd0dbdb14c705fbd3187596d4c64b99d045
62c81f821f3675ea57485bfa6cb3320b7178759e 23-Aug-2013 Ying Wang <wangying@google.com> Collect NOTICE files for apps_only build.

In apps_only build (after running tapas or exporting TARGET_BUILD_APPS),
run "make notice_files" to collect and combine the NOTICE files of
modules that are needed by the apps.

Bug: 10445634
Change-Id: I6555bba1104e43b48c723c82143c46d444a75e80
ae9115a525260a0ca317eadd13f075def733a66d 23-Aug-2013 Ying Wang <wangying@google.com> Collect and store proguard obfuscation dictionary files.

Collect and store proguard obfuscation dictionary files.
Only do this for apps_only build for now.

Bug: 9407666
Change-Id: I51c78bf0f42f959dc920de230e60e0f71ed0d0ea
df8b48449a0a607249d05aa420e41d0b3470ed63 23-Aug-2013 Ying Wang <wangying@google.com> Revert "Collect and store proguard obfuscation dictionary files."

This reverts commit 41dbe1e535c1aea9a4c4cec6be637fe1b882220b.

Change-Id: I023594779128083b75a069fd860cd29dd7951ef5
41dbe1e535c1aea9a4c4cec6be637fe1b882220b 23-Aug-2013 Ying Wang <wangying@google.com> Collect and store proguard obfuscation dictionary files.

Collect and store proguard obfuscation dictionary files.
Only do this for apps_only build for now.

Bug: 9407666
Change-Id: I0324eed6bb236abb0d3725f8d2a0b6c5c31935fe
a7deb0857c4fc0799cd1ebb82ff79dcbe2745ec0 16-Aug-2013 Ying Wang <wangying@google.com> Add phony goal GET-INSTALL-PATH

It can be used as a goal of mm/mmm.
It prints out modules' install paths, which can be used by the runtest
utility.

Change-Id: If113e4c990b672acbacf723104583c0157d43c3b
ad7fd29b312bf588b2be3f799715f34ff8a6d46b 09-Aug-2013 Ying Wang <wangying@google.com> Don't bother going through the source tree

Don't bother going through the source tree in more circumstances:
all cleaning goals, helping goals, no-deps goals.

Bug: 10244578
Change-Id: Id53a249085c62838e4193962a85e0ac34f46954f
16b92edc386a4616b813af392ba54ad9e2c05ca7 07-Jun-2013 Ying Wang <wangying@google.com> Remove unnecessary dependencies between host and target modules.

With this change, modules introduced by LOCAL_REQUIRED_MODULES will be
split by host/target: target modules only depend on target modules and
host modules only depend on host modules.

Bug: 9303948
Change-Id: I4078a7983aa3c00e99534f3f170dfe4b66b12287
172f5f57460001b78e100cefa584d8e91738e48a 31-Jul-2013 Ying Wang <wangying@google.com> More verbose on what the build system is doing

Sometimes users get confused for long time of no message printed to the
screen.

Change-Id: I99d3b2954f3dcba47d5ee5dd9fd760578c0e0192
94de1eba0e87297421789b339c5f26bf3e48eeb1 26-Jul-2013 Ying Wang <wangying@google.com> Put a copy of the radio/bootloader files in the dist dir.

Bug: 10035750
Change-Id: I3b51e61ec737899d9264885a1e66c89a7a740d54
1390cac3cea58f1c5c738bf875b4de5ba4d68fa4 12-Jul-2013 JP Abgrall <jpa@google.com> core: don't hardcode "out" during findleaves.py invocations.

"out" can be $OUT_DIR

Bug: 7183057
Change-Id: I7b52d40de4398f481e47f6d6d719fb550d874f73
fcec57a1165dc78ca2630c017dd95bddce31e55a 27-Jun-2013 Ying Wang <wangying@google.com> Allow to run checkbuild in sdk build.

Bug: 9594464
Change-Id: Ia02e7d8fc157cdfe2e065ce9e42a3800457f89f6
1e1241ce3d4259bcc4a0039ed68fc5b3fc8069b5 13-Jun-2013 Ying Wang <wangying@google.com> Dist static Java library modules.

With this change, we can build and dist static jar files, as well as
apks.

Bug: 9386024
Change-Id: Iab4660d8dfd7a2d164714a2124445de298075901
d72db32f84dbb07b3932321fe9cc101a597b6206 07-Jun-2013 Ying Wang <wangying@google.com> Remove unnecessary dependencies between host and target modules.

With this change, modules introduced by LOCAL_REQUIRED_MODULES will be
split by host/target: target modules only depend on target modules and
host modules only depend on host modules.

Bug: 9303948
Change-Id: I4078a7983aa3c00e99534f3f170dfe4b66b12287
d6b1d61d84a95ba74bb3e4f9053014357ac363d1 16-Apr-2013 Ying Wang <wangying@google.com> Do vendor check on modules installed by LOCAL_SHARED_LIBRARIES

Since commit 6c86a1 we have split LOCAL_SHARED_LIBRARIES out of
LOCAL_REQUIRED_MODULES and the vendor check does no longer cover the
installed modules introduced by LOCAL_SHARED_LIBRARIES.
This change brings back the coverage.

Change-Id: Ie78692e48f173a3350792eb2fee8127ff9433caa
b036e955fcd9e5fd15ec37b208e112147641dd7a 12-Apr-2013 Ying Wang <wangying@google.com> Allow to set BUILD_EMULATOR outside the core build system.

For example, you can set it as enviromental variable, command line
makefile variable, or board config variable.

Change-Id: I5a4dbb70270cb4952109b5d96fbbf61eb2603502
a0febe5e6de24ffee5cd32944d5a1814cf312efb 20-Mar-2013 Ying Wang <wangying@google.com> Support to build vendor.img

Bug: 8341435
Change-Id: I2db7970936984d38aed35054e3f695d298f4e512
8a2b7707dd1bc95a69eed3c64415d1b68f2cb669 13-Mar-2013 Raphael Moll <ralf@android.com> Build SDK using prebuilts/devtools.

Cleans up some unused/renamed files:
- sdk_only_whitelist is better named windows_sdk_whitelist.
- a few product.mk dependencies should not be listed here
any more but in the sdk/product.mk instead (which they were.)

Change-Id: Ifad3049321c8ec4edd8b94b83e570eebba442e7d
512b9628b0cf6dada6188e942d1f4bd5df0308aa 08-Mar-2013 Ying Wang <wangying@google.com> Remove nonexisting module names.

Change-Id: I825de45f1b982e4aa391b11bf18ba90432272fa7
2e65cd5510b4284591905862e5dc1953100d8601 05-Sep-2012 Ying Wang <wangying@google.com> Don't install all host modules by default.

Instead we should explicitly set up the dependency, if the module will
be used in the build process; Use LOCAL_MODULE_TAGS with eng, debug or
tests if the module is for testing; or add to PRODUCT_PACKAGES if it's
required by a product.

Change-Id: Ic26319c26c1166bc1062dfbcfb4e006af185249a
534fcd766ecec602d9437d155066fc5253f1185a 02-Mar-2013 Ying Wang <wangying@google.com> Allow to call dist-for-goals multiple times for the same file

You can dist the same file for multiple goals in multiple calls to
dist-for-goals. The first call will establish the real copy rule, while
the rest call just establishes the goals' dependency on the dest file.
This enable uss to remove the bizarre $(if ..) enclosing the droid and
sdk dist while avoiding make's multiple rules warning.

Change-Id: I76475db76a9e6167e0e606dd582b54e80dfcdd22
304f5194fdfd999a5e8bceef1ff260958b041d52 23-Feb-2013 Tim Roes <tim.roes88@googlemail.com> Fixed error message for using OpenJDK.

Output a meaningful error message, when OpenJDK is detected
instead of giving the "wrong java version" output.
That output confused several users (from experiences in IRC)
since it gives you an output like "You are using java
version 1.6.0, right version would be Java SE 1.6".

Change-Id: I31ceeb03f1f98524b2b7de9b8be45231985fdb9e
Signed-off-by: Tim Roes <tim.roes88@googlemail.com>
50e52fa11e802b4b4a8bf83072323ee48a75436d 23-Feb-2013 Ying Wang <wangying@google.com> Don't run cleanspecs if you are using mm/mmm.

There is lurky bug in the previous logic I believe:
in rare cases, people saw almost all cleansteps rerun.
Anyway, it's very rare that you need to run cleansteps when you run mm/mmm.

Change-Id: I42e84b3bf01590712ba1b167fe9a500f4ae1ddde
9485a57bb2e55535fc337f2be803e79cd1c46b62 22-Feb-2013 Ying Wang <wangying@google.com> Untwist the target/host shared library dependencies.

Before this, if there are duplicate module names in both the host and
target spaces, LOCAL_SHARED_LIBRARIES results in mixed dependencies.

Bug: 7026946
Change-Id: I5407e3d078a8903c94978cc6d3e256851c52340f
31268316213d25b73288bee58cef686ba45640c9 22-Feb-2013 Ying Wang <wangying@google.com> Support for ANDROID_BUILD_EVERYTHING_BY_DEFAULT

Set ANDROID_BUILD_EVERYTHING_BY_DEFAULT to true to build everything by
default. You can set it in your .bashrc or buildspec.mk.

Change-Id: I0bc2461d0e17c63a6f1c439cdfaaa94e36483a02
b607f7bd4c270c8bef16db46966992528ce25ebc 09-Feb-2013 Ying Wang <wangying@google.com> mma and mmma

augmented mm/mmm:
Their usages are the same as mm/mmm.
They build not only all modules in given path(s), but also their
dependencies.
With them, to run mm/mmm you don't need to run a full build first now:
Just run mma/mmma first.
Note that mma/mmma need to load all the makefiles in the source tree
so they are much slower than mm/mmm.
You should run mma/mmma the first time, and then mm/mmm for
incremental build.

Bug: 8163814
Change-Id: I554a97c0a23343b65c50870406225eb0064e0651
1d977e318331acdd90a66a972219419cd9508ccf 30-Jan-2013 Ying Wang <wangying@google.com> Refactor calculation LOCAL_CHECKED_MODULE

To remove dup code;
Also added two more umbrella targets: host, target.

Change-Id: Ia6deed2940a26a31ad823fe54816840861f3fb72
ef1a9613cb10320365e3a44ba8f131f7989229b3 30-Jan-2013 Ying Wang <wangying@google.com> Revert "Refactor calculation LOCAL_CHECKED_MODULE"

This reverts commit ba99e69424b72ac95581da50c8eea131d398d790

Change-Id: I3c42dea56376d26a5bb77b4944ae17a6875aadbb
ba99e69424b72ac95581da50c8eea131d398d790 30-Jan-2013 Ying Wang <wangying@google.com> Refactor calculation LOCAL_CHECKED_MODULE

To remove dup code;
Also added two more umbrella targets: host, target.

Change-Id: Ic82db571435cdbd10fd9e70e6c4195f4ca9ecd99
ef4d82f283fa279f58f48a0c8a86e40a20bfdcb5 30-Jan-2013 Ying Wang <wangying@google.com> Umbrella build targets to help engineers verify build

With this change, by choosing the right build target, you can reduce
significant verification build time:
If you are working on the framework, "make target-java" sounds enough;
if you are working on native target code, "make target-native" saves
your time by not building the Java code.
This will help reduce uncaught breakges for by default not everything
is built now.

Change-Id: I5a7c82d3f6372db03bea76155c8d6cc63d988eae
63d94fa3056066ba7be6754356975af6a1c82981 14-Dec-2012 Ying Wang <wangying@google.com> Build from source or prebuilt

With this change, you can easily switch between building from source
code and prebuilt.
Set LOCAL_PREBUILT_MODULE_FILE to the path of the prebuilt file,
relative to the top of the source tree, in the usual module definition.
The prebuilt will be used unless any of the followings satisfied:
1) ANDROID_BUILD_FROM_SOURCE is "true", which disable prebuilt globally;
2) The module name is in ANDROID_NO_PREBUILT_MODULES;
3) The LOCAL_PATH is prefixed by any of ANDROID_NO_PREBUILT_PATHS.
A developer can set ANDROID_NO_PREBUILT_MODULES or
ANDROID_NO_PREBUILT_PATHS to build only his own module(s) from source,
while build other modules from prebuilts.
You can set ANDROID_BUILD_FROM_SOURCE to true to build everything from
source.
Those variables can be set with shell environmental variable or in your
buildspec.mk.

Sometimes module B is able to be built from source only if module A is
also
built from source, for example, if B is the test apk of A.
In that case, you can use the macro include-if-build-from-source to
include B's Android.mk only if A is built from source too, or
if-build-from-source to conditionally include the definition of module
B,
if their module definitions are in the same Android.mk.

Support host-executable-hook and host-shared-library-hook.

Change-Id: Icab7cf028c87eaba0dd7efc2a7749fd6f32b44e4
1dcca61869ed1291879332e13771b13805ec4475 09-Nov-2012 Andrew Hsieh <andrewhsieh@google.com> Revise checks for MacOSX to build emulator

1. Check $(HOST_CC) instead of gcc for llvm-gcc.
2. Remvoe Mac SDK 10.4 check because emulator uses
the same SDK version as the rest of framework

Change-Id: I4071fd45dc09a18c5341ad79e6a85e61df060fb4
92cd50c41611694281e40dad39a5bc316ef847d8 31-Oct-2012 Ying Wang <wangying@google.com> Remove nonexistent modules from PRODUCT_PACKAGES

and revert back to fatal error if sdk has nonexistent modules.

Change-Id: Ic7185128b0253b3591592b4167ea1e26cee1aa84
84da5c55dd4b5dd7925f91864582a616422251e2 24-Aug-2012 Ying Wang <wangying@google.com> Filter out the overridden packages before doing required module expansion.

Bug: 6900954
Change-Id: Ib0f57dc4bfc341ec7166429a5bb71bfc5e28d271
daf5e22dbac03e174e22c8209ed97c44c3a2a2c9 18-Oct-2012 Mike Lockwood <lockwood@google.com> Add new embedded target for a super minimal android build

Remove obsolete BUILD_TINY_ANDROID

Change-Id: Ic0f3a5b3250ea80529f5099653068f118a13b12e
92ca0197ed22897633ed9241c9f4ae2128ef5c13 16-Oct-2012 Kenny Root <kroot@google.com> Remove HAVE_SELINUX guards, part 2

Change-Id: I58d43128447ef3be0f70ff2479af2e61fe4c5849
e37c3dc3f6c46d15113f0e8e4df28e47646995b9 28-Sep-2012 Ying Wang <wangying@google.com> Build only modules required by the current product.

Don't build modules_to_check by default.
Instead add "checkbuild" to the command line as a build goal, if you
want to build everything.
We can use the "checkbuild" goal to make sure some build targets on the
build server still build everything.

(cherry-pick of 5a88269ad6ed44fb163f96847954faac21292567.)

Bug: 7253452
Change-Id: I21eb93f3cb430c9531fe41a2f5d7b445c09938b9
d0244b395a583804137cd1fe2bff4f86d66b396b 17-Nov-2011 Ying Wang <wangying@google.com> Remove build variant "tests"

Bug: 5368571
Now we have a phony target "tests" instead.
The target can be built in any other build variant (eg userdebug).
For example, "make PRODUCT-full-userdebug tests dist" will build and
put the *-test-* zip file in the dist dir.
The "tests" target will include all modules tagged as "tests" in
addition to other modules in specific target out directories.

Change-Id: I8383097380d8e6846c3e2107d6dd5f68788cfc39
5a88269ad6ed44fb163f96847954faac21292567 28-Sep-2012 Ying Wang <wangying@google.com> Build only modules required by the current product.

Don't build modules_to_check by default.
Instead add "checkbuild" to the command line as a build goal, if you
want to build everything.
We can use the "checkbuild" goal to make sure some build targets on the
build server still build everything.

Bug: 7253452
Change-Id: I84b62116131e85d1f32d58a424cdfd9d51fa9755
b301817223d7163de6827976f8259363ab18c7b8 05-Sep-2012 Ying Wang <wangying@google.com> Don't install all host modules by default.

Instead we should explicitly set up the dependency, if the module will
be used in the build process; Use LOCAL_MODULE_TAGS with eng, debug or
tests if the module is for testing; or add to PRODUCT_PACKAGES if it's
required by a product.

Change-Id: I326e97df6630dee4acc6582ce6cef2dec8289155
bc2406e64c9bc046e1d7e971f41c5a350194eb42 01-Sep-2012 Benoit Goby <benoit@android.com> Add openssl to TINY_ANDROID build

adb depends on it

Change-Id: I79f23315142b45bc7f9a2685fa2b9865b22396ad
489458fa3161ed0c299f737da68376862ce13f9f 24-Aug-2012 Ying Wang <wangying@google.com> Filter out the overridden packages before doing required module expansion.

Bug: 6900954
Change-Id: Ib0f57dc4bfc341ec7166429a5bb71bfc5e28d271
af4800c8a6a9266ceb7269bd2c6b0bb2f0965bea 22-Aug-2012 Ying Wang <wangying@google.com> Support EMMA_INSTRUMENT in both full and unbundled builds.

Bug: 6987838
- With this change, use "EMMA_INSTRUMENT=true" to enable emma in full or
unbundled build.
- You don't need to add "LOCAL_STATIC_JAVA_LIBRARIES += emma" any more for
unbundled apps.
- Now a single var LOCAL_EMMA_INSTRUMENT replaces the previous
LOCAL_NO_EMMA_INSTRUMENT and LOCAL_NO_EMMA_COMPILE.
- By default, if EMMA_INSTRUMENT is true, emma is enabled for only
non-test apps.
- A new global var EMMA_INSTRUMENT_STATIC. It enables EMMA_INSTRUMENT
and builds emma into apk/jar as static library, instead of using emma
as part of shared library core.jar.

Change-Id: I0aa219e83074879ececc159b5b07c39eb07ccc00
0ee86a7429772df5ef075ad8dc59f0974791c94c 17-Aug-2012 Joe Onorato <joeo@google.com> Another error to warning

Change-Id: Ifbad63e3eb37d087d88a39e102b4239f305d0ee3
8d0847e9246ab7728f9ef6e2e493f0025ac06f5b 12-Jul-2012 Joe Onorato <joeo@google.com> build system changes for jb-aah-dev merge

Change-Id: I29e27505a0d9f7cc2932f725bfe1c83d804388bc
e213944da4d6b699fea290ce84083dcd457c37ad 23-May-2012 Joe Onorato <joeo@google.com> Fail when a non-vendor product references a vendor module.

Change-Id: Ia5ca233e9b11f64b72074f65899d3041cf955c4c
6a185e453d423a8192f7b694cb0c707f9ec6c94b 22-May-2012 Joe Onorato <joeo@google.com> Remove support for user tags in the build system.

It is not forbidden to say LOCAL_MODULE_TAGS := user,
and if you don't say LOCAL_MODULE_TAGS, it now defaults
to optional.

Change-Id: I0a0b200bb6f1c7bf1fe3a89cdc8f69678617526c
f93f5be23ec65d2893d3b221d3753eace24dc567 21-May-2012 Joe Onorato <joeo@google.com> Dump the user tagged modules.

Change-Id: I623821df3e48b358a6b898ccb13750f7dc54ddcf
918ee311f53d4128d753cca23b2b9a5212bd94f7 19-May-2012 Joe Onorato <joeo@google.com> Don't give the user tag to host modules automatically.

Change-Id: I12d0a84786e5bf2224efd8684526b6097e6105d7
10649c632d7e4385909424473ad5a566177216b2 19-May-2012 Joe Onorato <joeo@google.com> Add a phony "nothing" goal that reads the makefiles but doesn't try to build anything.

Change-Id: Idac551e5c796321e993b94761f5cbf5b55c1a994
26ead966d72a436beddf02ef17268071cb982ce0 12-Jul-2012 Joe Onorato <joeo@google.com> build system changes for jb-aah-dev merge

Change-Id: I29e27505a0d9f7cc2932f725bfe1c83d804388bc
75493610b33323ccc958e2ff45e9eafb9750fa5d 23-May-2012 Joe Onorato <joeo@google.com> Fail when a non-vendor product references a vendor module.

Change-Id: Ia5ca233e9b11f64b72074f65899d3041cf955c4c
529302d912e9ad6d62b56f98ffb718e5a4b23b18 22-May-2012 Joe Onorato <joeo@google.com> Remove support for user tags in the build system.

It is not forbidden to say LOCAL_MODULE_TAGS := user,
and if you don't say LOCAL_MODULE_TAGS, it now defaults
to optional.

Change-Id: I0a0b200bb6f1c7bf1fe3a89cdc8f69678617526c
d23c3235fa183b8c4c78551c5947158d2db8d01f 21-May-2012 Joe Onorato <joeo@google.com> Dump the user tagged modules.

Change-Id: I623821df3e48b358a6b898ccb13750f7dc54ddcf
f85cb7c936db4b7a6b39b1163591a61e166d9e11 19-May-2012 Joe Onorato <joeo@google.com> Don't give the user tag to host modules automatically.

Change-Id: I12d0a84786e5bf2224efd8684526b6097e6105d7
d6b1d628be13202550cd7381fccc4e641190c0b8 19-May-2012 Joe Onorato <joeo@google.com> Add a phony "nothing" goal that reads the makefiles but doesn't try to build anything.

Change-Id: Idac551e5c796321e993b94761f5cbf5b55c1a994
bc415dd5eb2a135cbc24c21760338e6294c7a0d3 15-Aug-2012 Ying Wang <wangying@google.com> Support to build emmap_mata.zip in unbundled builds.

Bug: 6987838
Change-Id: Id6c81b08c4859442b7d52054ed5f278575719d1a
da19eafc42e93bcd4aa97bd01c2ea93e967f78bf 15-Aug-2012 Ying Wang <wangying@google.com> Support to build emmap_mata.zip in unbundled builds.

Bug: 6987838
Change-Id: Id6c81b08c4859442b7d52054ed5f278575719d1a
7023f6179d09663b794cd113c5c57426a977a248 26-Jul-2012 Ying Wang <wangying@google.com> Fix build.

Set BUILD_EMULATOR to true when HOST_OS is linux.
Disable the emulator package target if BUILD_EMULATOR is not true.

Change-Id: I8987c0a091622baa0e861b451e635c4ddb148b29
7d8c535c1f63a97a9b77fa0b5d530778640a241c 26-Jul-2012 Ying Wang <wangying@google.com> Fix build.

Set BUILD_EMULATOR to true when HOST_OS is linux.
Disable the emulator package target if BUILD_EMULATOR is not true.

Change-Id: I8987c0a091622baa0e861b451e635c4ddb148b29
0173bc5ec804f33700a5158655611af817bd5770 26-Jul-2012 Ying Wang <wangying@google.com> Fix build.

Set BUILD_EMULATOR to true when HOST_OS is linux.
Disable the emulator package target if BUILD_EMULATOR is not true.

Change-Id: I8987c0a091622baa0e861b451e635c4ddb148b29
e35a445f2f7b32e39d88e0ba58b120aae6807baf 26-Jul-2012 Joe Onorato <joeo@google.com> Should have been included in 74e883d1415f68dc52a7e679cd1ea1f486b8d8bb

Change-Id: Ia0d06a89d0efd36c877e51b0adb45ae7bb3e5480
74e883d1415f68dc52a7e679cd1ea1f486b8d8bb 25-Jul-2012 Joe Onorato <joeo@google.com> Don't try to build the emulator on Mac OS if the right tools aren't installed.

Change-Id: I3cd2f82f9ee64174bddbb12a18ca8fcf23bdcebd
9d8a51f537cc1191655e0d8edc7eaffde2503ac7 03-Jul-2012 William Roberts <bill.c.roberts@gmail.com> This property is set when HAVE_SELINUX:=true during build.

This will provide a convenient method for determing build
configuration when in the Java layer. For instance, this will
be used in change id I69529fb7a3adfe31eccb16d79740fc4952ff5e68
to determine if the Settings app should display the SE Linux
status.

Change-Id: Idc8dff020aaac41649eac64f5fa8e311dabbc51f
478ba5e3f00bb1321cd022d744020231f2449287 29-Jun-2012 Ying Wang <wangying@google.com> Move the llvm-gcc warning from HOST_darwin-x86.mk to main.mk

Bug: 6754632
So the warning won't show up when you run lunch.
Now the warning only shows when you do a clean build.

Change-Id: I7876da783f059d390f0072df37d3ab0291589eb7
0d570a71630d70a80e838f068d413f1c1a5f55af 19-Jun-2012 Ying Wang <wangying@google.com> lint support.

Bug: 6167394
$make lint-<app-name> # to lint on a single module
$make lintall # to lint on all packages in the source
tree.

Change-Id: I4decc76fb75793ce44809232b0ec72b766fbb434
efe02ce9e00b9aebde7e9b32e81780d8de8f0dbd 07-Jun-2012 Keun young Park <keunyoung@google.com> add TARGET_BUILD_JAVA_SUPPORT_LEVEL to allow checking if java build is OK in PDK

- three levels: not defined, sdk, platform
- TARGET_BUILD_PDK_JAVA_PLATFORM gives the original meaning of java platform API
supported for java.mk
- remove libexif from user tag
- libexif_jni is pulled from f/b/media

Bug: 6623618

Change-Id: I5fa085bd10f43963350c57b7f885c700de8963e5
d7d0afcaea24b0fb0cb37dca921a5ff52fd2485b 06-Jun-2012 Joe Onorato <joeo@google.com> Add the ability in a product spec file to have modules installed for specific variants.

Change-Id: Ifa5eb2e15b3d3e5007378ec00efc4aec3e9a3b99
71004f81351511b4873cdb09d52b7624158a4840 25-May-2012 Ying Wang <wangying@google.com> Clean common intermediate files if overlay changed

This change cleans the packages' intermediate files if their overlays
changed between incremental builds.
If two builds have different overlay, they will have different R
classes, and so the jar files in the common intermediate dirs can
not be shared. Therefore incremental build can't be applied.

This change detects the overlay changes on package's base.
If a package's overlay is different from the previous build, its common
intermediate dir is nuked.
This makes broader incremental builds possible.

Change-Id: I368610ebbbbc85a80f9aecd714ab22cd78da7f12
9ccacd7a6f27dbb38c8365b85fb07197d1fdbb29 23-May-2012 Ying Wang <wangying@google.com> Set PWD to the absolute path of the top tree.

Previously PWD is passed in as a shell environmental variable,
which does not point to top of the source tree if you run mm/mmm.
That in turn breaks mm/mmm if OUT_DIR_COMMON_BASE is set to an absolute
path.

Change-Id: Iac99d5668aee1bbd3cb9897750afc2149bd9f973
e1d191ee956674147ac1b34129d1f2df322fc3ae 17-May-2012 Joe Onorato <joeo@google.com> Add rules to build the factory bundle.

Change-Id: I66bda914a5bd41bda7c8a4314f658924087e2bfb
000e89a5b95a1d3071277ff279263204f49cbd78 01-May-2012 Ying Wang <wangying@google.com> Strengthen dependencies on LOCAL_REQUIRED_MODULES

Bug: 6418863
This change expands the PRODUCT_PACKAGES with the required modules.
Before this change, since the required modules are not in the
PRODUCT_PACKAGES, they are not directly depended on by the image files.
If the dependent is not to be included in the image but the required
modules are to be included, the dependency of the image on the required
modules gets lost!
That would lead to build race condition.

Change-Id: I0b656db1538ca43d3785dbf17364ffa88b80ac41
3024d2394f1d1f51abeb45467094ec0bf82aeb0b 01-May-2012 Ying Wang <wangying@google.com> Strengthen dependencies on LOCAL_REQUIRED_MODULES

Bug: 6418863
This change expands the PRODUCT_PACKAGES with the required modules.
Before this change, since the required modules are not in the
PRODUCT_PACKAGES, they are not directly depended on by the image files.
If the dependent is not to be included in the image but the required
modules are to be included, the dependency of the image on the required
modules gets lost!
That would lead to build race condition.

Change-Id: Idbd504fd415b488c397e67ab487a22bff4fa188e
5d4bcb490e4261ab56d188cc5ac490af9cc4c826 19-Apr-2012 Jean-Baptiste Queru <jbq@google.com> Use an https URL

Change-Id: I9842d009b852df1882eaddb1bd53b216da0f4650
82b836fda6894ebfccccfbddc2ce3ee2718d862e 31-Mar-2012 Ying Wang <wangying@google.com> Support to build pdk and pdk fusion.

Bug: 6241618
Change-Id: I08f74019631e9e132c15cdb2916bbafb052f9aa6
971c246cb543b0021f78d52333bcbbe00ca106d8 29-Mar-2012 Colin Cross <ccross@android.com> Remove some dist targets from PDK builds

Remove apps.zip and package_stats.txt from the PDK build, they
fail because no apps or jar files are built.

Remove emulator.zip, the emulator is not built.

Also, put recovery.img back into the PDK build, it is needed by
the img.zip target, and will be necessary for fusion builds.

Change-Id: Ie314e0432881d3ee4f1ef3eec5a98be6b8581572
8f4c3116b2480b89c37e7a0ca6d87681a09fd340 27-Mar-2012 Dima Zavin <dima@android.com> telephony: remove default apns_conf.xml

Remove the hack from main.mk to filter through installed files
to look for an apns file.

Change-Id: I31ba69bfc8323fea0a38154922df6b57a0f227c8
Signed-off-by: Dima Zavin <dima@android.com>
4c456990150dca67ce39b398445d7cfec1f10f3d 27-Mar-2012 Raphael Moll <ralf@android.com> Allow make 3.82 to be used under Cygwin 1.7

(Manual merge of 76bf62d75e7d4680dac1522534c56f4b511e5cd1)

Change-Id: I61a6b10b4d81192dbff928780c2263931cf57c4d
7a5960555b229cca5a7d074ea9e139ebd5a6600f 24-Mar-2012 Brian Swetland <swetland@google.com> Introduce TARGET_BUILD_PDK for selecting build tweaks for the PDK

BUILD_PDK and some of the other infrastructure will go away once
we're done with the new new PDK work, but for now don't disturb
that stuff.

Change-Id: Ia39bf759ec03f203858ddcc4880af72bd132cb5a
9ec15ec89c725d51ee1fb08d4aa7e358617c8e44 15-Mar-2012 Keun young Park <keunyoung@google.com> rename pdk builds: pdk1 to pdk_eng, pdk2 to pdk_rel

Change-Id: Iadf0493b1f6700638010ceb50ced2fe7bc8bb603
160b670f4acfbcf85eb6baf1df156ada835a6a3e 14-Mar-2012 Ying Wang <wangying@google.com> Add build goal "tests".

Bug: 5368571
The phony build goal "tests" will eventually replace the build variant
tests.

Change-Id: Ia656f2cf2260feeaa8fa32e9221b7f9ce0990262
519316e5685e4ef9360f15045cb7243939fecc27 12-Mar-2012 Keun young Park <keunyoung@google.com> Fix build caused by 168380

Change-Id: Iebda5669f48fe505146b8f2f8b35d06621d4b0e6
7fc7aad152ae595de371a5b969744ff3b971d81c 28-Feb-2012 Keun young Park <keunyoung@google.com> changes to add pdk1 / pdk2 build for PDK build
- additional files will be added to pdk/build
Bug: 6079146

Change-Id: Ieb5fcab8002193250d770b923f60ec7333ce84e5
c04b56c5b05ef7e2fdc6b24e9428bfb2a3c45a19 27-Jan-2012 Raphael Moll <raphael@google.com> Merge "Move Windows SDK whitelist out of main.mk"

This replaces the list maintained in build/core/main.mk
by 2 makefiles in sdk.git and development.git.

Pre-requisite CLs: Change Ifa8111dbae for sdk.git
and Change Ie6f728bee for development.git

(cherry-pick of 347f3051814d7d36a9a6af387e724bb327b53ecd)

Change-Id: I6d1f4c974a6425e50e3e287c66a4e8090cf814cb
b7fc1545f371a46aea6588280449e31c2348d809 07-Feb-2012 Colin Cross <ccross@android.com> Add gcc_demangle to BUILD_TINY_ANDROID projects

libgccdemangle.so is required to build libcorkscrew, which is in
system/core and built when BUILD_TINY_ANDROID is set.

Change-Id: Ide9af58cfc075e27a7368993b29be2c0e53275a8
347f3051814d7d36a9a6af387e724bb327b53ecd 27-Jan-2012 Raphael Moll <raphael@google.com> Move Windows SDK whitelist out of main.mk

This replaces the list maintained in build/core/main.mk
by 2 makefiles in sdk.git and development.git.

Pre-requisite CLs: Change Ifa8111dbae for sdk.git
and Change Ie6f728bee for development.git

Change-Id: Id6178b000c464c989da2c7f22977986a60de1f44
4b5e4ba5fd2490c19c370b6e1fe7337c8e476b89 12-Jan-2012 Xavier Ducrohet <xav@android.com> Remove mention of layoutopt/uix as they are gone.
d38c870d2e168b051692b20ade0fc966c9e2daf7 22-Dec-2011 Conley Owens <cco3@android.com> Get build system to work with Make 3.82

Note: `sort` can't seem to handle newlines in 3.82.

Change-Id: Ieeaee1d19688688a02e396bbc5b4dea26e7f6943
d7a1a9b49b9d6e8331bcc5b2ece84903a94553de 22-Dec-2011 Conley Owens <cco3@android.com> Get build system to work with Make 3.82

Note: `sort` can't seem to handle newlines in 3.82.

Change-Id: Ieeaee1d19688688a02e396bbc5b4dea26e7f6943
76bf62d75e7d4680dac1522534c56f4b511e5cd1 19-Dec-2011 Raphael <raphael@google.com> Allow make 3.82 to be used under Cygwin 1.7

OTOH, should we just allow the expression to be >= 3.81
for all platforms? For cygwin it's a specific case since
we don't build the platform, only a handful set of tools
and it works just fine with a newer make 3.82.

Change-Id: Icff0d0e13bce79f7164007985f14db56e9049552
0ae6d2956858ed3a9c0b65fecd70bc783976173c 19-Dec-2011 Raphael <raphael@google.com> Add 2 SDK directories that can build under Cygwin/Mingw

Change-Id: I020c2691d7d92a48bd406360e2752357ae79e3b0
b056d71f79b717fb36d375e48c19509900f977d3 01-Dec-2011 Bruce Beare <bruce.j.beare@intel.com> If setupwizard is disabled, don't force it to optional

Change-Id: I15912ed77b88ea94feb149fdd081a309e3cf4678
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
89686538d77c47ed7816594c7597f5d1e456d656 16-Dec-2011 Ying Wang <wangying@google.com> Support to build factory ramdisk image.

Bug: 5769921

With this change, to build factory_ramdisk.img, set
PRODUCT_FACTORY_RAMDISK_MODULES in your product config.
PRODUCT_FACTORY_RAMDISK_MODULES consists of
"<module_name>:<install_path>" pairs.
<install_path> is relative to the root of the factory ramdisk output.
For example:
PRODUCT_FACTORY_RAMDISK_MODULES := \
toolbox:bin/toolbox adbd:sbin/adbd adb:bin/adb

On the other hand you can use PRODUCT_COPY_FILES to copy prebuilt files
to the factory ramdisk.
Or you can define modules that are specific for the factory ramdisk
(with LOCAL_MODULE_PATH pointing to TARGET_FACTORY_RAMDISK_OUT) and add
the module names to PRODUCT_PACKAGES.

Change-Id: I80ff72606415cd74fe6f3bc93020a05d84e45b70
0a099d904a5f82cba0ce86878d3d3e5e2dbf9e95 16-Dec-2011 Ying Wang <wangying@google.com> Support to build factory ramdisk image.

Bug: 5769921

With this change, to build factory_ramdisk.img, set
PRODUCT_FACTORY_RAMDISK_MODULES in your product config.
PRODUCT_FACTORY_RAMDISK_MODULES consists of
"<module_name>:<install_path>" pairs.
<install_path> is relative to the root of the factory ramdisk output.
For example:
PRODUCT_FACTORY_RAMDISK_MODULES := \
toolbox:bin/toolbox adbd:sbin/adbd adb:bin/adb

On the other hand you can use PRODUCT_COPY_FILES to copy prebuilt files
to the factory ramdisk.
Or you can define modules that are specific for the factory ramdisk
(with LOCAL_MODULE_PATH pointing to TARGET_FACTORY_RAMDISK_OUT) and add
the module names to PRODUCT_PACKAGES.

Change-Id: I3778e3d091979261cb476628da1365f931e11f49
dc2450ca25d1169a42dbe9de127b730718bc0eb9 21-Oct-2011 Tor Norbye <tnorbye@google.com> Build fix - include sdk/lint in build.
5dd51bde0b0b4a8ca6d1b6a8da1f6739197999a2 21-Oct-2011 Tor Norbye <tnorbye@google.com> Build fix - include sdk/lint in build. do not merge.

(cherry picked from commit 4377cc701a0bef32aaff34d0d119974544fd20d6)

Change-Id: I28dd89ad6471c82d344ecf88cecb2b96361b2050
9f8e8db188371cb3787a91a03d193f87ad244ea3 04-Nov-2011 Ying Wang <wangying@google.com> Build cache.img on demand

Bug: 5153694
To build cache.img, set BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE (required,
ext4 only for now), BOARD_CACHEIMAGE_PARTITION_SIZE (optional) in
BoardConfig.mk.

Change-Id: I1d8b91646aa1dba88285e008ad3335768bcbddd2
c0debb9b5e2f2f5deb00fb7db5b5c03177b06460 02-Nov-2011 Ying Wang <wangying@google.com> Revert "Build cache.img."

This reverts commit 531bdb546af5127ed9c1012871d780930eb990f5.
531bdb546af5127ed9c1012871d780930eb990f5 01-Nov-2011 Ying Wang <wangying@google.com> Build cache.img.

Change-Id: I3dbe7afa4934fa718ba20605eebd2e3ce2ae82ab
2d50524a0164072d0cf3f60108d0a2227d4cabc1 01-Sep-2011 Mike Lockwood <lockwood@android.com> main.mk: Allow overriding subdirs via make variable TARGET_SUBDIRS

Change-Id: I9e1523833e1567a59b19482c7834fe30479a009f
Signed-off-by: Mike Lockwood <lockwood@android.com>
3282e9bb4d26e56f4ed37b55b7771db02374d4c8 27-Oct-2011 Xavier Ducrohet <xav@android.com> Remove references to layoutopt from the build.

Change-Id: I54a41f47a380531f4b50eb26e67e8f52b63269a5
65216a2d3bdf3e6f07010a8ebfccf17017e96db9 27-Oct-2011 Omari Stephens <xsdg@android.com> Revert "Remove layoutopt; replaced by the more generic "lint" tool."

This reverts commit 7a23d45cdca22751c421427ce0e4e12df31945d2.
7a23d45cdca22751c421427ce0e4e12df31945d2 21-Oct-2011 Tor Norbye <tnorbye@google.com> Remove layoutopt; replaced by the more generic "lint" tool.

Change-Id: I5754d10ec7b3fd03a2eb9a70e5f73201f909e11e
4377cc701a0bef32aaff34d0d119974544fd20d6 21-Oct-2011 Tor Norbye <tnorbye@google.com> Build fix - include sdk/lint in build

Change-Id: Id65b7a3f72dd6c5104738fa872f3beb029d91163
486be821985f5c6680daee90bdf3befb602a1ed0 08-Oct-2011 Ying Wang <wangying@google.com> Enforce no nonexistent modules in PRODUCT_PACKAGES for sdk builds

Bug: 5430740
- Remove nonexistent names in PRODUCT_PACKAGES.
- Push down bluetooth-health, hostapd and wpa_supplicant.conf to
generic_no_telephony.mk and large_emu_hw.mk because they are not needed
by sdk builds.
- Remove core.mk from generic_armv5.mk and generic_x86.mk because they
already inherit from generic.mk.

Change-Id: Ie44b95f1cae7ed0d4cf827ffce6a91d41902434d
514c487dcb0f0a3ef800305bbf75c0773f1e4966 16-Sep-2011 Raphael <raphael@google.com> Enable building sdk/avdlauncher in the Win SDK. DO NOT MERGE.

Required by Change-Id Ic651e3c3 in sdk.git

Cherry-pick from master c36df7b12bb5e1e97e39c3576d330af37536b02d

Change-Id: Ic51ad7df01ce1bc926ba69f8a031a060edbf0bd1
c36df7b12bb5e1e97e39c3576d330af37536b02d 16-Sep-2011 Raphael <raphael@google.com> Enable building sdk/avdlauncher in the Win SDK.

Required by Change-Id Ic651e3c3 in sdk.git

Change-Id: I97f389d052ba9abf1c40547abbc6d7c164bdf405
15185063456dcbd6975c89bf9bbb7d9ff81f0f28 02-Sep-2011 Raphael <raphael@google.com> Enable 'make traceview' under Windows.

Change-Id: I2b89d2ee66d0bb4a1b2bb6e4ea15d3b0419cead9
b55a6333f0bd0507f1a2bdb3df92ae632ed670b9 01-Sep-2011 Mike Lockwood <lockwood@android.com> main.mk: Allow overriding subdirs via make variable TARGET_SUBDIRS

Change-Id: Id7f861d73288ef732473050d1d69b20fc7c5d7d6
Signed-off-by: Mike Lockwood <lockwood@android.com>
d7d096df71c65cbcd35def83bdb4f7cc86c3f290 08-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Tighten the toolchain version check

Bug: 3076137
Change-Id: Ibd9f1f13916e31596f94a5b0a90293995da7f2cf
43dd89d2a0c166525db0af4162b9b08aaa186aed 23-Aug-2011 David 'Digit' Turner <digit@android.com> emulator: Enable GLES emulation libraries

This patch enables the build of OpenGLES emulation libraries
(both in the guest and the host) for any emulator-specific
product config.

+ update core/main.mk to ensure that the right path is parsed
when building the Windows SDK

Change-Id: Ifde047f8c0ef922504a7286c8c5b57f7c79c71f8
408c7f8a8f61deda637b884cca91e670f7d23c0a 17-Aug-2011 Raphael Moll <ralf@android.com> Add sdk/rule_api to the Windows build paths.

Change-Id: I4976b50d829e4b26b4f9935a1a184937dd115198
d1975a2946c899513e0e041627be104fb536cf65 17-Aug-2011 Brian Swetland <swetland@google.com> fix tiny android builds (add mksh)

Change-Id: I0cf5068b6e9b350259009c5ecf7f2946d05f7b2d
667ec86a33b8eff749b429fb0926a0c0b1ad1646 29-Jul-2011 Raphael Moll <ralf@android.com> Add sdk/assetstudio to the Windows build paths.

Change-Id: Ide8d418aa25cf39852a25e08fd2a27c7882586e7
40b5a67ecd70eee8583b6b12775d18255868d89f 01-Jul-2011 Mike Lockwood <lockwood@android.com> Remove obsolete persist.service.adb.enable property from default.prop

Change-Id: I59a2da01eddfc1fa775e027a86f7f818a146a6b0
Signed-off-by: Mike Lockwood <lockwood@android.com>
52d697d432e0684fb13884c94f7768c5ec8ef8ec 22-Jun-2011 David 'Digit' Turner <digit@android.com> Turn-off implicit GNU Make RC/SCCS rules

This small patch prevents GNU Make from stating RCS and SCCS
specific files on the filesystem. This makes the output of
"make -d" slightly more readable, and also reduces the no-change
time on AOSP master by a bit less than a second on average.

Change-Id: Ifa50ace32e8689717956d7247b0d6f53ef72b7a1
2914f7f3b3b4152fee6b6ab012e58e8166e3d7a2 25-May-2011 Ying Wang <wangying@android.com> Relax the constraint of 64bit build environment.

Change-Id: Id349f424b122816f42c99769b629a9447986cf20
f7ad63ae65f75e5aa0d0a8234feddacdace95df0 31-May-2011 Dan Bornstein <danfuzz@android.com> Clean up how dex preoptimization gets configured.

Change-Id: I505ac438f1b963060b4be36d94bb5fbee6112dc5
053dccb159e2f73aa763bfdc4578586fba57f841 25-May-2011 Ying Wang <wangying@android.com> Relax the constraint of 64bit build environment.

Change-Id: Id8be221dcfa07651a4d9a2776b00e907b4ff750e
59ad18fa49d930905b8aab382671a369504554f6 15-Apr-2011 Raphael Moll <ralf@android.com> Allow swtmenubar module to be buildable on Windows.

Change-Id: Ia20b8dea44f79df77ba0cb0479b99af990dc5b7b
7c1a1247f3e7110a95696671e8f71334e9b3c1b5 22-Mar-2011 Ying Wang <wangying@google.com> Drop using vendor/google/etc/apns-conf.xml for eng builds.

Bug: 4133493
Change-Id: I3eee2a5658620f480370d260b395e928bc395886
bd0c91c8b9d36fd3ed8d8ac7e66b3e1eee3bb0bb 16-Feb-2011 Raphael <raphael@google.com> Merge c4d4731b4dd306b74b9e2245b4983b6b3c5b866e: 'Build SDK repository'. Do not merge.

When the build is invoked with the fake target "sdk_repo" and
a main target of sdk, win_sdk or sdk_addon, we now create
packages in DIST_DIR that can directly be used to populate the
SDK Repository.
This is quite close to how we actually distribute the SDK.

Change-Id: I863ac8baf159432d7c95df46cba6e4f3b9122629
21a8b2459f60d71ccf70f2411b63673c0e4c5757 16-Feb-2011 Raphael <raphael@google.com> Merge c4d4731b4dd306b74b9e2245b4983b6b3c5b866e: 'Build SDK repository'. Do not merge.

When the build is invoked with the fake target "sdk_repo" and
a main target of sdk, win_sdk or sdk_addon, we now create
packages in DIST_DIR that can directly be used to populate the
SDK Repository.
This is quite close to how we actually distribute the SDK.

Change-Id: Id08a3a55a564938dbeb6e3dd170d4a9a7153ae6e
b375e71d306f2fd356b9b356b636e568c4581fa1 09-Mar-2011 Iliyan Malchev <malchev@google.com> build: remove prelinker build build system

This patch removes support for prelinking from the build system. By now, the
prelinker has outlived its usefulness for several reasons. Firstly, the
speedup that it afforded in the early days of Android is now nullified by the
speed of hardware, as well as by the presence of Zygote. Secondly, the space
savings that come with prelinking (measued at 17MB on a recent honeycomb
stingray build) are no longer important either. Thirdly, prelinking reduces
the effectiveness of Address-Space-Layout Randomization. Finally, since it is
not part of the gcc suite, the prelinker needs to be maintained separately.

The patch deletes apriori, soslim, lsd, isprelinked, and iself from the source
tree. It also removes the prelink map.

LOCAL_PRELINK_MODULE becomes a no-op. Individual Android.mk will get cleaned
separately. Support for prelinking will have to be removed from the recovery
code and from the dynamic loader as well.

Change-Id: I5839c9c25f7772d5183eedfe20ab924f2a7cd411
be188cafd21c7356cc33ae042661b682d0536e8b 08-Mar-2011 Ying Wang <wangying@google.com> Dist build.prop in sdk builds.

Change-Id: Id694a11fb644d21a69c89aad0bd6b0fa85aab32d
c4d4731b4dd306b74b9e2245b4983b6b3c5b866e 16-Feb-2011 Raphael <raphael@google.com> Build SDK repository

When the build is invoked with the fake target "sdk_repo" and
a main target of sdk, win_sdk or sdk_addon, we now create
packages in DIST_DIR that can directly be used to populate the
SDK Repository.
This is quite close to how we actually distribute the SDK.

Change-Id: Ie7e0f789bafd73d5ee2461349155a6e562e2edd9
192d1ef6d73c50db358bb7c8be6c29e6cc7540a2 03-Feb-2011 Raphael Moll <ralf@android.com> SDK: Enable "make sdk/common" under Windows

Change-Id: Id9cba159f434fb18f6e3b648954b3f8ddb580dc0
d7798a7e1b3241c49d7c8325cf14ac608350b719 03-Feb-2011 Brian Swetland <swetland@google.com> fix TINY ANDROID yet again...

Change-Id: If52e1387c590be5ef467280ab2d1b56b8a823cd0
9c0f3e355194d1c43bf70f35f953d6a2babc815a 01-Feb-2011 Ying Wang <wangying@google.com> Build only userdata.img.

Use build command like:
$make -j16 showcommands userdataimage dist TARGET_PRODUCT=trygon_with_data_preloaded TARGET_BUILD_VARIANT=user

Change-Id: I964490e03090c3696d1595c92363273e35cfaed7
7cc24409946e0d2f6a3d44ab44e9d2d192e945ef 24-Jan-2011 Brian Swetland <swetland@google.com> make TINY_ANDROID build without the presence of frameworks/* and development/*

Change-Id: I795e27a9ce837b193c6d8d0516e2f523c17214e2
72bf09d33313c2b9a191b549dcb5e717bff9a600 24-Jan-2011 Brian Swetland <swetland@google.com> tiny android: include su

Change-Id: Ib8162c0f8171114ffafcac48d482fd3acd5d5956
015edd2c1b4a4300ccccee4036ec2ca7e9ad798a 21-Jan-2011 Ying Wang <wangying@google.com> Add modifier goal incrementaljavac

With "incrementaljavac" on your make command line, you will recompile
only Java source files that have been changed since last build.
Nothing is changed if "incrementaljavac" is not among your make goals.

Change-Id: Iae591459827df81ac91e95292464db5e9828343a
a7600364feb0eff313374e9dd0502ea7e15085f6 21-Jan-2011 Brian Swetland <swetland@google.com> fix tiny android build

Change-Id: Ifa6cda67f54969588b5c4e9f900ac2d4ba607e71
Signed-off-by: Brian Swetland <swetland@google.com>
d3e6fcbe6cfc531719429b7fec844565aa8089e7 12-Jan-2011 Raphael <raphael@google.com> Add llvm-rs-cc to the tools buildable under Windows.

To be able to "make llvm-rs-cc" as a Windows SDK tool, we
first need to let the build system know which folders can be
built.

Once this is done, building can be done using the mingw32
package to do cross-compiling under Linux:
$ USE_MINGW=1 make llvm-rs-cc

Change-Id: I5538f4c52c74dad18dd50b59c9bdbcd6de3fd191
228fcef025cf827428a812a182bce0e9b7ee2b0b 09-Dec-2010 Ying Wang <wangying@google.com> Change phony target name dist_libraries to dist_files.

Any module that does not build in apps_only build should not dist for the
default goal "droid" -- they sould dist for "dist_files" instead.

Change-Id: I8696f1ea803fbd8554ec03352e0ef369f5d7be0d
6ba4ebf272eccf5f98490a59d1381dde37ec1109 08-Nov-2010 Magnus Bäck <magnus.back@sonyericsson.com> Adding `all' to INTERNAL_MODIFIER_TARGETS to fix `make all'

Commit e334d255 added the `all' pseudo-goal (aka internal modifier
target) to have make dex all Java modules. Unfortunately the new
pseudo-goal wasn't added to INTERNAL_MODIFIER_TARGETS so no actual
phony goal was added, resulting in the obvious

make: *** No rule to make target `all'. Stop.

error message when running `make all'. This commit changes
INTERNAL_MODIFIER_TARGETS to also include `all' so that the
pseudo-goal is treated just like `showcommands' and `checkbuild'.

Change-Id: I7905c1e27d1b17bdc1b4331744bf06e18937406f
885b6b99d34fa5e6c22b4c17d3e5c78e9f74afc4 14-Oct-2010 Bruce Beare <bruce.j.beare@intel.com> Correct makefile test for stagefright build

Change-Id: Ia79b97d43e3fad82491e7d6197ffef2e764a63e3
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
824d7b2f02f99f1661912203d530909fc242a741 18-Nov-2010 Kenny Root <kroot@google.com> Fix typo in ALL_PREBUILT error message

Change-Id: Ib59047e5c63950c84a6518a91ab6e5060c46ff21
4f9269ef7519354b3459ef510819ca5eec538b65 18-Nov-2010 Ying Wang <wangying@google.com> Restrict make version to 3.81

Bug: 3209290
It turns out that gmake 3.82 on Mac OSX crashes with segmentation fault
at some point.

Change-Id: I7b632abe1cafc5f0ff2ea45611d8ccf0aa3f976a
2e5ee27e9ed94babf291c507fee5aa2b00826e29 11-Nov-2010 Xavier Ducrohet <xav@android.com> Rename layoutlib_utils into ide_common

Change-Id: Iaa8275881dd1ee7d41c30f8b0d481253a6635271
9566122c9d6b0c4844563f3af9185adf082c6155 28-Oct-2010 Daniel Sandler <dsandler@google.com> make help: prints a handy list of useful targets

A small step to making the platform build environment more
self-documenting.

Change-Id: I8f6cebe6cbd4cf89736da23e9d0d2a257ea422ee
7522f04a4b0327cf493dfe6c501634b2b1e1367a 12-Oct-2010 Ying Wang <wangying@google.com> Verify PRODUCT_* are not modified by Android.mks, but allow them to be read only.

Bug: 3076955
Change-Id: I7ddcc5b9d6325d3a3c63f952f97034ddf223630a
64cf5aa66769287147a6d0d54a85460d3727eedd 08-Oct-2010 Joe Onorato <joeo@google.com> Revert "Enforce that PRODUCT_ variables aren't modified by module makefiles"

This reverts commit 95e743a6c02c9f9844cab95635b4954ecd82e7ff.
95e743a6c02c9f9844cab95635b4954ecd82e7ff 08-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Enforce that PRODUCT_ variables aren't modified by module makefiles

This eliminates one of the way a module could insert itself into
a build without going through a product definition file.

Change-Id: I1d537764d73c52ceaec96b64b6b6925e2f6a8d8e
531f524256c049fb3763b5c82808f315ea83d3bb 28-Sep-2010 Dima Zavin <dima@android.com> core: Make fake packages have real installed files for proper dependencies

Change-Id: I3145440eea0fbbd8ba22a2b3b0511f4c18f90eca
Signed-off-by: Dima Zavin <dima@android.com>
0235237805991b48831dc8add072a50c478b2fcb 27-Sep-2010 Ying Wang <wangying@google.com> Remove emulator-based dexpreopt logic from the build system.

Change-Id: Ic96cbd1ebb9fa65aa85bf77f18a31913625d7e1c
49ce545ad5cf9928b68758c14e69de0e0062e9ec 26-Sep-2010 Jean-Baptiste Queru <jbq@google.com> Disable this check that was submitted by mistake.

There's still one device that doesn't build with this check enabled.

Change-Id: I962afe9c739df15e77ead30311c34be411674f53
c2901aa5134a11d6594af573f98ab6b08c793f71 24-Sep-2010 Dima Zavin <dima@android.com> core: don't add file deps for modules without any installed files

Change-Id: I0acadb2ce287a1657d29dc787bd9b1c2f95aa918
Signed-off-by: Dima Zavin <dima@android.com>
0944771fb0de7510046e252b59f4afa7d24b212f 26-Sep-2010 Jean-Baptiste Queru <jbq@google.com> Issue an error when unknown files are added to ALL_PREBUILT

Change-Id: I72b086ed7a3ad04227ce429f4d367b726d573432
e7874c430895b9a4e631c89f1e7729da9264d167 18-Sep-2010 Ying Wang <wangying@google.com> Integrate dexpreopt into the build system.

Change-Id: Id67f85d0f5c8674f5bc22e431114ca73625811ef
38a3161dc7f5fec81df9412bc202c3962c74535d 22-Sep-2010 Ying Wang <wangying@google.com> String literal change.

Change-Id: Ic1289ee3abb184b4617aa42c28e6eca812600463
ce7d5023c3df4c16ae395d64d51dd8345e40a39e 22-Sep-2010 Jesse Wilson <jessewilson@google.com> Turn dalvikvm host builds on by default when linux is the host OS.

Previously host builds were only enabled under user and user-debug
builds. This will make it easier for Androids to find out if they've
inadvertently broken host compatibility in native code.

Change-Id: Id1f2d5e189c4c1b6462fe03bab1b0f75e98a599c
b368bba41c4fb9b5c76a56cb1bd850517ef9df53 08-Jul-2010 Ying Wang <wangying@google.com> Enforce 64-bit build environment

We will only support 64-bit build environment beyond froyo/2.2 .

Change-Id: I71eb1230bf0bc12ccde2aeda6255db6a87540437
db2cb63612af2bc9e8bd7ea6d33da2218a33de2d 15-Sep-2010 Ying Wang <wangying@google.com> Change "make PRODUCT-XXX-tests" to build only tests-build-target

Change-Id: Ib1a1a7b09ea6f1c3eea84394dcd6e3ebcda81e1a
8dc8faaaeadf83353b8144cc0db58972f19f5c7e 14-Sep-2010 Joe Onorato <joeo@google.com> Add option to fail when Android.mk files change PRODUCT_* variables.

It's turned off for now.

Change-Id: I0b5a3ce5fdc7693c8ebd870312f0c2e13fdb8b22
f13bdd94dc4d4f261d7a4850d7f4cd34b88e2cab 08-Sep-2010 Dan Bornstein <danfuzz@android.com> Enable WITH_HOST_DALVIK for "user" builds on Linux.

Bug: 2497274
Change-Id: I636895b52c82f301f8c288ae670b34e1dbf32cc5
dfc5e0cb7b32c172cc6f88c890c1e6e6ef1ff2fe 03-Sep-2010 Joe Onorato <joeo@google.com> The old clean target had bit rotted.

Clean and clobber are now the same thing.

Change-Id: I4873d40496b16e13689e22c48cff1fecdffb8b40
200f25984ccc8a9e5fc13bfbcde22c17bc80d410 30-Aug-2010 Andreas Huber <andih@google.com> Build without OpenCore by default, remove obsolete opt-in to stagefright.

Change-Id: I6e08d2136147f4e279f8a5b2b3837e4317faf27c
related-to-bug: 2941153
6ba4b59c9067b747ab2a4c85621e656c4d4614e3 29-Aug-2010 Raphael Moll <ralf@android.com> SDK: add hierarchyviewer2 to windows target list.

Change-Id: I282173ab10930a716861f3774804d3d8484a71f3
2213aab8b9043d939752baa61910f970338a1e6b 03-Jun-2010 Thorsten Glaser <tg@mirbsd.org> Add new variable TARGET_SHELL := ash (default; or mksh)

Besides that, add enough magic to build everything tagged
as "shell_$(TARGET_SHELL)" and permit ash/mksh as not unusual

Change-Id: I36c0590ba49f45251d24dc179cb27c8368c3662a
ddeb150d8d300806de576430444bf1a84ff35e96 16-Aug-2010 Raphael Moll <ralf@android.com> Add easymock for list of Windows SDK targets.

Also correctly sorted the windows sdk target list.

Change-Id: I4742a0b98ece8e0693a6f346a1f09595253d65c1
0188414bc634798fa429be627cdb697daee68966 21-Jul-2010 Ying Wang <wangying@google.com> add phony target "all_modules" and use it as make goal for "mm"/"mmm"

So that mm/mmm don't depend on phony target "files", which brings in
unwanted files for apps-only build.
Also allow "dist" for mmm.
Bug: http://b/issue?id=2811503

Change-Id: I2c0794aebd1d171d8a0f44eb8cda67855704d6bd
68f9303c90253f5149e4bfe323f9ee77fdf4b380 26-Jun-2010 Chris Peterson <cpeterso@cpeterso.com> update 404'd source.android.com URLs

Change-Id: If305c7f6f3ac3624568de258bdc13b142ad32cf9
52aac20307073b8149a31d01b0b295651ea4b042 05-Jun-2010 Bruce Beare <brucex.j.beare@intel.com> Create boottarball just like systemtarball

Change-Id: I97640bc973ab1d115499878a63bff48f80b326ec
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
d2e830b9b408b95df46f628f33ced3dcbd6975d8 08-Jul-2010 Ying Wang <wangying@google.com> Enforce 64-bit build environment

We will only support 64-bit build environment from now on.

Change-Id: Ic58cb3e06e7fc9cf19a65e6c05c26f12ff9886b7
8d9cbe557d352a2af6750500f3feb57b13cd9742 08-Jul-2010 Ying Wang <wangying@google.com> Add phony target dist_libraries

that is only used to put your library into the dist dir when doing a full build.

Change-Id: I11e9dc15237086843ea4a00736c81ffc680ca12e
7d735133cd6f019ce839fa824f4507f19aff2e8f 01-Jul-2010 Ed Heyl <edheyl@google.com> Add ramdisk.img to the dist dir, again (was removed at some point) - from master - please do no merge
b/2590492 and requested again

Change-Id: I1f4efac2a8ca47f1b69761bb9233427e0ca0411d
8532aa03becfb072aa6e884d313a67bada8a5abf 01-Jul-2010 Ed Heyl <edheyl@google.com> Add ramdisk.img to the dist dir, again (was removed at some point)
b/2590492 and requested again

Change-Id: I5e4c8efddf7a202694c36231c6082089eedefa5d
aae60c0760de29b461933347c23ec32963c91e4d 29-Jun-2010 Raphael Moll <ralf@android.com> Fix to "make ddmlib ddmuilib" under Windows/Cygwin.

Needed by the latest change to sdk.git/eclipse/script/create_ddms*.sh

Change-Id: I6dfbb418cc8813c7cdfbc077705158424220724f
783f449bdc0fe8aa9f2385c22bb0831fa3d5d1c9 01-Jul-2010 Ying Wang <wangying@google.com> Don't copy apns-conf.xml for apps-only build

http://b/issue?id=2796939
This can fix commands mm and mmm in an unbundled branch.
The cause is that mm & mmm depends on phony target "files", which includes apns-conf.xml.

Change-Id: I72ce1c7c5ddfdcd3bbea5cb9645ca3a48ff8ac12
77dfeaed2ac068770cd29b314e7697afd7c1741c 22-Jun-2010 Jeff Hamilton <jham@android.com> Switch the required host Java environment to 1.6.

The path to the Java toolchain is now explicitly
specified so no manual configuration should be
required.

Change-Id: I84abc122c557372e77e4579e9a9efe56af2b412c

The java version changed, and we made envsetup automatically find the right JAVA_HOME.

This change forces everyone to re-source envsetup.sh

Change-Id: Ieb9512d5725cca26a83debf9b0480bc20e19d5ee

Fix javadoc for Java 6.

If you don't set bootclasspath, there would be errors like:
javadoc: error - In doclet class DroidDoc, method start has thrown an exception java.lang.reflect.InvocationTargetException

Change-Id: I1b83360cb595d50577c6043d6e91b0f92e4c04d6

Avoid inheriting PRIVATE_BOOTCLASSPATH from moduels that depend on api-stubs-timestamp

The inherited value has caused build breakage on Mac build.

Change-Id: I8a1b1d6c6d411f6aaaee2d8dbd0297e3d60ab5c2

Ignore STAY_OFF_MY_LAWN when setting JAVA_HOME.

Don't check STAY_OFF_MY_LAWN in set_java_home. That function already
refuses to update JAVA_HOME if it's set to something, which should
be sufficient for anybody who doesn't want the script to mess with it.

With this change, you can get the benefits of the 1.5/1.6 auto-selection
without having to suffer through window title changes.

Change-Id: I5cfc5d6fdf26a10b42b52925f877012c0506b9a5
c048c9b598b36dc7506a954cc0d3d80f308b1b13 25-Jun-2010 Ying Wang <wangying@google.com> default empty tapas to TARGET_BUILD_APPS "all"

So that "tapas" without argument won't end in makefile-could-not-load error in unbundled branch.
Also, the magic "all" apps will build only apps, not other things.

Change-Id: Iac6dd928ee4e42996147acdab31930cd4ffa1768
e3bbae0382e887b69c8657bb793e3d492de55f49 24-Jun-2010 Andreas Huber <andih@google.com> Remove now unnecessary property overrides to opt into stagefright.

Change-Id: I9810030e5576ac5a9cb31fcf0ce3f0baa96f6f40
related-to-bug: 2370115
4a1c70e53be40fd1b2c14eb7c0acc93f6df865bc 22-Jun-2010 Jeff Hamilton <jham@android.com> Switch the required host Java environment to 1.6.

The path to the Java toolchain is now explicitly
specified so no manual configuration should be
required.

Change-Id: I84abc122c557372e77e4579e9a9efe56af2b412c
4b137047210a1e64df1ebc0807d4eeeac7052c1e 21-Jun-2010 Guang Zhu <guangzhu@google.com> restore emma changes overwrittern by I9174f843

Change-Id: Ic5199ddfdaa2f8366bda960be84464945726e2f5
d83f33969aa2734000338e01b84957996ef1bb34 12-Jun-2010 Ed Heyl <edheyl@google.com> Revert "Merge "Switch the required host Java environment to 1.6." into kraken"

This reverts commit 1f29d2c376295cb7ba909ae2beb4904099546e89, reversing
changes made to f9f513ab3386e0ab61cb072170b4b65f0d124732.
da12daf15f2e6aef7e94f340d23bc435ddc025f4 10-Jun-2010 Joe Onorato <joeo@android.com> Add a tapas command.

(Actually there was a tapas command that just called choosecombo).

The new better tapas command is for building unbundled apps. Run
it with one or more modules to build and optionally a build variant.

tapas [variant] App1 App2 ...

If you don't supply a build variant, it defaults to eng.

Change-Id: I02214abd0b5ad02e364fcb024e10cf6ad17a9e68
16fa4b290e8ce76652c9ba0ba16b80578456ab95 10-Jun-2010 Joe Onorato <joeo@android.com> Rename is_unbundled_app_build and UNBUNDLED_APP_BUILD to TARGET_BUILD_APPS.

Change-Id: I79e6f60e009dad3a48709962347441e4ca0c337a
d41c06539c2c8f39d4f434efb1f69a31773a2566 09-Jun-2010 Jeff Hamilton <jham@android.com> Switch the required host Java environment to 1.6.

Change-Id: Ic289e35a747b6f462816aca159acba6d400829c9
e4fb7ccd9bb17f90670059992b07c908464c7952 09-Jun-2010 Jeff Hamilton <jham@android.com> Make the Java version check non-fatal to aid in the switch to 1.6 on the build servers.

Change-Id: Ieb0779ef54cdfa921a8dbfb1041536f8969d22e4
529113098350c026ec521258d4c6fba51f285a48 26-May-2010 Ying Wang <wangying@google.com> Cherry-pick unbundled build changes from master

Change-Id: I82cab32f00b7b729d9b01c8e1532c8bf0ad2fb92
00f3a02b0fb9796dc56940d48f6776289fbdf3a1 20-May-2010 Ying Wang <wangying@google.com> Improve on unbundled app build

1. build only apps specified in APP-xxx.
2. support building multiple apps in a single make: make APP-Gmail-GmailTests-xxx

Change-Id: I863d3b503a240ae43652e9b18043b60416bcc25a
ebd5a9e11f34d7980d0cb3ef07f32aa4ae8e834f 11-May-2010 Ying Wang <wangying@google.com> Dist unbundled app.

Change-Id: Ib4c01b2623ec1059b66c541cc35eae4d2d811ef3
http://b/issue?id=2667113
1a031e411ef5eca621c1958103407a6dc40a5114 11-May-2010 Ying Wang <wangying@google.com> Support for unbundled app build

With this CL, run "make APP-{appname}" to build unbundled app in
the unbundled app src tree.
See http://b/issue?id=2667113

Change-Id: I1d753db795142508bc841ae66b4408220ab687c5
18b75566429107b147368f8e392f6b25f975f5ee 14-May-2010 Guang Zhu <guangzhu@google.com> Squashed commit of the following (DO NOT MERGE):

commit 7401608f3b9b52b3348e32ec9fefe7583d6c2fa4
Author: Guang Zhu <guangzhu@google.com>
Date: Fri Apr 23 11:54:37 2010 -0700

collect emm meta files for emma instrumented build

when doing 'make dist', with EMMA_INSTRUMENT on the coverage.em files
generated for each module will be collected into one emma_meta.zip file

Change-Id: I382c39a97005e6cae5c79ad7eaef1c8857f658af

commit 8376d70938f6507d54b66fe5832a637aa883974e
Author: Guang Zhu <guangzhu@google.com>
Date: Wed Mar 10 15:48:03 2010 -0800

enhancement for building app with emma code coverage

* global filter to avoid applying instrumentation on emma classes
* remove local variable information at dex step instead of compile time

Change-Id: If04c27bc717f34816077a98ead9ceb0dbcbb0d2f

Change-Id: I971bd0f291bede2568b21347247d37a7d035c661
77dc0a58e27fe7c3fcdb67bbee71010c59dd4344 18-May-2010 Joe Onorato <joeo@android.com> Add a rule that builds an eclipse project file for an app.

Type make ECLIPSE-<app1>-<app2>... with the apps as listed in LOCAL_PACKAGE_NAME.

Change-Id: Ieb96dfc9dfc13bdf1b3be53572092fc7bc695869
045d4af72d487ed3b21dfdf951ecb41ad5609a80 30-Apr-2010 Jean-Baptiste Queru <jbq@google.com> Adapt to new location of libcore

Change-Id: Ibabfe907f00522c1966ddc333352eaea2bdcb5bd
60bc203660224ffd7244a17d13e7a6f90b5cd0d0 30-Apr-2010 Jean-Baptiste Queru <jbq@google.com> Adapt to new location of libcore

Change-Id: I17a2f432f69bd0cb381e83b6395fb2ae6e4faf9d
9e39fdb64acb1dd25f769aeb89c0534768fb80b5 30-Apr-2010 Jean-Baptiste Queru <jbq@google.com> Adapt to new location of libcore

Change-Id: I248bd34ceb3394a4e8f10135ed6fba19d8343b3c
aa000340af86e298eddd43aa6f0020793bee6fcb 30-Apr-2010 Jean-Baptiste Queru <jbq@google.com> Adapt to new location of libcore

Change-Id: Ib32222c3541b2aa66df6d6a5519049653647aae7
f38069243078629d3ebe127a06b72be911f2dd74 23-Jan-2009 Evan JIANG <firstfan@gmail.com> Fix "make modules" script bug under Mac OS X.

For Mac OS uses BSD sed, it doesn't support "\n". Then, "make modules"
command cannot work correctly under Mac OS. Using tr command to replace
sed command, it has the same behavior under both Mac OS and Linux.

Change-Id: I29e044cc66bf24f6459cbb33164fd9f55f772e3c
bfa25878f976173af752fa91dcc526a6e4e75080 18-Apr-2010 Raphael Moll <ralf@android.com> Remove obsolete machine-setup.html reference.

Bug 1231

Change-Id: I629361cf5dddc9d0fbf493e016f1aaf2a50b6935
a37a2cb23159709260f248b46428987c9aeb2998 28-Apr-2010 Ying Wang <wangying@google.com> Dist only if the goal is to be built

Change-Id: I1b794f36a6dc39ce68cc990b967d2d55118c92ca
http://b/issue?id=2635603
ee7971132250c735b5cf11ae10d1961dc81d724a 26-Apr-2010 Ying Wang <wangying@google.com> Add ramdisk to dist. [DO NOT MERGE]

cherry-pick from master.
http://b/issue?id=2590492

Change-Id: I1a8f0313a486665847b27fb58ac9a57881d5e913
0198d6ebb457d11797deb414c51b8897c67f7f10 23-Apr-2010 Guang Zhu <guangzhu@google.com> collect emm meta files for emma instrumented build

when doing 'make dist', with EMMA_INSTRUMENT on the coverage.em files
generated for each module will be collected into one emma_meta.zip file

Change-Id: I382c39a97005e6cae5c79ad7eaef1c8857f658af
8b9b39e995407a025ed9bc87b5062194f1b5f51f 26-Feb-2010 Ying Wang <wangying@google.com> Add phony target to build and dist sample code.

See http://b/issue?id=2468418
After this CL, add "samplecode" to your make goals, you will get the sample apks
built and installed at out/target/common/samples/.

Change-Id: Iff83f2ba6b6c2fe6ac1c78ca4a9d4bc6953dac8a
929cdf3313e50df136f483f92205ab74ae77e8b5 20-Apr-2010 Ying Wang <wangying@google.com> Add ramdisk.img to the dist dir.

Change-Id: Ia74c501298010734dd1b8db8df86720d3e8bb7cd
http://b/issue?id=2590492
9ca1628e3f565607e1fdef71b570d3ddb5ec09df 17-Apr-2010 Raphael <raphael@google.com> Support building Windows SDK under Linux.

- envsetup.mk & config.mk: we define a new BUILD_OS and a minimal set
of things like BUILD_OUT to be able to use some local tools when
doing cross-compilation. This allows us to use the Linux version of
ACP when cross-compiling the tools to Windows.

- Makfile: include windows_sdk.mk when needed to build a Windows SDK.

- main.mk: support a win_sdk target (e.g. PRODUCT-sdk-win_sdk)

(Merge master Change I9d08d0df)
3d224a0fc9ed34ac4c3c79c479d5c6dc5c31b87c 17-Apr-2010 Raphael <raphael@google.com> Support building Windows SDK under Linux.

- envsetup.mk & config.mk: we define a new BUILD_OS and a minimal set
of things like BUILD_OUT to be able to use some local tools when
doing cross-compilation. This allows us to use the Linux version of
ACP when cross-compiling the tools to Windows.

- Makfile: include windows_sdk.mk when needed to build a Windows SDK.

- main.mk: support a win_sdk target (e.g. PRODUCT-sdk-win_sdk)

Change-Id: I9d08d0df598b8a7292532d23c55f48101a95a240
135677a71800c27d7747b5c86712d05a74392f62 17-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> For userdebug builds, enable Dalvik lock contention sampling.

Change-Id: I75cca6fc0ac0d0adfc059a8f82b2f6ae584361f3
7058f499e9a74151f6ea137697cd5b2101182782 13-Apr-2010 Raphael Moll <ralf@android.com> Fix "make layoutlib" under Windows+Cygwin

Change-Id: I5277afe77f1e3367ecfd0933a9ab14a5a42c2be2
139e33243bbe92858f39919c220a4d65fe8790bd 01-Apr-2010 Ying Wang <wangying@google.com> Add symbols.zip and build.prop to sdk dist.

Change-Id: I667f5ef847a6e8e78c6b3df5c2b092bb5d863955
http://b/issue?id=2394164
6714dbc236bf5dccba6778aa83223ee8555a6157 31-Mar-2010 Ying Wang <wangying@google.com> Add comments for ANDROID_BUILD_SHELL

Change-Id: I71f0a1a08b097cd179bbcb684a9114267f9bf0db
2ce495a0a7986fcd458954f1cae8cd1b030091d0 30-Mar-2010 Ying Wang <wangying@google.com> Allow use of alternative to bash as the build shell.

Change-Id: Ib92217f90c98e04a1d16efd4904d9d7ba9dda3cf
http://b/issue?id=2557214
9a6a1e33b3010e8ba1a47c95b691dfa09e73ffa3 18-Mar-2010 Ying Wang <wangying@google.com> Add android-info.txt to the dist dir.

Change-Id: I735655205085b0baf490b0dd011eb59cb6d4c45b
http://b/issue?id=2524072
b464b5e82ee76427634492614dcb64a6917eb33d 24-Feb-2010 Xavier Ducrohet <xav@android.com> The builders project is gone. Remove it from main.mk

Change-Id: Ibec7be55667e83d635e1de990772e2730d0e75ff
5dc8a659174abf68df351049679b38e32a162c5c 17-Feb-2010 Fred Quintana <fredq@google.com> remove obsolete property ro.config.sync
719a123a587da473fde4907c1bcda29e20e23dfe 17-Feb-2010 Raphael <raphael@google.com> Allow sdk/builders to be built using Windows SDK.

Change-Id: Ic3c8bc2bace166442bf780b625e5d528fea4df9f
e749b5a71abe9c3659921c50cc4468a1a4f984f5 23-Jan-2010 Raphael <raphael@google.com> Fix windows make: layoutlib_api moved to sdk.git too.

Change-Id: Ia030eda4514361b20a5ecb29c997ab625909228c
7ba6359d3f09a0b2760265f0b41e8a2208251347 13-Jan-2010 The Android Open Source Project <initial-contribution@android.com> android-2.1_r1 snapshot
4e7b0e21c538fc44b616aa4c9e8a2f3e933ce545 12-Jan-2010 Raphael <raphael@google.com> Add etc1tool to Windows SDK.

SDK BUG 2368918

This depends on Change I83485145 from development.git.

Change-Id: I1b4f5e39bd08c0cfbb656f2857921fb5ad305812
75127b769e20490f3348802e6b708d67c60c2b04 07-Jan-2010 Jean-Baptiste Queru <jbq@google.com> Remove special-handling of the restricted tag.

Nobody is using it any more, and it'd be too easy to
make a build system change that wouldn't properly handle it.

Change-Id: Ia61232ff944c34c46932c1885b2b0ec1b479566b
6907cfe7de2007b0320f4606d9ea62da2062d3ca 07-Jan-2010 Jean-Baptiste Queru <jbq@google.com> Remove special-case where CLASS=apps ignored TAGS=user

Also add a warning when there's TAG=user on a CLASS=apps module,
as this is not what people normally intend (this should be handled
in core.mk instead).

This used to be a source of confusion, with people using TAGS=user on
APPS and non-APPS modules, and being surprised to see some of those
included but not others.

Change-Id: I56b5618a556abdc6b841bf7a943d77c20fe9a4c5
64b00e3f98a15db0ef6dfe83e3c2141b9b483631 17-Dec-2009 Andreas Huber <andih@google.com> Squashed commit of the following:

commit b03d5f537dee393affddf89663ae6977a5512d98
Author: Andreas Huber <andih@google.com>
Date: Thu Dec 17 14:00:37 2009 -0800

Update cleanspec to facilitate incremental building with full stagefright lib.

commit b92560a1989f8b9cb27a8772cec5346d3d90dc84
Author: Andreas Huber <andih@google.com>
Date: Thu Dec 17 13:31:48 2009 -0800

Enable building stagefright in all builds, make stagefright the default player.
d920ec8354940653e6cf53a1540360cca3bcc5f7 18-Nov-2009 Raphael <raphael@google.com> Fix a Windows-only discrepency in the Windows SDK build.

For some reason, there's a slight behavior difference between
my Windowss machine and the Windows build servers, that is on
mine the include of framework/base results in duplicate build
rules being defined. My machine used to work like the Windows
build server and the behavior mysteriously changed a while
ago. This change should make it all work the same on all boxes.

Change-Id: I45e02e9eadfc586f86caa6a2690deda9648e600d
a62a442129a28bf3a62139183868a13b91e976ad 18-Nov-2009 Raphael <raphael@google.com> Fix the Windows SDK build for the development to sdk split.

Change-Id: Iabeee6aa319a3d98d05357f508b190ba65196df7
573205f4838cf0369fd6a7028c793726d1eb8620 18-Nov-2009 Dan Egnor <egnor@google.com> Remove external/googleclient (the code moved elsewhere)
e6b4e5b20ac8a3b01f1a99dd877a98c92036ce5e 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
ceb18f8923ca85203094b2b0702f5d81c0622c46 05-Nov-2009 akushner <akushner@gmail.com> Added prune options to findleaves.sh to ignore the .git and .repo
directories since the Android.mk files will not be found in these
directories.

Prunning out these directories decreased the make parse by nearly
a minute on a cold cache and eliminated 60,000+ stats on files in
the .git and .repo directories.
170e1d59f6cf8176c30a5672267fb8be6d1076c6 04-Nov-2009 Fred Quintana <fredq@google.com> add the new accounts and sync package to the generic target and enable sync for all builds
aa569862dee45bfa72d342e9982cb5205df9bf04 13-Oct-2009 Raphael <raphael@google.com> Windows SDK: support tools/sdklauncher and tools/layoutopt

Change-Id: Iac7d7a0cdc439b2bb1e334e82fe0f354b14d7001
0889661cd890e49a4827da0dc5d583274347d178 07-Oct-2009 Joe Onorato <joeo@android.com> eng builds only -- make the thing that makes setupwizard optional actually work.
03b09fd33fef282dfe684ca6ae167c41282ae08b 03-Oct-2009 Jean-Baptiste Queru <jbq@google.com> Remove temporary vold logic
28fcfdd7dd8752bc9accf800306d82a3a8d138da 19-Aug-2009 Raphael <raphael@google.com> Fix broken server Windows SDK build.

I removed these lines because for some reason building under Windows
fails for me when they are present. However the build server breaks
so I'll rolling them back and I'll try to understand that later.
f6ff4c5acf428d4b0cba828b836f1e11fa1442b4 18-Aug-2009 Raphael <raphael@google.com> Windows: Fix platform build.
31a8ac22585b2a8263892487bd38b64783402e06 12-Aug-2009 Raphael <raphael@google.com> BUG 1993354 : Add zipalign to Windows SDK
dc1a728fb89677589bf3b5e3a5aab58164c9be6b 04-Aug-2009 Joe Onorato <joeo@android.com> Rewrite findleaves.sh in python

This cuts the make startup time by about 30 seconds. Python is faster
than bash in this case, and also we can now supply multiple directories
to prune, and skip the .repo directory, which is, uh, big.

This is from my mac laptop:

$ time build/tools/findleaves.sh --prune="./out" . Android.mk > /dev/null

real 0m29.186s
user 0m0.550s
sys 0m5.897s

$ time build/tools/findleaves.py --prune="./out" . Android.mk > /dev/null

real 0m4.701s
user 0m0.645s
sys 0m1.294s

$ time build/tools/findleaves.py --prune="./out" --prune="./.repo" . Android.mk > /dev/null
real 0m0.176s
user 0m0.094s
sys 0m0.080s
1de66889ec97300eb92166e849c4f9251e0290c6 30-Jul-2009 Joe Onorato <joeo@android.com> Don't check build tools versions (including javac) every time make is run.

This trims off another 1/3 of a second from incremental build times.
VERSION_CHECK_SEQUENCE_NUMBER can be incremented to force a check.
ead9646f1f7ab91fd5738471acc706faeb99dc72 30-Jul-2009 Joe Onorato <joeo@android.com> Don't run findleaves.sh if we're doing ONE_SHOT_MAKEFILE.

This cuts the minimum mmm time from 17 seconds to 5 seconds on my mac pro.
b7c41aaad02e39e692362d0f2eed86c3e2008271 20-Jul-2009 Joe Onorato <joeo@android.com> Add a separate version of the docs build that only does the stubs.

That way we don't have to wait for clearsilver to write the thousands
of html files during every build.

(This is the build change, there is also a frameworks/base change)
e334d255dc8f85d610f4d0339227a0b985494811 17-Jul-2009 Joe Onorato <joeo@android.com> Speed up the full build.

Now, by default, instead of fully building everything,
we skip dexing the modules that aren't going to be included
in the current build.

This will slow down some of the incremental builds (like tests),
but it improves the regular eng build from 27.5 minutes on my
Mac Pro to 25 minutes. That's not as much of an improvement
as I had hoped for, but it's still better.

There is also a change in here that puts the java-source-list
file which is used to get around limited command line lengths
in the proper directory. Before this change, it was an
accident that the directory for that file existed!
8e879ba1c5fe11623b4048cf318afca47a3433c5 08-Jul-2009 San Mehat <san@google.com> Revert "Ensure that /system/etc/vold.conf is created in the "generic" product."

This reverts commit ff2c9deb7966f79572d502a7048a3e6f0f9939b8.

This breaks SD cards on the device (always installs the emulator vold.conf)
87c86573e051602ddc2759857c961fe5124bc22a 23-Jun-2009 Patrick Scott <phanna@android.com> Move the BoardConfig.mk search and inclusion to core/config.mk.

This allows TARGET_ARCH_VARIANT to be set by the vendor before we choose the
architecture in core/combo/select.mk.

Also add a primitive armv7-a.mk for turning on hardware floating point.
9d9f367895655411c42123177ae1c32f104b3c01 23-Jun-2009 Joe Onorato <joeo@android.com> Java 1.5 is required. Enforce it.
1f04a3b8f4c4e886e8abd9a5a1076334ae12124e 09-Jun-2009 Patrick Scott <phanna@android.com> Fix the is_sdk_build check when installing the apns.

This will install the big list of apns on non-sdk eng builds. This is very
helpful after a wipe data for those of us on Cingular.
d8a6ac100009f2fb158e26d9f7199d800eb57887 05-Jun-2009 Raphael <raphael@google.com> Add archquery to the windows make
ecc70d705ab8ad6461f23d8be97791227f4219ea 22-May-2009 Dianne Hackborn <hackbod@google.com> Define TARGET_CPU_ABI for finding native code in .apks
eefd0212f10ec83b21d1792130b4cad02d2ce4d5 13-May-2009 Joe Onorato <joeo@android.com> Print the platform version and version codename in the big build header.
9058e7293e045b576b19101e41b65f67f8f6309b 24-Apr-2009 Raphael <raphael@google.com> Remove obsolete activitycreator from windows SDK makefile.
a779a05e7eecf91d33590787075a8cbef4c270ac 16-Apr-2009 Raphael Moll <> AI 146498: am: CL 145983 am: CL 145911 ADT #1778786: tool to generate stubbed jar file.
This is only a preliminary CL. More will follow but this is
a good start, with the following caveats:
What it does:
- take an input jar, a list of includes, a list of excludes.
- generate actual Java source for the filtered classes.
What it doesn't do yet:
- some more work on filtering inner elements (methods, etc.)
- properly generate inner classes.
- hide synthetic fields.
- some classes body are missing
- directly generate a stubbed bytecode/jar rather than source.
I'll likely want to keep the source generator for debugging
purposes or if we want to integrate with a build system instead.
- classpath will be changed in the final CL to refer to the external
ASM lib rather than the project. I need the source for debugging
rigth now.
- will review comments before submitting.
Original author: raphael
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 146498
a190c523afcee348359ff7e6f6487b5b3742a448 14-Apr-2009 Raphael Moll <> AI 145983: am: CL 145911 ADT #1778786: tool to generate stubbed jar file.
This is only a preliminary CL. More will follow but this is
a good start, with the following caveats:
What it does:
- take an input jar, a list of includes, a list of excludes.
- generate actual Java source for the filtered classes.
What it doesn't do yet:
- some more work on filtering inner elements (methods, etc.)
- properly generate inner classes.
- hide synthetic fields.
- some classes body are missing
- directly generate a stubbed bytecode/jar rather than source.
I'll likely want to keep the source generator for debugging
purposes or if we want to integrate with a build system instead.
- classpath will be changed in the final CL to refer to the external
ASM lib rather than the project. I need the source for debugging
rigth now.
- will review comments before submitting.
Original author: raphael
Merged from: //branches/cupcake/...

Automated import of CL 145983
eb19b3e0d1189cc7833f185a067c9f80b5487707 14-Apr-2009 Joe Onorato <> AI 146003: am: CL 145850 am: CL 145512 SDK add-on updates
- rename the directory and zip file
- make it build to the dist directory
Original author: joeo
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 146003
743e250b3010408ec92903f7de009f059c61ffb3 13-Apr-2009 Andy McFadden <> AI 145942: Enable type-precise GC on sapphire builds.

Automated import of CL 145942
a7bfb4f382af7c73771282fb395d47f5f374887a 13-Apr-2009 Raphael Moll <> AI 145911: ADT #1778786: tool to generate stubbed jar file.
This is only a preliminary CL. More will follow but this is
a good start, with the following caveats:
What it does:
- take an input jar, a list of includes, a list of excludes.
- generate actual Java source for the filtered classes.
What it doesn't do yet:
- some more work on filtering inner elements (methods, etc.)
- properly generate inner classes.
- hide synthetic fields.
- some classes body are missing
- directly generate a stubbed bytecode/jar rather than source.
I'll likely want to keep the source generator for debugging
purposes or if we want to integrate with a build system instead.
- classpath will be changed in the final CL to refer to the external
ASM lib rather than the project. I need the source for debugging
rigth now.
- will review comments before submitting.
BUG=1778786

Automated import of CL 145911
03fbe40d5346eb4d5258aa55a00a9a7cb18f8551 13-Apr-2009 Joe Onorato <> AI 145850: am: CL 145512 SDK add-on updates
- rename the directory and zip file
- make it build to the dist directory
Original author: joeo
Merged from: //branches/cupcake/...

Automated import of CL 145850
15ca0bd5d0a028fd8e42f72a45f17d8e1ee67485 09-Apr-2009 Joe Onorato <> AI 145512: SDK add-on updates
- rename the directory and zip file
- make it build to the dist directory

Automated import of CL 145512
f3e79f904198f69ca2a954c4750a174c41d1c7a2 07-Apr-2009 Xavier Ducrohet <> AI 144767: am: CL 144765 am: CL 144764 Fix the SDK build to properly package what needs to go in the system image (bug #1761105)
Original author: xav
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 144767
6a769427c85343e85fe733b1a7c6115b3c8ef291 07-Apr-2009 Xavier Ducrohet <> AI 144765: am: CL 144764 Fix the SDK build to properly package what needs to go in the system image (bug #1761105)
Original author: xav
Merged from: //branches/cupcake/...

Automated import of CL 144765
f39ac4218bbe3a0e07738d92675b23cad6484b63 07-Apr-2009 Xavier Ducrohet <> AI 144764: Fix the SDK build to properly package what needs to go in the system image (bug #1761105)
BUG=1761105

Automated import of CL 144764
ff2c9deb7966f79572d502a7048a3e6f0f9939b8 01-Apr-2009 David 'Digit' Turner <digit@android.com> Ensure that /system/etc/vold.conf is created in the "generic" product.
This is necessary to let the emulator mount SD Card images properly through the "vold" mounting daemon
d9b64e1350fabfeac1c4d31c7a773302be01b3bf 01-Apr-2009 Raphael Moll <> AI 143880: am: CL 143879 am: CL 143876 Include hprof-conv in SDK (bug #1640225)
Original author: raphael
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143880
a401b054a44c3ee72912542d66d41293bdb33b65 01-Apr-2009 Raphael Moll <> AI 143879: am: CL 143876 Include hprof-conv in SDK (bug #1640225)
Original author: raphael
Merged from: //branches/cupcake/...

Automated import of CL 143879
e340277c06a67db89d1de1205a8014ee871de2c2 01-Apr-2009 Raphael Moll <> AI 143876: Include hprof-conv in SDK (bug #1640225)
BUG=1640225

Automated import of CL 143876
6bce2058567443a02cf80ee3692ff97139b63579 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
fdd3a1020cc63c9f2440f3cff814318d11d6c773 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
2f31293ba78695cb48ac5a1cab835197ace58d47 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
88b607994a148f4af5bffee163e39ce8296750c6 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
05806d7af62e07c6225b2e7103a1b115ecf6c9ad 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
094268cf8cb37b9d904c8a1e3559cdd46d73cf66 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
a9b22497534d404bf956cdcc0941e20057219a2a 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
4d23ccc023c8b98eb97a7cce820aa80bff2f3522 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
41977d7cd2f0676a1b135a0991545721d6dce3ef 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
475fa12adef8fc2b08290555a33dc8a9fef05be4 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
35cfb08c588ba0af98ad0845ced6a9eeeeca4054 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
66339ad5cebeae8f4cbf7e335c67368abbb91223 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
45bf3d242467b41e1bc04d8c75a688b8948b67b1 14-Jan-2009 Sriram Raman <sriramkraman@google.com> Fix make dist to create img and other zip files on master.
4f85cc54b3347e00e32a07cae4fd5473987b71af 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
dcc08f073b6873c69ab891d4f69f7c568e282df7 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
6942cfff6c694865fa27fba50ea91bfd62f218bb 19-Nov-2008 Dave Bort <dbort@android.com> Fix "make dist"

Remove a dependency on the OTA package for now.
7572f52897146d6435db7bdcbc05f3f6559e207a 04-Nov-2008 Dave Bort <dbort@android.com> Install apns-conf_sdk.xml if no other apns-conf.xml is specified

This should make data work in generic emulator builds.
6dbec6f8447b5c33786edc0d41fabf822fac84d8 25-Oct-2008 Brian Swetland <swetland@google.com> revive the TINY_ANDROID build option

- update core/main.mk to include the right top-level directories
- disable tasks/apicheck.mk in TINY_ANDROID builds to prevent failure
b6c1cf6de79035f58b512f4400db458c8401379a 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution