OSDN Git Service

android-x86/build.git
9 years agoMake which dex2oat version to use configurable.
Nicolas Geoffray [Mon, 6 Oct 2014 13:53:59 +0000 (14:53 +0100)]
Make which dex2oat version to use configurable.

Change-Id: Ic13cf6f9dfb117193a5101781945c501d138955c

9 years agoMerge "Remove HAVE_(GNU|BSD)_QSORT_R from AndroidConfig.h."
Dan Albert [Wed, 1 Oct 2014 20:35:56 +0000 (20:35 +0000)]
Merge "Remove HAVE_(GNU|BSD)_QSORT_R from AndroidConfig.h."

9 years agoRemove HAVE_(GNU|BSD)_QSORT_R from AndroidConfig.h.
Dan Albert [Wed, 1 Oct 2014 17:12:25 +0000 (10:12 -0700)]
Remove HAVE_(GNU|BSD)_QSORT_R from AndroidConfig.h.

Change-Id: If2018529a6c067b63e1a59c16c911d63ec2ebbf4

9 years agoMerge "Update prebuilt RS clcore location."
Tim Murray [Tue, 30 Sep 2014 22:34:58 +0000 (22:34 +0000)]
Merge "Update prebuilt RS clcore location."

9 years agoUpdate prebuilt RS clcore location.
Tim Murray [Tue, 30 Sep 2014 22:08:03 +0000 (15:08 -0700)]
Update prebuilt RS clcore location.

Change-Id: Iebf255d7cc093b74e08b1f1378d9b397fd9dd3b9

9 years agoMerge "Clear all LOCAL_CLANG_*FLAGS*."
Chih-Hung Hsieh [Tue, 30 Sep 2014 22:05:08 +0000 (22:05 +0000)]
Merge "Clear all LOCAL_CLANG_*FLAGS*."

9 years agoClear all LOCAL_CLANG_*FLAGS*.
Chih-Hung Hsieh [Tue, 30 Sep 2014 21:23:14 +0000 (14:23 -0700)]
Clear all LOCAL_CLANG_*FLAGS*.

Although only some of these flags will be used for some
targets or hosts, they must all be cleared to avoid carrying
over from one project to another.

BUG: 17677366
Change-Id: I6d26fa7e5bf2ff11758728810d4874f3759aebe7

9 years agoMerge "java_alternative_checked_module takes precedence."
Ying Wang [Tue, 30 Sep 2014 00:18:53 +0000 (00:18 +0000)]
Merge "java_alternative_checked_module takes precedence."

9 years agojava_alternative_checked_module takes precedence.
Ying Wang [Tue, 30 Sep 2014 00:10:34 +0000 (17:10 -0700)]
java_alternative_checked_module takes precedence.

java_alternative_checked_module takes precedence over
LOCAL_BUILT_MODULE.

Change-Id: I84f0d65dbc05f4686817aa835d003eb0101af146

9 years agoMerge "Don't modify LOCAL_CHECKED_MODULE."
Ying Wang [Mon, 29 Sep 2014 22:39:54 +0000 (22:39 +0000)]
Merge "Don't modify LOCAL_CHECKED_MODULE."

9 years agoDon't modify LOCAL_CHECKED_MODULE.
Ying Wang [Mon, 29 Sep 2014 21:34:32 +0000 (14:34 -0700)]
Don't modify LOCAL_CHECKED_MODULE.

Use a temporary variable my_checked_module instead,
so that we don't override the 2nd_arch's checked module with the
1st_arch's in multilib build.
Note that by default we checkbuild 2nd_arch only for host modules,
but not for target modules.
We enable multlib for target modules by default, it would take too
much time to checkbuild for both archs. For 32-bit modules actually we
can checkbuild a 32-bit product.

Change-Id: I0a5ba75699225b7641442673483731a8fd360d61

9 years agoMerge "Remove obsolete libffi"
Brian Carlstrom [Mon, 29 Sep 2014 21:31:39 +0000 (21:31 +0000)]
Merge "Remove obsolete libffi"

9 years agoRemove obsolete libffi
Brian Carlstrom [Mon, 29 Sep 2014 20:05:03 +0000 (13:05 -0700)]
Remove obsolete libffi

Change-Id: I092e643be8bde9dbf00dd0d3314275e1ac3db409

9 years agoMerge "Add domains for goldfish services."
Nick Kralevich [Sun, 28 Sep 2014 00:14:49 +0000 (00:14 +0000)]
Merge "Add domains for goldfish services."

9 years agoMerge "Add local Clang+target specific flags."
Chih-Hung Hsieh [Sat, 27 Sep 2014 02:40:28 +0000 (02:40 +0000)]
Merge "Add local Clang+target specific flags."

9 years agoAdd local Clang+target specific flags.
Chih-Hung Hsieh [Sat, 27 Sep 2014 00:13:48 +0000 (17:13 -0700)]
Add local Clang+target specific flags.

BUG: 17677366
Change-Id: I75522fb56fdf4d27ea1f5f0ae15866b13ae6e206

9 years agoMerge "Fix detection of C++ STL for tests."
Dan Albert [Sat, 27 Sep 2014 00:01:54 +0000 (00:01 +0000)]
Merge "Fix detection of C++ STL for tests."

9 years agoFix detection of C++ STL for tests.
Dan Albert [Fri, 26 Sep 2014 22:45:33 +0000 (15:45 -0700)]
Fix detection of C++ STL for tests.

Target tests weren't approrpiately using the libc++ gtest for
libc++_static, and the hosts tests were still using the old check.

Change-Id: I13813d5f09673b144b2dfead93eb81cb4bae0e34

9 years agoMerge "Remove unnecessary CLANG_CONFIG_EXTRA_*_C_INCLUDES variables."
Stephen Hines [Fri, 26 Sep 2014 17:53:33 +0000 (17:53 +0000)]
Merge "Remove unnecessary CLANG_CONFIG_EXTRA_*_C_INCLUDES variables."

9 years agoMerge "Use new variable LLVM_PREBUILTS_VERSION to simplify path construction."
Stephen Hines [Fri, 26 Sep 2014 17:53:22 +0000 (17:53 +0000)]
Merge "Use new variable LLVM_PREBUILTS_VERSION to simplify path construction."

9 years agoMerge "Test __GLIBC__ is defined before using its value."
Ian Rogers [Fri, 26 Sep 2014 15:45:40 +0000 (15:45 +0000)]
Merge "Test __GLIBC__ is defined before using its value."

9 years agoRemove unnecessary CLANG_CONFIG_EXTRA_*_C_INCLUDES variables.
Stephen Hines [Fri, 26 Sep 2014 05:35:16 +0000 (22:35 -0700)]
Remove unnecessary CLANG_CONFIG_EXTRA_*_C_INCLUDES variables.

These aren't needed now that we only use the compiler/headers that exist in
the prebuilts/clang directory.

Change-Id: I9978efb10815e92577d45629db324e0a5094f880

9 years agoTest __GLIBC__ is defined before using its value.
Ian Rogers [Fri, 26 Sep 2014 00:34:40 +0000 (17:34 -0700)]
Test __GLIBC__ is defined before using its value.

Avoids -Wundef warning.

Change-Id: I52d8223500fe31cdf7023e32e96df75e33eb2f7e

9 years agoUse new variable LLVM_PREBUILTS_VERSION to simplify path construction.
Lai Wei-Chih [Wed, 17 Sep 2014 05:55:08 +0000 (13:55 +0800)]
Use new variable LLVM_PREBUILTS_VERSION to simplify path construction.

This removes the hard-coded '3.5' in the various paths and makes switching to
a new toolchain easier from the command line (m LLVM_PREBUILTS_VERSION=3.6).

Change-Id: I46b10eb2fc177a03528de9c7b433f8647f632081

9 years agoMerge "Add option for generating coverage info."
Dan Albert [Wed, 24 Sep 2014 16:03:27 +0000 (16:03 +0000)]
Merge "Add option for generating coverage info."

9 years agoAdd option for generating coverage info.
Dan Albert [Fri, 19 Sep 2014 21:25:57 +0000 (14:25 -0700)]
Add option for generating coverage info.

To enable building with coverage, the environment variable
NATIVE_COVERAGE must be set to true.

Set `LOCAL_NATIVE_COVERAGE := true` to generate coverage information for
a given component.

This is currently not supported for clang (b/17574078, b/17583330).

If static library A is included in a binary B (dynamic or static
executable, or shared library), and A is built with coverage
information, B is required to link with libgcov.a. Since the make does
not offer a good way to track this dependency, link libgcov.a even if
LOCAL_NATIVE_COVERAGE is not set (but still guarded by NATIVE_COVERAGE).
This ensures that all of the libgcov dependencies will always be
resolved, and causes no change in the resulting binary if coverage is
not used.

Bug: 10134489
Change-Id: Id5a19f2c215e4be80e6eae27ecc19b582f2f6813

9 years agoMerge "Remove unused HAVE_OFF64_T."
Elliott Hughes [Tue, 23 Sep 2014 21:23:21 +0000 (21:23 +0000)]
Merge "Remove unused HAVE_OFF64_T."

9 years agoRemove unused HAVE_OFF64_T.
Elliott Hughes [Tue, 23 Sep 2014 20:36:01 +0000 (13:36 -0700)]
Remove unused HAVE_OFF64_T.

Change-Id: I24acf64efcd0fd84d5dda342d4c4293fa59fae1a

9 years agoMerge "Remove the unused IPC macros."
Elliott Hughes [Tue, 23 Sep 2014 16:01:13 +0000 (16:01 +0000)]
Merge "Remove the unused IPC macros."

9 years agoRemove the unused IPC macros.
Elliott Hughes [Tue, 23 Sep 2014 03:43:32 +0000 (20:43 -0700)]
Remove the unused IPC macros.

There are still a couple of references to HAVE_WIN32_IPC to be dealt with
later.

Change-Id: Id131fbf2e96d4c1c7bb98629779045375bd5f85f

9 years agoMerge "build: remove HAVE_OOM_ADJ"
Elliott Hughes [Tue, 23 Sep 2014 01:49:09 +0000 (01:49 +0000)]
Merge "build: remove HAVE_OOM_ADJ"

9 years agobuild: remove HAVE_OOM_ADJ
Todd Poynor [Thu, 5 Sep 2013 00:46:42 +0000 (17:46 -0700)]
build: remove HAVE_OOM_ADJ

This define is no longer used.

Change-Id: I6615d6e4aa09f71b7c4c435ccb83a07bba91b6dc

9 years agoAdd domains for goldfish services.
Stephen Smalley [Wed, 3 Sep 2014 15:07:03 +0000 (11:07 -0400)]
Add domains for goldfish services.

goldfish-setup, goldfish-logcat, and qemu-props are goldfish-specific
oneshot services that lacked domain definitions and thus were left in init's
domain.

This depends on a change to external/sepolicy with the same Change-Id
to define non-goldfish-specific types for properties and logcat.

Change-Id: Idce1fb5ed9680af84788ae69a5ace684c6663974
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
9 years agoMerge "Use "$@" to preserve argument word breaks"
Ying Wang [Mon, 22 Sep 2014 16:42:34 +0000 (16:42 +0000)]
Merge "Use "$@" to preserve argument word breaks"

9 years agoUse "$@" to preserve argument word breaks
Ying Wang [Tue, 1 Jul 2014 17:58:10 +0000 (10:58 -0700)]
Use "$@" to preserve argument word breaks

This fixes mmma broken due to quotes stripped in the argument passing.

(cherry picked from commit dcc8b3729dd1cb89ed344a3855bac9584ac183ac)

Change-Id: Ic8c4bb8e7cb347c1f80b5bc1648f63e58a010e8d

9 years agoMerge "Fix recovery image build for 32p"
Ying Wang [Sat, 20 Sep 2014 00:38:07 +0000 (00:38 +0000)]
Merge "Fix recovery image build for 32p"

9 years agoMerge "Remove PinyinIME from target config - DO NOT MERGE"
Bill Yi [Fri, 19 Sep 2014 23:36:03 +0000 (23:36 +0000)]
Merge "Remove PinyinIME from target config - DO NOT MERGE"

9 years agoRemove PinyinIME from target config - DO NOT MERGE
Bill Yi [Fri, 19 Sep 2014 23:06:19 +0000 (16:06 -0700)]
Remove PinyinIME from target config - DO NOT MERGE

BUG:17578207

9 years agoMerge "Remove unused HAVE_EPOLL."
Elliott Hughes [Fri, 19 Sep 2014 22:54:17 +0000 (22:54 +0000)]
Merge "Remove unused HAVE_EPOLL."

9 years agoRemove unused HAVE_EPOLL.
Elliott Hughes [Fri, 19 Sep 2014 22:12:56 +0000 (15:12 -0700)]
Remove unused HAVE_EPOLL.

The only people who appear to be using this are actually using their own
one.

Change-Id: I349ed4ce3874c1b2f9bad56c93c8ccee88ae9432

9 years agoMerge "Enable dalvik.vm.lockprof.threshold on eng builds in addition to userdebug"
Brian Carlstrom [Fri, 19 Sep 2014 21:41:01 +0000 (21:41 +0000)]
Merge "Enable dalvik.vm.lockprof.threshold on eng builds in addition to userdebug"

9 years agoEnable dalvik.vm.lockprof.threshold on eng builds in addition to userdebug
Brian Carlstrom [Fri, 19 Sep 2014 18:30:27 +0000 (11:30 -0700)]
Enable dalvik.vm.lockprof.threshold on eng builds in addition to userdebug

Bug: 17572009
Change-Id: I0cfc1aa2dd93a8dac21d23d813801c74ed37079a

9 years agoMerge "Move selection of C++ STL into the build system."
Dan Albert [Thu, 18 Sep 2014 23:51:52 +0000 (23:51 +0000)]
Merge "Move selection of C++ STL into the build system."

9 years agoMove selection of C++ STL into the build system.
Dan Albert [Fri, 12 Sep 2014 21:46:57 +0000 (14:46 -0700)]
Move selection of C++ STL into the build system.

Preparing for migration from stlport to libc++. STL selection is done
with LOCAL_CXX_STL (valid values are default, none, libc++,
libc++_static, stlport, stlport_static, bionic).

The selection of the STL is as follows:

    if LOCAL_CXX_STL == 'default'
      ifdef LOCAL_SDK_VERSION
        Use whatever STL the other NDK options have selected.
      else
        Use bionic's libstdc++ for target, GNU libstdc++ for host. This
        is compatible with the existing build options.
      endif
    else
      if LOCAL_CXX_STL == 'stlport'
        Use stlport.
      else if LOCAL_CXX_STL == 'libc++'
        Use libc++.
      else if LOCAL_CXX_STL == ''
        Don't use any STL.
      endif
    endif

Bug: 15193147
Change-Id: If712ba0ae7908d8147a69e29da5c453a183d6540

9 years agoMerge "Docs: Replacing s.a.c. Android logo to match other sites."
Clay Murphy [Thu, 18 Sep 2014 18:26:58 +0000 (18:26 +0000)]
Merge "Docs: Replacing s.a.c. Android logo to match other sites."

9 years agoDocs: Replacing s.a.c. Android logo to match other sites.
Clay Murphy [Tue, 24 Jun 2014 18:32:56 +0000 (11:32 -0700)]
Docs: Replacing s.a.c. Android logo to match other sites.

Bug: 15408415
Change-Id: I9bdb294f3ff0c5aaf766b4ead79ad9614f9dbd89

9 years agoFix recovery image build for 32p
Bruce Beare [Fri, 12 Sep 2014 16:10:37 +0000 (09:10 -0700)]
Fix recovery image build for 32p

When building for 32p, we need to be explicit that we wish to build the 32bit
version of the binaries that will be placed in the recovery image. The recovery
image doesn't actually care... but if we are not explicit in this, the makefiles
will ask for the 64bit binaries but the Android.mk for the binaries will supply
the 32bit images (causing the build to fail)..

Change-Id: I728912bc8e07726888fe8bed4352cbb373911cb7
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
9 years agoMerge "Enable multilib odex only if TARGET_2ND_ARCH is defined."
Ying Wang [Mon, 15 Sep 2014 19:14:20 +0000 (19:14 +0000)]
Merge "Enable multilib odex only if TARGET_2ND_ARCH is defined."

9 years agoMerge "Support to build apk odex for both arch."
Ying Wang [Mon, 15 Sep 2014 19:14:15 +0000 (19:14 +0000)]
Merge "Support to build apk odex for both arch."

9 years agoEnable multilib odex only if TARGET_2ND_ARCH is defined.
Ying Wang [Mon, 15 Sep 2014 18:45:52 +0000 (11:45 -0700)]
Enable multilib odex only if TARGET_2ND_ARCH is defined.

Bug: 17507247
Bug: 14694978
Change-Id: I160a37bc0970315054606829aa112b67eaee7d49

9 years agoSupport to build apk odex for both arch.
Ying Wang [Sat, 13 Sep 2014 18:26:39 +0000 (11:26 -0700)]
Support to build apk odex for both arch.

Build odex for both arch in multilib build if an app has
LOCAL_MULTILIB := both.
Refactored the common setup code to a separate file setup_one_odex.mk.

Bug: 17409149
Bug: 14694978
Change-Id: I74c9426cd74fe0b0cb4811368f740a88ac2ae022

9 years agoMerge "Fix mma/mmma by making gettop canonicalize TOP when set"
Brian Carlstrom [Fri, 12 Sep 2014 22:18:11 +0000 (22:18 +0000)]
Merge "Fix mma/mmma by making gettop canonicalize TOP when set"

9 years agoFix mma/mmma by making gettop canonicalize TOP when set
Brian Carlstrom [Fri, 12 Sep 2014 07:33:25 +0000 (00:33 -0700)]
Fix mma/mmma by making gettop canonicalize TOP when set

Bug: 17253957

(cherry picked from commit a5c4f178ae3f3e94b1d1dceae3cc8d3196633c4a)

Change-Id: Id5f5a6e9c81d4332ef5a846423ea41384a053db6

9 years agoMerge "Missed one part of removing the vbox target."
Dan Albert [Thu, 11 Sep 2014 01:32:05 +0000 (01:32 +0000)]
Merge "Missed one part of removing the vbox target."

9 years agoMissed one part of removing the vbox target.
Dan Albert [Wed, 10 Sep 2014 22:58:20 +0000 (15:58 -0700)]
Missed one part of removing the vbox target.

Change-Id: I8edb5252b5e71de042b79cb9eb2a497d89efb773

9 years agoMerge "Remove the vbox target from the build system."
Dan Albert [Wed, 10 Sep 2014 22:31:41 +0000 (22:31 +0000)]
Merge "Remove the vbox target from the build system."

9 years agoRemove the vbox target from the build system.
Dan Albert [Wed, 10 Sep 2014 22:10:31 +0000 (15:10 -0700)]
Remove the vbox target from the build system.

I've been told this is no longer in use, and it's the only user of
external/grub, which is distressingly out of date.

Change-Id: I434a55e0d68f6db97fa71e294e983ff1802e9ba6

9 years agoMerge "Refine TARGET_GLOBAL_CFLAGS for x86 and x86_64:"
Ying Wang [Wed, 10 Sep 2014 16:26:49 +0000 (16:26 +0000)]
Merge "Refine TARGET_GLOBAL_CFLAGS for x86 and x86_64:"

9 years agoRefine TARGET_GLOBAL_CFLAGS for x86 and x86_64:
Alexander Ivchenko [Tue, 9 Sep 2014 13:24:27 +0000 (17:24 +0400)]
Refine TARGET_GLOBAL_CFLAGS for x86 and x86_64:

       Remove -msse2 for x86 (-mssse3 should be provided by the compiler).
       Remove -fPIC (compiler provides by default).
       Remove -fno-inline-functions-called-once.

Change-Id: Ibb29934224c4eedfff926dc72c3b6342c1861ac9

9 years agoMerge "Add LOCAL_POST_LINK_CMD."
Ying Wang [Fri, 5 Sep 2014 23:41:13 +0000 (23:41 +0000)]
Merge "Add LOCAL_POST_LINK_CMD."

9 years agoAdd LOCAL_POST_LINK_CMD.
Ying Wang [Fri, 5 Sep 2014 22:46:43 +0000 (15:46 -0700)]
Add LOCAL_POST_LINK_CMD.

For now we support LOCAL_POST_LINK_CMD only for static executables.
This fixed the hack of building linker which need to insert additional
step after link.

Bug: 17403674
Change-Id: Iefdfe1e3fab3a30c5d4ad701d46f931481eab572

9 years agoMerge "Add LOCAL_CLANG_*FLAGS for clang only flags."
Chih-Hung Hsieh [Fri, 5 Sep 2014 02:13:10 +0000 (02:13 +0000)]
Merge "Add LOCAL_CLANG_*FLAGS for clang only flags."

9 years agoAdd LOCAL_CLANG_*FLAGS for clang only flags.
Chih-Hung Hsieh [Fri, 5 Sep 2014 00:15:47 +0000 (17:15 -0700)]
Add LOCAL_CLANG_*FLAGS for clang only flags.

To be used only for some modules.

Change-Id: I107ec37f11f738f860598f0c86c4ad7ec20c9011

9 years agoMerge "Add debug.atrace.tags.enableflags=0 to /default.prop."
Elliott Hughes [Wed, 3 Sep 2014 23:55:03 +0000 (23:55 +0000)]
Merge "Add debug.atrace.tags.enableflags=0 to /default.prop."

9 years agoMerge "Add LOCAL_NO_FPIE."
Tim Murray [Wed, 3 Sep 2014 22:46:45 +0000 (22:46 +0000)]
Merge "Add LOCAL_NO_FPIE."

9 years agoAdd LOCAL_NO_FPIE.
Tim Murray [Wed, 3 Sep 2014 22:01:46 +0000 (15:01 -0700)]
Add LOCAL_NO_FPIE.

Not all executables should be built with -pie.

bug 15814177

Change-Id: I402e8a531866b507ee80a0bf677f9f3551ca7693

9 years agoMerge "[MIPS64] Modify the default MIPS64 build to MIPS64R6."
Ying Wang [Wed, 3 Sep 2014 19:20:28 +0000 (19:20 +0000)]
Merge "[MIPS64] Modify the default MIPS64 build to MIPS64R6."

9 years agoAdd debug.atrace.tags.enableflags=0 to /default.prop.
Stephen Smalley [Wed, 3 Sep 2014 19:08:08 +0000 (15:08 -0400)]
Add debug.atrace.tags.enableflags=0 to /default.prop.

This ensures that the property is always set by init
prior to starting any other process, which avoids the need
for the bionic systrace code to try to set the property
if it has not already been set to avoid the full cost of
searching for an undefined property each time.  See
change I30ed5b377c91ca4c36568a0e647ddf95d4e4a61a for
the relevant bionic code.

The problem with the current bionic code is that it can
trigger an attempt to set this property from any random
process, which will be denied unless the process is already
authorized to set debug properties.  This is visible in the
form of various SELinux avc: denied messages and
init sys_prop:  permission denied messages in dmesg output.
Allowing all domains to set such properties is undesirable.

Change-Id: I6d953c0c281fd72ad3eba8a479fd258023579b5b
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
9 years agoMerge "Fix build breakage due to incorrect bcc_compat RS_TRIPLE."
Stephen Hines [Wed, 3 Sep 2014 16:02:08 +0000 (16:02 +0000)]
Merge "Fix build breakage due to incorrect bcc_compat RS_TRIPLE."

9 years agoFix build breakage due to incorrect bcc_compat RS_TRIPLE.
Stephen Hines [Wed, 3 Sep 2014 02:09:35 +0000 (19:09 -0700)]
Fix build breakage due to incorrect bcc_compat RS_TRIPLE.

Bug: 17333374
Change-Id: I13582ce0cde86f7b3728aa4f45a5197438d65a2d
(cherry picked from commit 52626d2a7b4767905e8a369ddc8316c1290ad156)

9 years agoMerge "[MIPSR6] R6 target options for clang"
Ying Wang [Wed, 3 Sep 2014 01:02:54 +0000 (01:02 +0000)]
Merge "[MIPSR6] R6 target options for clang"

9 years ago[MIPS64] Modify the default MIPS64 build to MIPS64R6.
Raghu Gandham [Tue, 2 Sep 2014 23:30:00 +0000 (16:30 -0700)]
[MIPS64] Modify the default MIPS64 build to MIPS64R6.

Change-Id: I797e4c2e5b69c6991545c26886b5b25e6f8c2a67

9 years agoMerge "Default host module to 64-bit except for SDK builds."
Ying Wang [Tue, 2 Sep 2014 23:05:43 +0000 (23:05 +0000)]
Merge "Default host module to 64-bit except for SDK builds."

9 years agoDefault host module to 64-bit except for SDK builds.
Ying Wang [Tue, 2 Sep 2014 22:11:20 +0000 (15:11 -0700)]
Default host module to 64-bit except for SDK builds.

Set "HOST_PREFER_32_BIT := true" only if "sdk" or "win_sdk" is among the
make command line goals, or it's a MinGW windows build, which only builds
host SDK tools.

Bug: 13751317
Change-Id: I8ec1a97a5d1af065a153b16523c2ee3434d0dd71

9 years agoMerge "Fix RS_TRIPLE and RS_TRIPLE_CFLAGS."
Stephen Hines [Tue, 2 Sep 2014 16:23:10 +0000 (16:23 +0000)]
Merge "Fix RS_TRIPLE and RS_TRIPLE_CFLAGS."

9 years agoMerge "Add missing flags to x86 (both 32- and 64-bit) arch variants. Delete x86_64...
Ying Wang [Mon, 1 Sep 2014 17:47:54 +0000 (17:47 +0000)]
Merge "Add missing flags to x86 (both 32- and 64-bit) arch variants. Delete x86_64-atom.mk as we don't support 64-bit on old Atom."

9 years agoMerge "Remove webviewchromium from PRODUCT_BOOT_JARS for real."
Marcin Kosiba [Mon, 1 Sep 2014 10:20:14 +0000 (10:20 +0000)]
Merge "Remove webviewchromium from PRODUCT_BOOT_JARS for real."

9 years agoRemove webviewchromium from PRODUCT_BOOT_JARS for real.
Marcin Kosiba [Mon, 1 Sep 2014 09:57:44 +0000 (10:57 +0100)]
Remove webviewchromium from PRODUCT_BOOT_JARS for real.

The WebView Java code is now loaded by WebViewFactory from an APK
when an app needs it, so remove the old jar from the boot classpath.
The previous change removed the webview from core_minimal.mk but
not from core_base.mk, which is what this change addresses.

Change-Id: I6f4bcd427a7e65f3a20372c3c177e9342a953290

9 years agoMerge "Remove webviewchromium from PRODUCT_BOOT_JARS."
Marcin Kosiba [Mon, 1 Sep 2014 09:26:59 +0000 (09:26 +0000)]
Merge "Remove webviewchromium from PRODUCT_BOOT_JARS."

9 years agoRemove webviewchromium from PRODUCT_BOOT_JARS.
Marcin Kosiba [Mon, 1 Sep 2014 09:21:28 +0000 (10:21 +0100)]
Remove webviewchromium from PRODUCT_BOOT_JARS.

The WebView Java code is now loaded by WebViewFactory from an APK
when an app needs it, so remove the old jar from the boot classpath.

Bug: 16329371
Change-Id: Ibed49641d04fd5e93e26ab12e203e4596e0b3bb6

9 years agoFix RS_TRIPLE and RS_TRIPLE_CFLAGS.
Stephen Hines [Fri, 29 Aug 2014 21:43:53 +0000 (14:43 -0700)]
Fix RS_TRIPLE and RS_TRIPLE_CFLAGS.

Bug: 17333374

Add RS_TRIPLE_CFLAGS to ensure that we build with the proper defines on
targets like x86. This also changes all build targets to use the
proper 32/64-bit triples when creating their runtime libraries.

Change-Id: I8f6175b1a14af6d03ee90f32069f3688ec227fb9

9 years agoMerge "Add --no-include-debug-symbols to avoid bloat in user builds"
Brian Carlstrom [Fri, 29 Aug 2014 05:21:04 +0000 (05:21 +0000)]
Merge "Add --no-include-debug-symbols to avoid bloat in user builds"

9 years agoAdd --no-include-debug-symbols to avoid bloat in user builds
Brian Carlstrom [Fri, 29 Aug 2014 00:16:11 +0000 (17:16 -0700)]
Add --no-include-debug-symbols to avoid bloat in user builds

Bug: 16938924

(cherry picked from commit 91b9d01b6ba2d3ea37928febce67d13c005a2336)

Change-Id: I0b744e0aaacc11fe8983f22f56ffc546a07ae764

9 years agoMerge "Make sure that ro.dalvik.vm.native.bridge is always set."
Calin Juravle [Wed, 27 Aug 2014 15:50:28 +0000 (15:50 +0000)]
Merge "Make sure that ro.dalvik.vm.native.bridge is always set."

9 years agoMake sure that ro.dalvik.vm.native.bridge is always set.
Calin Juravle [Tue, 26 Aug 2014 21:46:13 +0000 (22:46 +0100)]
Make sure that ro.dalvik.vm.native.bridge is always set.

A value of "0" means that native bridge is disabled.

Bug: 17104449

(cherry picked from commit 4f703a7f9ffd9a0d0432401a3173533d695d2ae6)

Change-Id: I4ca379923996ea08828dea4b2cd2da045e3f8031

9 years agoMerge "Clang rejects -Wno-old-style-declaration flag."
Chih-Hung Hsieh [Wed, 27 Aug 2014 01:27:39 +0000 (01:27 +0000)]
Merge "Clang rejects -Wno-old-style-declaration flag."

9 years agoClang rejects -Wno-old-style-declaration flag.
Chih-Hung Hsieh [Tue, 26 Aug 2014 23:37:00 +0000 (16:37 -0700)]
Clang rejects -Wno-old-style-declaration flag.

BUG: 17258227
Change-Id: I2a35263298ffd8dd7cda25183e185274cbf62b7b

9 years agoMerge "Clang does not recognize -Wno-literal-suffix."
Chih-Hung Hsieh [Tue, 26 Aug 2014 23:01:34 +0000 (23:01 +0000)]
Merge "Clang does not recognize -Wno-literal-suffix."

9 years agoClang does not recognize -Wno-literal-suffix.
Chih-Hung Hsieh [Tue, 26 Aug 2014 17:11:50 +0000 (10:11 -0700)]
Clang does not recognize -Wno-literal-suffix.

BUG: 17258227
Change-Id: I2d98e68daa780fbe0e127605840ae7edcb4e9880

9 years agoMerge "Push ISA features into system properties"
Calin Juravle [Tue, 26 Aug 2014 17:52:11 +0000 (17:52 +0000)]
Merge "Push ISA features into system properties"

9 years agoPush ISA features into system properties
Calin Juravle [Tue, 19 Aug 2014 19:28:08 +0000 (20:28 +0100)]
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

(cherry picked from commit 28be9d8884861f70fbd39b3768a6d4b34009deed)

Change-Id: I45b363558dea17e9b049e4a83a55990b4911d9d8

9 years agoMerge "Add GCC only flags to clang .mk files."
Chih-Hung Hsieh [Tue, 26 Aug 2014 02:04:12 +0000 (02:04 +0000)]
Merge "Add GCC only flags to clang .mk files."

9 years agoAdd GCC only flags to clang .mk files.
Chih-Hung Hsieh [Mon, 25 Aug 2014 20:57:57 +0000 (13:57 -0700)]
Add GCC only flags to clang .mk files.

BUG: 17258227
Change-Id: Iec9fdb21a9fa31e18a17704beb27bb493c9b7192

9 years agoMerge changes I152eb090,Ic40360bf
David 'Digit' Turner [Mon, 25 Aug 2014 10:19:07 +0000 (10:19 +0000)]
Merge changes I152eb090,Ic40360bf

* changes:
  arm64: Fix the sdk_arm64 build products
  arm64: Fix aosp_arm64 system image.

9 years agoarm64: Fix the sdk_arm64 build products
David 'Digit' Turner [Wed, 20 Aug 2014 15:42:08 +0000 (17:42 +0200)]
arm64: Fix the sdk_arm64 build products

This patch fixes the sdk_arm64 system images to boot properly when run
under emulation with the new qemu-android binaries.

BUG=17154406

Change-Id: I152eb09086ce4abc4b623e54de78cdaaac6b90a1

9 years agoarm64: Fix aosp_arm64 system image.
David 'Digit' Turner [Wed, 20 Aug 2014 15:39:00 +0000 (17:39 +0200)]
arm64: Fix aosp_arm64 system image.

This patch ensures that the system image produced for the 'aosp_arm64'
build products can actually run under emulation with the new qemu-android
binaries [1]

The main issue is that the virtual board is named 'ranchu' instead of
'goldfish' (because the virtual hardware is _very_ different), and thus
requires specific files for the boot to start properly

(in particular fstab.ranchu is required to mount the system, data and
cache partitions, otherwise init will fail badly because /system/bin/
and /data/ are missing important files).

IMPORTANT: This requires the files under device/generic/goldfish/ from:

    https://android-review.googlesource.com/#/c/105020/

[1] Binaries built from https://qemu-android.googlesource.com/qemu-android

BUG=17154406

Change-Id: Ic40360bf56e32aab708551c810000467d23793d4

9 years agoMerge "HAVE_FUTEX is unused."
Elliott Hughes [Thu, 21 Aug 2014 04:59:53 +0000 (04:59 +0000)]
Merge "HAVE_FUTEX is unused."

9 years agoHAVE_FUTEX is unused.
Elliott Hughes [Thu, 21 Aug 2014 04:24:23 +0000 (21:24 -0700)]
HAVE_FUTEX is unused.

I missed this the other day.

Change-Id: Ifb6912de3aae6d03593ffb08d8d9555dc9e53f4d

9 years agoMerge "Remove HAVE_ANDROID_PTHREAD_SETNAME_NP."
Elliott Hughes [Thu, 21 Aug 2014 04:20:33 +0000 (04:20 +0000)]
Merge "Remove HAVE_ANDROID_PTHREAD_SETNAME_NP."

9 years agoMerge "HAVE_OPEN_MEMSTREAM is no longer used."
Elliott Hughes [Thu, 21 Aug 2014 04:16:48 +0000 (04:16 +0000)]
Merge "HAVE_OPEN_MEMSTREAM is no longer used."