OSDN Git Service

android-x86/build.git
9 years agoMerge "Add OpenJDK 8 experimental support"
Neil Fuller [Fri, 24 Oct 2014 08:16:03 +0000 (08:16 +0000)]
Merge "Add OpenJDK 8 experimental support"

9 years agoMerge "Add unknown flag to CLANG_CONFIG_UNKNOWN_CFLAGS."
Chih-Hung Hsieh [Fri, 24 Oct 2014 00:26:20 +0000 (00:26 +0000)]
Merge "Add unknown flag to CLANG_CONFIG_UNKNOWN_CFLAGS."

9 years agoAdd unknown flag to CLANG_CONFIG_UNKNOWN_CFLAGS.
Chih-Hung Hsieh [Thu, 23 Oct 2014 23:39:09 +0000 (16:39 -0700)]
Add unknown flag to CLANG_CONFIG_UNKNOWN_CFLAGS.

BUG: 18108271
Change-Id: Id929cad31340d2946027603c1c8c8fb1cb60f66a

9 years agoMerge "Don't sort shared library link order."
Dan Albert [Thu, 23 Oct 2014 22:20:01 +0000 (22:20 +0000)]
Merge "Don't sort shared library link order."

9 years agoDon't sort shared library link order.
Dan Albert [Thu, 23 Oct 2014 21:04:02 +0000 (14:04 -0700)]
Don't sort shared library link order.

Only sort the list of shared libraries used for naming dependencies,
not the order they are actually linked in. The order in which shared
libraries appear to the linker affects which symbols get used if there
is a multiply defined symbol.

Also link system shared libraries _after_ user provided libraries,
since a user will want their functions to override the system's if
they exist.

Change-Id: I071059d940d40a648d69d90e0699073ef520138a

9 years agoMerge "Raise x86 arch requirement to prescott."
Chih-Hung Hsieh [Thu, 23 Oct 2014 20:47:29 +0000 (20:47 +0000)]
Merge "Raise x86 arch requirement to prescott."

9 years agoAdd OpenJDK 8 experimental support
Neil Fuller [Thu, 16 Oct 2014 09:23:03 +0000 (10:23 +0100)]
Add OpenJDK 8 experimental support

Targeting 1.7: just adding support for the tools.

Various issues exist with OpenJDK 8: it doesn't build to completion
yet.

Change-Id: I54942f497264234e4bef488c8d17d243b4ef2f14

9 years agoMerge "Remove Java 6 build support"
Neil Fuller [Thu, 23 Oct 2014 09:00:13 +0000 (09:00 +0000)]
Merge "Remove Java 6 build support"

9 years agoRaise x86 arch requirement to prescott.
Chih-Hung Hsieh [Wed, 22 Oct 2014 21:35:08 +0000 (14:35 -0700)]
Raise x86 arch requirement to prescott.

Atomic functions used in external/libcxx/include/atomic when compiled with Clang
will require intrinsic functions exist only for prescott or newer CPUs.

BUG: 17530542
Change-Id: I0c9660ed2ffa75b940981eb8165d88934b39aec5

9 years agoMerge "Set default to Clang integrated assembler."
Chih-Hung Hsieh [Wed, 22 Oct 2014 21:07:47 +0000 (21:07 +0000)]
Merge "Set default to Clang integrated assembler."

9 years agoSet default to Clang integrated assembler.
Chih-Hung Hsieh [Wed, 22 Oct 2014 16:21:53 +0000 (09:21 -0700)]
Set default to Clang integrated assembler.

BUG: 17820427
Change-Id: I10a6ddd94aad083665164d7939990e148b3b6efb

9 years agoRemove Java 6 build support
Neil Fuller [Thu, 16 Oct 2014 09:23:03 +0000 (10:23 +0100)]
Remove Java 6 build support

Change-Id: I9754844af58e3f81d7eb9dae286128d17a2cb56c

9 years agoMerge "Reset LOCAL_2ND_ARCH_VAR_PREFIX before referencing it."
Ying Wang [Wed, 22 Oct 2014 01:37:15 +0000 (01:37 +0000)]
Merge "Reset LOCAL_2ND_ARCH_VAR_PREFIX before referencing it."

9 years agoReset LOCAL_2ND_ARCH_VAR_PREFIX before referencing it.
Ying Wang [Wed, 22 Oct 2014 01:34:30 +0000 (18:34 -0700)]
Reset LOCAL_2ND_ARCH_VAR_PREFIX before referencing it.

Change-Id: I9182ce1efe09609100d19c9fae2bc4fe7358dfc0

9 years agoMerge "Add -Wno-unused-command-line-argument to clang cflags to enable ccache."
Ying Wang [Tue, 21 Oct 2014 19:19:15 +0000 (19:19 +0000)]
Merge "Add -Wno-unused-command-line-argument to clang cflags to enable ccache."

9 years agoAdd -Wno-unused-command-line-argument to clang cflags to enable ccache.
Ying Wang [Fri, 17 Oct 2014 22:07:24 +0000 (15:07 -0700)]
Add -Wno-unused-command-line-argument to clang cflags to enable ccache.

Previously ccache is disabled when it fails calling clang's preprocessor with
unused arguments (such as '-Wa,--noexecstack') in the command line.

See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html.
(-Qunused-arguments suppresses more than
-Wno-unused-command-line-argument does.)

Change-Id: I6cde307632c8395c053eb28063d7844d93070562

9 years agoMerge "We also need -rdynamic for host ASAN."
Dan Albert [Mon, 20 Oct 2014 22:33:49 +0000 (22:33 +0000)]
Merge "We also need -rdynamic for host ASAN."

9 years agoWe also need -rdynamic for host ASAN.
Dan Albert [Mon, 20 Oct 2014 20:30:00 +0000 (13:30 -0700)]
We also need -rdynamic for host ASAN.

Change-Id: Iee33ca85c25d9bf126be8318a3b837074ab10076

9 years agoMerge "Add support for ASAN in host modules."
Dan Albert [Mon, 20 Oct 2014 20:24:07 +0000 (20:24 +0000)]
Merge "Add support for ASAN in host modules."

9 years agoAdd support for ASAN in host modules.
Dan Albert [Mon, 20 Oct 2014 18:37:18 +0000 (11:37 -0700)]
Add support for ASAN in host modules.

Change-Id: Id9ed83499e0eb995f06e845c3153a50677d768b8

9 years agoMerge "Remove unnecessary 10.8-specific build rules"
Stephen Hines [Mon, 20 Oct 2014 18:06:34 +0000 (18:06 +0000)]
Merge "Remove unnecessary 10.8-specific build rules"

9 years agoMerge "Fix breakage for x86_64 static executables."
Dan Albert [Sat, 18 Oct 2014 01:05:36 +0000 (01:05 +0000)]
Merge "Fix breakage for x86_64 static executables."

9 years agoRemove unnecessary 10.8-specific build rules
Stephen Hines [Sat, 18 Oct 2014 00:36:42 +0000 (17:36 -0700)]
Remove unnecessary 10.8-specific build rules

We no longer need gcc for host builds, since those all run through clang. This
header include, however, triggers errors about SSE intrinsics by replacing
the more relevant include dirs that we should be using.

Change-Id: I26a949f0109de8e6e2d1f09cb8127be927549cc4

9 years agoFix breakage for x86_64 static executables.
Dan Albert [Fri, 17 Oct 2014 23:58:38 +0000 (16:58 -0700)]
Fix breakage for x86_64 static executables.

Yikes. Don't know how this slipped through code review.

I had actually mentioned a need for cleanup in this part of the build
system earlier, since the amount of duplication between
transform-o-to-* for each arch means we might fix things incorrectly
in one of them (as I've just shown). Similarly, code reviewers are
likely to skim each one after the first if they all look close enough
(which is presumably what happened here).

Change-Id: I9b85914510f0b114485021deb97f42740712aae5

9 years agoMerge "Use libstc++ for the name of bionic's STL."
Dan Albert [Fri, 17 Oct 2014 17:44:36 +0000 (17:44 +0000)]
Merge "Use libstc++ for the name of bionic's STL."

9 years agoUse libstc++ for the name of bionic's STL.
Dan Albert [Fri, 17 Oct 2014 04:18:15 +0000 (21:18 -0700)]
Use libstc++ for the name of bionic's STL.

It is libstdc++.so, after all, and the naming makes sense for the host
this way (since it also uses libstdc++).

Change-Id: If37ffa015f7967a928ea47a290363d7696c4ce35

9 years agoMerge "Add LPAE to dex2oat ISA feature list."
Ian Rogers [Fri, 17 Oct 2014 03:56:42 +0000 (03:56 +0000)]
Merge "Add LPAE to dex2oat ISA feature list."

9 years agoMerge "Fix Java detection on some Linux distributions"
Ying Wang [Thu, 16 Oct 2014 20:58:36 +0000 (20:58 +0000)]
Merge "Fix Java detection on some Linux distributions"

9 years agoAdd LPAE to dex2oat ISA feature list.
Ian Rogers [Thu, 16 Oct 2014 20:06:05 +0000 (13:06 -0700)]
Add LPAE to dex2oat ISA feature list.

Bug: 17993736

Change-Id: Ibdf0df017a582d7d807dff17f0392dbf28475e02

9 years agoMerge "Move definition of -D__ARM_FEATURE_LPAE=1 cflag to top-level."
Ian Rogers [Thu, 16 Oct 2014 20:02:25 +0000 (20:02 +0000)]
Merge "Move definition of -D__ARM_FEATURE_LPAE=1 cflag to top-level."

9 years agoMerge "Never use stlport on the host."
Dan Albert [Thu, 16 Oct 2014 18:01:45 +0000 (18:01 +0000)]
Merge "Never use stlport on the host."

9 years agoNever use stlport on the host.
Dan Albert [Thu, 16 Oct 2014 16:53:51 +0000 (09:53 -0700)]
Never use stlport on the host.

LOCAL_CXX_STL := stlport should just use the default STL on the host.

Change-Id: Iede1b2d8884e237a10e000e5835addb768c8f78d

9 years agoFix Java detection on some Linux distributions
Bernhard Rosenkraenzer [Wed, 1 Oct 2014 01:30:11 +0000 (03:30 +0200)]
Fix Java detection on some Linux distributions

On some Linux distributions (spotted here on OpenMandriva Lx, but I'm
pretty sure some others do the same thing), "which javac" returns
/usr/bin/javac, which is a symlink to "../../etc/alternatives/javac",
which in turn points at whatever the JDK the user picked as his default.

Given "../../etc/alternatives/javac" is a relative symlink, the next
iteration of LSLINE=$(ls -l "$JAVAC") fails (no ../../etc/alternatives/java
relative to the build directory), causing tools.jar not to be found.

Using realpath and readlink where possible should work in all cases.

Change-Id: Ic60ac84a5b263dc1c1f2960092a7549d1024ed2e
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
9 years agoMove definition of -D__ARM_FEATURE_LPAE=1 cflag to top-level.
Ian Rogers [Wed, 15 Oct 2014 22:44:16 +0000 (15:44 -0700)]
Move definition of -D__ARM_FEATURE_LPAE=1 cflag to top-level.

LPAE indicates better instructions can be used when atomicity guarantees are
needed. However, LPAE's presence isn't advertised by clang/GCC. We fake an
ARM feature to advertise its presence on architectures where it is.
Also, add a TODO documenting that cortex-a15 is not the correct CPU variant
for krait.

Change-Id: I02a1248025c32d94eca0bc8a249dc524f1ac9c36

9 years agoMerge "Link compiler-rt in the correct order."
Dan Albert [Tue, 14 Oct 2014 23:59:26 +0000 (23:59 +0000)]
Merge "Link compiler-rt in the correct order."

9 years agoLink compiler-rt in the correct order.
Dan Albert [Tue, 14 Oct 2014 17:45:33 +0000 (10:45 -0700)]
Link compiler-rt in the correct order.

The compiler run-time library should always be the _last_ thing linked
when building static executables. This was being done correctly for
libgcc, but not when using compiler-rt.

Change-Id: I0689dc35f55caad2fe74c0cbb4cbe3008ded349a

9 years agoMerge "Remove "-mstackrealign" option from all x86 builds."
Elliott Hughes [Mon, 13 Oct 2014 22:35:58 +0000 (22:35 +0000)]
Merge "Remove "-mstackrealign" option from all x86 builds."

9 years agoRemove "-mstackrealign" option from all x86 builds.
Alexander Ivchenko [Tue, 16 Sep 2014 12:30:41 +0000 (16:30 +0400)]
Remove "-mstackrealign" option from all x86 builds.

For ndk docs change, please refer to:
https://android-review.googlesource.com/#/c/110100/

Change-Id: I8428e7a979eb02441066aeeee43ce693d4d0dc8d
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
9 years agoMerge "Introduce per-product per-module dex-preopt config"
Ying Wang [Fri, 10 Oct 2014 02:13:10 +0000 (02:13 +0000)]
Merge "Introduce per-product per-module dex-preopt config"

9 years agoMerge "Docs: Making source.android.com headers match those of developer.android.com"
Clay Murphy [Thu, 9 Oct 2014 17:33:27 +0000 (17:33 +0000)]
Merge "Docs: Making source.android.com headers match those of developer.android.com"

9 years agoMerge "Add -fPIC as default Clang mips ASFLAGS."
Chih-Hung Hsieh [Thu, 9 Oct 2014 17:17:07 +0000 (17:17 +0000)]
Merge "Add -fPIC as default Clang mips ASFLAGS."

9 years agoMerge "LOCAL_NATIVE_COVERAGE should imply -O0."
Dan Albert [Thu, 9 Oct 2014 00:56:23 +0000 (00:56 +0000)]
Merge "LOCAL_NATIVE_COVERAGE should imply -O0."

9 years agoLOCAL_NATIVE_COVERAGE should imply -O0.
Dan Albert [Wed, 8 Oct 2014 06:37:53 +0000 (23:37 -0700)]
LOCAL_NATIVE_COVERAGE should imply -O0.

Optimization can lead to incorrect coverage results.

Change-Id: I8ade9ab246e292d26ac18821baf9970e29dc1a1f

9 years agoAdd -fPIC as default Clang mips ASFLAGS.
Chih-Hung Hsieh [Wed, 8 Oct 2014 22:41:29 +0000 (15:41 -0700)]
Add -fPIC as default Clang mips ASFLAGS.

For mips target, gcc passes -KPIC to assembler by default,
but clang passes -KPIC only if -fPIC or -fpic is given.

BUG: 17895505
Change-Id: I7803adaf8ad7b40c6473872b67f4e0b4c502b38a

9 years agoIntroduce per-product per-module dex-preopt config
Ying Wang [Wed, 8 Oct 2014 01:07:23 +0000 (18:07 -0700)]
Introduce per-product per-module dex-preopt config

- Added LOCAL_DEX_PREOPT_FLAGS to pass extra flags to dex2oat.
- Added macro add-product-dex-preopt-module-config to specify almost
  arbitrary dex-preopt config/flags to modules in product
  configuration:
  $(call \
  add-product-dex-preopt-module-config,<module_name_list>,<config_or_flags>)
  How <config_or_flags> is interpreted is decided by
  dex_preopt_odex_install.mk and dex2oat. For now if it's "disable" we
  disable dexpreopt for the given modules; otherwise pass it to dex2oat as
  command line flags.
- If there are multiple configs for the same module in the product
  inheritance, the first takes precedence.
- Added PRODUCT_DEX_PREOPT_DEFAULT_FLAGS so you can specify default
  dex2oat flags in product configuration.
- Added PRODUCT_DEX_PREOPT_BOOT_FLAGS to specify flags of building boot.oat.

Bug: 17791867
Change-Id: I1b2955e8e51039e94d1ff43a3265a8d03598632c

9 years agoMerge "Apply LOCAL_CXX_STL to also prebuilts."
Ying Wang [Tue, 7 Oct 2014 21:11:30 +0000 (21:11 +0000)]
Merge "Apply LOCAL_CXX_STL to also prebuilts."

9 years agoApply LOCAL_CXX_STL to also prebuilts.
Ying Wang [Tue, 7 Oct 2014 20:03:29 +0000 (13:03 -0700)]
Apply LOCAL_CXX_STL to also prebuilts.

Because LOCAL_CXX_STL modifies a module's required shared libaries,
we need this for also prebuilt shared libraries and executables.

Change-Id: I418c26143999a613c40aadf990f131b123e0ac3d

9 years agoMerge "Fix typo."
Nicolas Geoffray [Tue, 7 Oct 2014 10:19:16 +0000 (10:19 +0000)]
Merge "Fix typo."

9 years agoFix typo.
Nicolas Geoffray [Tue, 7 Oct 2014 10:17:09 +0000 (11:17 +0100)]
Fix typo.

Change-Id: I738ad878a2961d118b5a89bf7d434606df2fad92

9 years agoMerge "Make which dex2oat version to use configurable."
Nicolas Geoffray [Tue, 7 Oct 2014 09:38:17 +0000 (09:38 +0000)]
Merge "Make which dex2oat version to use configurable."

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 "Stash original values of CC and CXX."
Dan Albert [Mon, 6 Oct 2014 18:33:59 +0000 (18:33 +0000)]
Merge "Stash original values of CC and CXX."

9 years agoMerge "Remove unused my_compiler_dependencies."
Dan Albert [Mon, 6 Oct 2014 18:33:41 +0000 (18:33 +0000)]
Merge "Remove unused my_compiler_dependencies."

9 years agoRemove unused my_compiler_dependencies.
Dan Albert [Fri, 3 Oct 2014 20:29:42 +0000 (13:29 -0700)]
Remove unused my_compiler_dependencies.

my_compiler_dependencies was never assigned to, but the way it was
included in the rules prevented the user from being able to use | in
LOCAL_ADDITIONAL_DEPENDENCIES. Since it is unneeded, just remove it.

Change-Id: I74bb59e81b97756296060eea5b7a42909be50130

9 years agoStash original values of CC and CXX.
Dan Albert [Sat, 4 Oct 2014 20:51:57 +0000 (13:51 -0700)]
Stash original values of CC and CXX.

This way we can still access the real compiler as opposed to a wrapped
one.

Change-Id: I17ba30416a3eb8eda056c67faaa8b5957e70caea

9 years agoDocs: Making source.android.com headers match those of developer.android.com
Clay Murphy [Fri, 3 Oct 2014 21:58:50 +0000 (14:58 -0700)]
Docs: Making source.android.com headers match those of developer.android.com

Bug: 17814801
Change-Id: I128a76b32b0d92118f621062c62d72460313f4d6

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."