OSDN Git Service

android-x86/build.git
10 years agoExclude libstdc++ and libgcc if libc++ is requested.
Ying Wang [Fri, 23 May 2014 23:42:37 +0000 (16:42 -0700)]
Exclude libstdc++ and libgcc if libc++ is requested.

Bug: 15174002
Change-Id: I24fe428c3520f76cd61f0660b59ba18a1f2d2dad

10 years agoMerge "Add HOST_PREFER_32_BIT to support 32-bit-by-default multilib build"
Ying Wang [Fri, 23 May 2014 17:39:40 +0000 (17:39 +0000)]
Merge "Add HOST_PREFER_32_BIT to support 32-bit-by-default multilib build"

10 years agoMerge changes Ibc943b75,Ib4ccf373,I30ff439b,I7bde0130
Colin Cross [Thu, 22 May 2014 19:28:01 +0000 (19:28 +0000)]
Merge changes Ibc943b75,Ib4ccf373,I30ff439b,I7bde0130

* changes:
  set a prebuilt directory name for the 2nd arch
  add vendor directories to gdb shared library search path
  add 2nd arch gcc to the path
  fix paths when 2nd arch gcc is a different version

10 years agoset a prebuilt directory name for the 2nd arch
Colin Cross [Thu, 22 May 2014 19:01:23 +0000 (12:01 -0700)]
set a prebuilt directory name for the 2nd arch

In order to install 32-bit gdbserver on a 64-bit build,
prebuilts/misc/Android.mk needs to know the prebuilt directory name
for the 2nd arch.

Change-Id: Ibc943b758eb9404f7f5f9fbbd8720cc67f6a6f01

10 years agoadd vendor directories to gdb shared library search path
Colin Cross [Thu, 22 May 2014 18:59:10 +0000 (11:59 -0700)]
add vendor directories to gdb shared library search path

Change-Id: Ib4ccf3739d6b2f14597605ce06f00e4776f67976

10 years agoadd 2nd arch gcc to the path
Colin Cross [Thu, 22 May 2014 18:58:40 +0000 (11:58 -0700)]
add 2nd arch gcc to the path

Add the 2nd arch gcc to the path so users can manually run gdb,
addr2line, objdump, etc.

Change-Id: I30ff439bb6548b897d13bfa87151991d5f2948b3

10 years agofix paths when 2nd arch gcc is a different version
Colin Cross [Thu, 22 May 2014 18:57:43 +0000 (11:57 -0700)]
fix paths when 2nd arch gcc is a different version

arm64 is using gcc 4.9, arm is using gcc 4.8.  Fix setpaths() to
get a separate version for the 2nd arch.

Change-Id: I7bde01308fc7718360e7d0fbd46b3ae8c5f55fa7

10 years agoMerge "Add some more flags to CLANG_CONFIG_UNKNOWN_CFLAGS"
Ying Wang [Thu, 22 May 2014 17:38:01 +0000 (17:38 +0000)]
Merge "Add some more flags to CLANG_CONFIG_UNKNOWN_CFLAGS"

10 years agoMerge "Split the rules to build the odex file"
Ying Wang [Thu, 22 May 2014 02:24:59 +0000 (02:24 +0000)]
Merge "Split the rules to build the odex file"

10 years agoMerge "Clarify multiarch warnings"
Dmitriy Ivanov [Thu, 22 May 2014 01:22:00 +0000 (01:22 +0000)]
Merge "Clarify multiarch warnings"

10 years agoClarify multiarch warnings
Dmitriy Ivanov [Wed, 21 May 2014 23:38:03 +0000 (16:38 -0700)]
Clarify multiarch warnings

 * Show multiarch related warnings only if my_module_multilib is both

Change-Id: If0c467c1d9b953bd3f40949ab4b97d9329ec021f

10 years agoSplit the rules to build the odex file
Ying Wang [Wed, 21 May 2014 23:13:33 +0000 (16:13 -0700)]
Split the rules to build the odex file

Previously the odex file is byproduct generated by the package.apk rule.
Though we have the odex file depend on the package.apk it doesn't have
its own build recipe. In case package.apk isn't updated but we still
need to update the odex file (such as changed LOCAL_MULTILIB), the odex
file will never be rebuilt.
This change split out the rules to build the odex file and make sure the
build recipe get executed if the odex file needs rebuild.

Change-Id: I60c2f32b536b3d59045301ee863aae1451734aad

10 years agoMerge "libctest: zap"
Mark Salyzyn [Wed, 21 May 2014 21:02:10 +0000 (21:02 +0000)]
Merge "libctest: zap"

10 years agolibctest: zap
Mark Salyzyn [Wed, 21 May 2014 20:27:58 +0000 (13:27 -0700)]
libctest: zap

Change-Id: Ia3ff0cad0995af428adf2dbdf10587dae904ec7d

10 years agoMerge "Remove netd_client. It has moved to the internal tree."
Sreeram Ramachandran [Wed, 21 May 2014 16:59:25 +0000 (16:59 +0000)]
Merge "Remove netd_client. It has moved to the internal tree."

10 years agoRemove netd_client. It has moved to the internal tree.
Sreeram Ramachandran [Wed, 21 May 2014 16:55:44 +0000 (09:55 -0700)]
Remove netd_client. It has moved to the internal tree.

Change-Id: Iffcdb4900373c05086fd1085b861b6520065b7a3

10 years agoAdd HOST_PREFER_32_BIT to support 32-bit-by-default multilib build
Ying Wang [Tue, 20 May 2014 21:43:51 +0000 (14:43 -0700)]
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

10 years agoMerge "Support to extract JNI libs from prebuilt APK"
Ying Wang [Wed, 21 May 2014 01:02:57 +0000 (01:02 +0000)]
Merge "Support to extract JNI libs from prebuilt APK"

10 years agoSupport to extract JNI libs from prebuilt APK
Ying Wang [Sat, 19 Apr 2014 03:13:41 +0000 (20:13 -0700)]
Support to extract JNI libs from prebuilt APK

Use LOCAL_PREBUILT_JNI_LIBS to install prebuilt JNI libraries extracted
from the prebuilt apk, or prebuilts as source, to the app specific lib path.
LOCAL_PREBUILT_JNI_LIBS accepts 2 kinds of files:
- Files like @path/to/libfoo.so (path inside the apk) are JNI libs
  extracted from the prebuilt apk. In this case, all embedded JNI libs
  inside the prebuilt apk are stripped.
- Files like path/to/libfoo.so (path relative to LOCAL_PATH) are
  prebuilts in the source tree.

Those prebuilt JNI libs are not defined as modules in the build system,
so this works around possible module name conflict.

Bug: 13170859
Change-Id: I91bb844cc11b3621a85733bc7e8910f168957ef0

10 years agoMerge "The generic_arm64 system image is full."
Elliott Hughes [Tue, 20 May 2014 21:48:10 +0000 (21:48 +0000)]
Merge "The generic_arm64 system image is full."

10 years agoThe generic_arm64 system image is full.
Elliott Hughes [Tue, 20 May 2014 21:37:51 +0000 (14:37 -0700)]
The generic_arm64 system image is full.

Change-Id: I454c674033525f2f7847d2c91979dff8093c335b

10 years agoMerge "Fix extra/missing : in path setup."
Christopher Ferris [Tue, 20 May 2014 21:18:50 +0000 (21:18 +0000)]
Merge "Fix extra/missing : in path setup."

10 years agoFix extra/missing : in path setup.
Christopher Ferris [Tue, 20 May 2014 20:56:00 +0000 (13:56 -0700)]
Fix extra/missing : in path setup.

Change-Id: I4d95efc781c58af704012922d95841e009bf6286

10 years agoMerge "Use aarch64-linux-android-4.9 for arm64 build (attempt #4)"
Ben Cheng [Tue, 20 May 2014 16:00:07 +0000 (16:00 +0000)]
Merge "Use aarch64-linux-android-4.9 for arm64 build (attempt #4)"

10 years agoUse aarch64-linux-android-4.9 for arm64 build (attempt #4)
Ben Cheng [Mon, 19 May 2014 23:22:21 +0000 (16:22 -0700)]
Use aarch64-linux-android-4.9 for arm64 build (attempt #4)

GCC: 4.9 (which supports -fstack-protector)
Binutils: 2.24 (which supports gc-sections)
GDB: 7.7

NDK libraries are still picked up from prebuilts/ndk/*/4.8/*

GCC has been patched to disable codegen for calling
__cxa_throw_bad_array_new_length.

Source code has been sync'ed against the 2014-05-14 snapshot which
contains many important fixes (devirtualization, codegen, ...).

Change-Id: I43229360ad0132193d5208cb0d1acba55084853c

10 years agoMerge "Multilib support for odex"
Brian Carlstrom [Mon, 19 May 2014 16:50:16 +0000 (16:50 +0000)]
Merge "Multilib support for odex"

10 years agoMerge "Allow qemu_device read-write access to various processes"
Ji-Hwan Lee [Mon, 19 May 2014 16:46:30 +0000 (16:46 +0000)]
Merge "Allow qemu_device read-write access to various processes"

10 years agoAllow qemu_device read-write access to various processes
Ji-Hwan Lee [Mon, 19 May 2014 11:43:23 +0000 (20:43 +0900)]
Allow qemu_device read-write access to various processes

Basically, allow access of qemu_device where gpu_device is allowed, for the
case when the emulator runs with OpenGL/ES emulation.  Most noticably,
surfaceflinger crashes without qemu_device access.

Bug: 15052949
Change-Id: Ib891365a6d503309bced64e2512c4d8f29d9a07e

10 years agoMultilib support for odex
Ying Wang [Tue, 13 May 2014 20:57:28 +0000 (13:57 -0700)]
Multilib support for odex

If the VM is libart and DEXPREOPT is enabled,
- For a Java library and the boot image, we build for both 1st arch and
  2nd arch.
- For an app, we build for the multilib arch the module is targeted for.
The odex file will be in <arch_name>/<module_name>.odex inside the same
dir where the jar/apk file gets installed.
Nothing changed if it's built for libdvm.

Bug: 14694978
Change-Id: I45118a83758b41d52d6c9e38f93f0ba2775a6c74

10 years agoMerge "Put prebuilt emulator path after host output"
Ji-Hwan Lee [Sun, 18 May 2014 06:39:50 +0000 (06:39 +0000)]
Merge "Put prebuilt emulator path after host output"

10 years agoMerge "Increase system image size to 650M for generic_arm64"
Ji-Hwan Lee [Sun, 18 May 2014 06:38:16 +0000 (06:38 +0000)]
Merge "Increase system image size to 650M for generic_arm64"

10 years agoIncrease system image size to 650M for generic_arm64
Ji-Hwan Lee [Sat, 17 May 2014 17:41:41 +0000 (02:41 +0900)]
Increase system image size to 650M for generic_arm64

Change-Id: I7969ec54dc4225bbe36651c4d9c6a09de1eb89f4

10 years agoMerge "Real "LOCAL_MULTILIB := both" for prebuilts"
Ying Wang [Sat, 17 May 2014 03:03:43 +0000 (03:03 +0000)]
Merge "Real "LOCAL_MULTILIB := both" for prebuilts"

10 years agoMerge "Default TARGET_CPU_SMP to true."
Ying Wang [Sat, 17 May 2014 00:07:15 +0000 (00:07 +0000)]
Merge "Default TARGET_CPU_SMP to true."

10 years agoDefault TARGET_CPU_SMP to true.
Ying Wang [Fri, 16 May 2014 23:27:11 +0000 (16:27 -0700)]
Default TARGET_CPU_SMP to true.

Change-Id: If8c52c8ed66d52452967d09885dfe1ca9da13688

10 years agoMerge "Fix the missing 2nd arch prefix."
Ying Wang [Fri, 16 May 2014 23:23:16 +0000 (23:23 +0000)]
Merge "Fix the missing 2nd arch prefix."

10 years agoFix the missing 2nd arch prefix.
Ying Wang [Fri, 16 May 2014 23:22:32 +0000 (16:22 -0700)]
Fix the missing 2nd arch prefix.

Bug: 13751317
Change-Id: Ie5a323a0a89245576dbc91271d3178574942627d

10 years agoMerge "Use libc++ versions of gtest libs when needed"
Dan Albert [Fri, 16 May 2014 22:02:11 +0000 (22:02 +0000)]
Merge "Use libc++ versions of gtest libs when needed"

10 years agoUse libc++ versions of gtest libs when needed
Dan Albert [Wed, 14 May 2014 21:16:47 +0000 (14:16 -0700)]
Use libc++ versions of gtest libs when needed

Change-Id: Id8752ea946cbaa747dfa4fccf38d680dfeee5b45

10 years agoMerge "Use libc++ versions of gtest libs when needed"
Dan Albert [Fri, 16 May 2014 21:50:27 +0000 (21:50 +0000)]
Merge "Use libc++ versions of gtest libs when needed"

10 years agoMerge "Force to build llvm from source in 64-bit host build."
Ying Wang [Fri, 16 May 2014 18:55:48 +0000 (18:55 +0000)]
Merge "Force to build llvm from source in 64-bit host build."

10 years agoUse libc++ versions of gtest libs when needed
Dan Albert [Wed, 14 May 2014 21:16:47 +0000 (14:16 -0700)]
Use libc++ versions of gtest libs when needed

Change-Id: I19aa58a83a9da680d441af5f3956a2fbdf18c4e4

10 years agoReal "LOCAL_MULTILIB := both" for prebuilts
Ying Wang [Fri, 16 May 2014 17:38:43 +0000 (10:38 -0700)]
Real "LOCAL_MULTILIB := both" for prebuilts

This uses the fact that unsetting LOCAL_MULTILIB equals "either".
It's useful to build for both 32-bit and 64-bit in the same prebuilt
module definition.

Bug: 13751317
Change-Id: I4f1625a83e13f22f807039afebae73f69ed35918

10 years agoForce to build llvm from source in 64-bit host build.
Ying Wang [Fri, 16 May 2014 16:37:23 +0000 (09:37 -0700)]
Force to build llvm from source in 64-bit host build.

Bug: 13751317
Change-Id: I4a4150bfe21607eb7a2342bbd8120b431427eee5

10 years agoMerge "make SignApk do zip alignment"
Doug Zongker [Fri, 16 May 2014 15:56:37 +0000 (15:56 +0000)]
Merge "make SignApk do zip alignment"

10 years agoMerge "Increase system image size to 650M for generic_x86"
Ji-Hwan Lee [Fri, 16 May 2014 01:55:00 +0000 (01:55 +0000)]
Merge "Increase system image size to 650M for generic_x86"

10 years agoMerge "Clear *.ini and skin directory on installclean"
Ji-Hwan Lee [Fri, 16 May 2014 01:54:49 +0000 (01:54 +0000)]
Merge "Clear *.ini and skin directory on installclean"

10 years agoMerge "x86_common.mk has been replaced by HOST_x86_common.mk"
Ying Wang [Fri, 16 May 2014 01:51:34 +0000 (01:51 +0000)]
Merge "x86_common.mk has been replaced by HOST_x86_common.mk"

10 years agox86_common.mk has been replaced by HOST_x86_common.mk
Ying Wang [Fri, 16 May 2014 01:50:06 +0000 (18:50 -0700)]
x86_common.mk has been replaced by HOST_x86_common.mk

Change-Id: I19eea82bb35d3f65a2d894c687131a1eafbe2cc9

10 years agoMerge "Print all 2ND variables."
Christopher Ferris [Fri, 16 May 2014 01:14:42 +0000 (01:14 +0000)]
Merge "Print all 2ND variables."

10 years agoIncrease system image size to 650M for generic_x86
Ji-Hwan Lee [Wed, 16 Apr 2014 15:00:39 +0000 (00:00 +0900)]
Increase system image size to 650M for generic_x86

Change-Id: I4457796bdaff8c2626eb0788199be75f3ab4cd47

10 years agomake SignApk do zip alignment
Doug Zongker [Thu, 15 May 2014 16:54:26 +0000 (09:54 -0700)]
make SignApk do zip alignment

When signing an APK, make the SignApk tool align the stored entries to
(by default) 4-byte boundaries.  This obviates the need to run the
separate zipalign tool, which currently does this job.

The alignment byte count can be specified with the -a option.  OTA
package signing (with -w) never does alignment.

The order of files in the output APK is changed so that all stored
files come first in the output, followed by all non-stored files.
This is not expected to have any impact in practice.

Change-Id: Iaeef89b2a7283e25fadb99c0a0f0641f682d76b8

10 years agoPut prebuilt emulator path after host output
Ji-Hwan Lee [Thu, 15 May 2014 13:03:08 +0000 (22:03 +0900)]
Put prebuilt emulator path after host output

So that built emulator is used instead of prebuilt one when
BUILD_EMULATOR=true.

Change-Id: I67dfbfc2c3bf9bf051e56de425caa07b08d4b2e4

10 years agoClear *.ini and skin directory on installclean
Ji-Hwan Lee [Thu, 15 May 2014 11:59:01 +0000 (20:59 +0900)]
Clear *.ini and skin directory on installclean

Currently, skin directory remains across different emulator targets, and
need manual removal.  Also, clear hardware-qemu.ini and config.ini.
(See https://android-review.googlesource.com/94692 for config.ini)

Change-Id: Iaa5849ad043ed3f317325ba1d6df287953636f7a

10 years agoMerge "Fix executable symlinks."
Narayan Kamath [Thu, 15 May 2014 09:36:25 +0000 (09:36 +0000)]
Merge "Fix executable symlinks."

10 years agoPrint all 2ND variables.
Christopher Ferris [Thu, 15 May 2014 01:21:34 +0000 (18:21 -0700)]
Print all 2ND variables.

Change-Id: I11180a3ec3481d293100c59c331f05db9e6a689b

10 years agoMerge "Support host multilib build"
Ying Wang [Thu, 15 May 2014 00:37:25 +0000 (00:37 +0000)]
Merge "Support host multilib build"

10 years agoSupport host multilib build
Ying Wang [Thu, 17 Apr 2014 17:03:35 +0000 (10:03 -0700)]
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

10 years agoMerge "Introduce netd_client, a dynamic library that talks to netd."
Sreeram Ramachandran [Wed, 14 May 2014 19:42:41 +0000 (19:42 +0000)]
Merge "Introduce netd_client, a dynamic library that talks to netd."

10 years agoIntroduce netd_client, a dynamic library that talks to netd.
Sreeram Ramachandran [Mon, 12 May 2014 18:51:29 +0000 (11:51 -0700)]
Introduce netd_client, a dynamic library that talks to netd.

(cherry picked from commit 440de6b9f715cb18b8ee888c58d5c7a659ff5073)

Change-Id: Ib6198e19dbc306521a26fcecfdf6e8424d163fc9

10 years agoFix executable symlinks.
Narayan Kamath [Wed, 14 May 2014 17:26:48 +0000 (18:26 +0100)]
Fix executable symlinks.

32 bit targets will leave TARGET_PREFER_{32,64}_BIT_APPS unset
so adjust accordingly. Also clean up an explanatory comment.

Change-Id: I1f6faa640e4e862631fff49f7c565766ef2c567f

10 years agoMerge "Disable DEXPREOPT until we have multilib support"
Ying Wang [Tue, 13 May 2014 16:49:32 +0000 (16:49 +0000)]
Merge "Disable DEXPREOPT until we have multilib support"

10 years agoDisable DEXPREOPT until we have multilib support
Ying Wang [Tue, 13 May 2014 16:46:23 +0000 (09:46 -0700)]
Disable DEXPREOPT until we have multilib support

Bug: 14694978
Change-Id: I31d0f1c78a668435646c99e659cec46cd2f3ddf7

10 years agoMerge "Treat denver like cortex-a15."
Ying Wang [Tue, 13 May 2014 16:28:09 +0000 (16:28 +0000)]
Merge "Treat denver like cortex-a15."

10 years agoTreat denver like cortex-a15.
Ying Wang [Tue, 13 May 2014 16:02:56 +0000 (09:02 -0700)]
Treat denver like cortex-a15.

See also build/core/combo/arch/arm/armv7-a-neon.mk.

Change-Id: Ie18e1f133f56a9f7da80e304052c92edad933a31

10 years agoMerge "Define __USE_MINGW_ANSI_STDIO for windows build"
Andrew Hsieh [Tue, 13 May 2014 00:53:45 +0000 (00:53 +0000)]
Merge "Define __USE_MINGW_ANSI_STDIO for windows build"

10 years agoMerge "Place ISA in ART boot image name."
Ian Rogers [Mon, 12 May 2014 22:45:54 +0000 (22:45 +0000)]
Merge "Place ISA in ART boot image name."

10 years agoPlace ISA in ART boot image name.
Ian Rogers [Sat, 10 May 2014 00:11:49 +0000 (17:11 -0700)]
Place ISA in ART boot image name.

Depends upon:
https://android-review.googlesource.com/#/c/94096/2

Change-Id: I79bec60a17ea7cf9214e56f8035d4a1b80b0eeb6

10 years agoMerge "executable_prefer_symlink: add makefile for creating symlink to prefer version"
Ying Wang [Mon, 12 May 2014 16:49:15 +0000 (16:49 +0000)]
Merge "executable_prefer_symlink: add makefile for creating symlink to prefer version"

10 years agoAdd some more flags to CLANG_CONFIG_UNKNOWN_CFLAGS
Bernhard Rosenkraenzer [Mon, 12 May 2014 14:05:14 +0000 (16:05 +0200)]
Add some more flags to CLANG_CONFIG_UNKNOWN_CFLAGS

Add some more gcc specific flags that are used somewhere in the tree
(e.g. external/chromium_org) to CLANG_CONFIG_UNKNOWN_CFLAGS

Change-Id: Icc572fdb6ea4ba818c4d18e430296589eb61bf55
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
10 years agoMerge changes I53b2ada9,I30794ea5
David 'Digit' Turner [Sun, 11 May 2014 09:16:15 +0000 (09:16 +0000)]
Merge changes I53b2ada9,I30794ea5

* changes:
  Disable emulator from platform builds.
  envsetup.sh: Use prebuilt emulator binaries if available.

10 years agoMerge "Disable canonical prefixes of system headers"
Andrew Hsieh [Fri, 9 May 2014 16:55:00 +0000 (16:55 +0000)]
Merge "Disable canonical prefixes of system headers"

10 years agoMerge "javac: rename common_flags to avoid conflictions"
Ying Wang [Fri, 9 May 2014 16:40:33 +0000 (16:40 +0000)]
Merge "javac: rename common_flags to avoid conflictions"

10 years agoDisable canonical prefixes of system headers
Andrew Hsieh [Fri, 9 May 2014 06:13:13 +0000 (14:13 +0800)]
Disable canonical prefixes of system headers

GCC know a few pre-defined paths (relative to its location) to
search for headers, libraries, program, etc.  By default GCC prefixes
its own path(argv[0]) and calls realpath() which result in absolute
path with all symlink, . and .. removed.

It's usually good to have canonicalised paths, but absolute paths
in *.d file can cause unnecessary relinking when stale entries
in ccache cache hit

Add -no-canonical-prefixes (gcc>=4.6) and
-fno-canonical-system-headers (gcc>4.6) to disable realpath() on
prefixed paths

Change-Id: I58d739e61fb013015fb05a9c98b2132b307f915a

10 years agoDisable emulator from platform builds.
David 'Digit' Turner [Fri, 9 May 2014 13:19:45 +0000 (15:19 +0200)]
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

10 years agoenvsetup.sh: Use prebuilt emulator binaries if available.
David 'Digit' Turner [Mon, 5 May 2014 14:13:50 +0000 (16:13 +0200)]
envsetup.sh: Use prebuilt emulator binaries if available.

This patch changes the setpaths() function in envsetup.sh to probe
for prebuilts/android-emulator/<host>/, and prepend it to PATH if
it exists.

See https://android-review.googlesource.com/#/c/93399/
for a related patch that adds the binaries.

BUG=13747402

Change-Id: I30794ea52f6dfc58908e6271f2c0da8e2f0b68e8

10 years agoexecutable_prefer_symlink: add makefile for creating symlink to prefer version
Yongqin Liu [Wed, 7 May 2014 04:41:24 +0000 (12:41 +0800)]
executable_prefer_symlink: add makefile for creating symlink to prefer version

For a 64bit target, we can have support for both 32bit and 64bit version
binary(like app_process, dalvikvm), and there are some commands like am/pm
will call these commands to implement it's function.

In some targets it will prefer to use the 32bit version, and in other targets
it will prefer to use the 64bit version. So this change is to add the common
work for creating the symlink to the prefer version binary,and avoid the
change on the caller commands side like am/pm.

In this change, it uses TARGET_PREFER_32_BIT_APPS to decide linking to
32bit version or 64bit version.

Change-Id: I96f041c0e0ededd953feead30ec63ad63e945a6f
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
10 years agoDefine __USE_MINGW_ANSI_STDIO for windows build
Andrew Hsieh [Fri, 9 May 2014 03:40:50 +0000 (11:40 +0800)]
Define __USE_MINGW_ANSI_STDIO for windows build

Some printf/scanf functions in Windows aren't C99 compatible.
Define __USE_MINGW_ANSI_STDIO for mingw compiler to use it's own set of
replacement libraries which are more C99-like.

Change-Id: I51dfa582971ec0487409067e8bb7fe3a44577b93

10 years agojavac: rename common_flags to avoid conflictions
Nick Reuter [Fri, 9 May 2014 02:36:05 +0000 (21:36 -0500)]
javac: rename common_flags to avoid conflictions

 * Currently the flag conflicts with one seen in hardware/qcom
   rename to avoid issues.

Change-Id: I876fcd6a254f349dc5260509bcddb0367a7d49d8
Signed-off-by: Nick Reuter <nreuter85@gmail.com>
10 years agoMerge "Remove SDK Tools from platform builds."
Xavier Ducrohet [Fri, 9 May 2014 00:46:44 +0000 (00:46 +0000)]
Merge "Remove SDK Tools from platform builds."

10 years agoMerge "Target "tests" now only builds the modules tagged as "tests""
Ying Wang [Fri, 9 May 2014 00:03:03 +0000 (00:03 +0000)]
Merge "Target "tests" now only builds the modules tagged as "tests""

10 years agoMerge "Add tool to package up built modules."
Ying Wang [Fri, 9 May 2014 00:02:50 +0000 (00:02 +0000)]
Merge "Add tool to package up built modules."

10 years agoTarget "tests" now only builds the modules tagged as "tests"
Ying Wang [Wed, 7 May 2014 23:39:21 +0000 (16:39 -0700)]
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

10 years agoAdd tool to package up built modules.
Ying Wang [Mon, 5 May 2014 23:46:52 +0000 (16:46 -0700)]
Add tool to package up built modules.

With this change, you can package up modules while avoiding installing
them to the system.img or userdata.img.
- build/core/tasks/tools/package-modules.mk
  You can use this template to package up modules into a zip file and
  preserve the installed file paths.
- LOCAL_PICKUP_FILES, you can use this variable to package up extra
  files/directories.

Bug: 13585955
Change-Id: I103042b24ccf17cf5dc90c016d97ed1dd293e50b

10 years agoMerge "Bump userdata image size from 200 MB to 550 MB"
Tsu Chiang Chuang [Thu, 8 May 2014 22:39:00 +0000 (22:39 +0000)]
Merge "Bump userdata image size from 200 MB to 550 MB"

10 years agoRemove SDK Tools from platform builds.
Xavier Ducrohet [Tue, 1 Apr 2014 19:13:58 +0000 (12:13 -0700)]
Remove SDK Tools from platform builds.

(cherry picked from commit edf30221b4890673dc714a1efef3b5faf4ae1522)

Change-Id: Ia74c2ece1528adca10a4eec24e73b4ce361af1a9

10 years agoMerge "Add dalvik.vm.dex2oat-flags for eng build"
Brian Carlstrom [Thu, 8 May 2014 21:49:31 +0000 (21:49 +0000)]
Merge "Add dalvik.vm.dex2oat-flags for eng build"

10 years agoMerge "Apply LOCAL_LDLIBS to target build rules too."
Ying Wang [Thu, 8 May 2014 00:15:30 +0000 (00:15 +0000)]
Merge "Apply LOCAL_LDLIBS to target build rules too."

10 years agoApply LOCAL_LDLIBS to target build rules too.
Ying Wang [Wed, 7 May 2014 18:33:19 +0000 (11:33 -0700)]
Apply LOCAL_LDLIBS to target build rules too.

Use LOCAL_LDLIBS to link against prebuilt libraries (such as NDK
libraries).
Previously LOCAL_LDLIBS only applies to host modules and the behaviour
confuses users.

Change-Id: I515546d7b59ef54e8ef09050eb58ec63534c9291

10 years agoAdd dalvik.vm.dex2oat-flags for eng build
Brian Carlstrom [Tue, 11 Feb 2014 01:52:53 +0000 (17:52 -0800)]
Add dalvik.vm.dex2oat-flags for eng build

Bug: 12869646
Change-Id: I794320267c846225931f12075c7f32d7848081e9

10 years agoBump userdata image size from 200 MB to 550 MB
Tsu Chiang Chuang [Wed, 7 May 2014 00:27:20 +0000 (17:27 -0700)]
Bump userdata image size from 200 MB to 550 MB

Change-Id: Ibdf319091a7187dc894f4a923d40868cec4b7b41

10 years agoMerge "Fix windows/mingw build."
Ying Wang [Tue, 6 May 2014 19:13:21 +0000 (19:13 +0000)]
Merge "Fix windows/mingw build."

10 years agoFix windows/mingw build.
Ying Wang [Tue, 6 May 2014 19:10:55 +0000 (12:10 -0700)]
Fix windows/mingw build.

Bug: 14446414
Change-Id: I9d12ed8afb6d4d5a09ef9b2844eb193b52b74271

10 years agoMerge "Use prebuilt flex."
Ying Wang [Tue, 6 May 2014 18:40:59 +0000 (18:40 +0000)]
Merge "Use prebuilt flex."

10 years agoMerge "add silvermont x86 architecture"
Ying Wang [Tue, 6 May 2014 16:18:56 +0000 (16:18 +0000)]
Merge "add silvermont x86 architecture"

10 years agoMerge "Increase system image size of generic_x86_64 to 750MB."
Ying Wang [Tue, 6 May 2014 02:01:58 +0000 (02:01 +0000)]
Merge "Increase system image size of generic_x86_64 to 750MB."

10 years agoIncrease system image size of generic_x86_64 to 750MB.
Ying Wang [Tue, 6 May 2014 02:01:28 +0000 (19:01 -0700)]
Increase system image size of generic_x86_64 to 750MB.

Change-Id: I0c3264c7f629bc4d8c30539590de00967188807b

10 years agoUse prebuilt flex.
Ying Wang [Tue, 6 May 2014 01:34:57 +0000 (18:34 -0700)]
Use prebuilt flex.

Bug: 14446414
Change-Id: I07fe8d7f246de853e5bae17286834268e36d260c

10 years agoMerge "build: set TARGET_SUPPORTS_64_BIT_APPS in 64-bit config"
Colin Cross [Mon, 5 May 2014 23:02:45 +0000 (23:02 +0000)]
Merge "build: set TARGET_SUPPORTS_64_BIT_APPS in 64-bit config"

10 years agobuild: set TARGET_SUPPORTS_64_BIT_APPS in 64-bit config
Colin Cross [Mon, 5 May 2014 22:25:41 +0000 (15:25 -0700)]
build: set TARGET_SUPPORTS_64_BIT_APPS in 64-bit config

Set TARGET_SUPPORTS_32_BIT_APPS and TARGET_SUPPORTS_64_BIT_APPS,
TARGET_PREFERS_32_BIT_APPS is enough to get apps to build for
32-bit only, and leaving TARGET_SUPPORTS_64_BIT_APPS unset
confuses zygote64 because it finds an empty 64-bit ABI list.

Change-Id: Iadea7f2b42c216710b54aeac6011a4e30e0f2eaa