OSDN Git Service

android-x86/build.git
9 years agoMerge "(Hopefully) fix the Mac build."
Dan Albert [Wed, 4 Mar 2015 01:46:22 +0000 (01:46 +0000)]
Merge "(Hopefully) fix the Mac build."

9 years ago(Hopefully) fix the Mac build.
Dan Albert [Wed, 4 Mar 2015 01:42:28 +0000 (17:42 -0800)]
(Hopefully) fix the Mac build.

The Mac linker doesn't understand --start-group, which is needed for
properly linking libgcc/libc statically. It isn't needed for dynamic
executables though, so use that driver behavior where appropriate.

Bug: 19567451
Change-Id: Ifeb03bea55bc87561c64ddafdb99f664fef0f00e

9 years agoMerge "Fix building static host executables."
Dan Albert [Tue, 3 Mar 2015 23:20:52 +0000 (23:20 +0000)]
Merge "Fix building static host executables."

9 years agoFix building static host executables.
Dan Albert [Tue, 3 Mar 2015 22:10:27 +0000 (14:10 -0800)]
Fix building static host executables.

BUILD_HOST_static=1 forces all host binaries to be statically linked.
Since -nodefaultlibs was passed (to disable libstdc++), libgcc wasn't
being passed. This change emulates the driver's behavior.

Also fix default STL selection for BUILD_HOST_static.

Bug: 19567451
Change-Id: I617aab782d40ac76ca5a7d9dddf0f202a4e3a69b

9 years agoMerge "Consult tput about color control sequence support"
Greg Hackmann [Tue, 3 Mar 2015 18:55:20 +0000 (18:55 +0000)]
Merge "Consult tput about color control sequence support"

9 years agoMerge "Disable tail call optimization and use -mstackrealign to boot up on fugu."
Chih-Hung Hsieh [Tue, 3 Mar 2015 01:39:27 +0000 (01:39 +0000)]
Merge "Disable tail call optimization and use -mstackrealign to boot up on fugu."

9 years agoDisable tail call optimization and use -mstackrealign to boot up on fugu.
Chih-Hung Hsieh [Wed, 25 Feb 2015 00:06:15 +0000 (16:06 -0800)]
Disable tail call optimization and use -mstackrealign to boot up on fugu.

http://llvm.org/bugs/show_bug.cgi?id=15086,
llvm tail call optimization is wrong for x86.

For Android/x86 to use SSE* instructions safely, stack should be 16-byte
aligned before JNI function call, which isn't true for all x86 device,
so -mstackrealign should be the default.

BUG: 19234330
Change-Id: I4c6676366788772dbe64fd7f0dd33b3ed5c9b80e

9 years agoMerge "Fix zipalign README file and usage strings."
Narayan Kamath [Fri, 27 Feb 2015 17:21:29 +0000 (17:21 +0000)]
Merge "Fix zipalign README file and usage strings."

9 years agoFix zipalign README file and usage strings.
Narayan Kamath [Thu, 26 Feb 2015 17:57:55 +0000 (17:57 +0000)]
Fix zipalign README file and usage strings.

Addresses comments from change 13e5965306.

Change-Id: I0a2c0048781858d3aa06347a77220547cfcdcebe

9 years agoMerge "Remove unused variables."
Narayan Kamath [Fri, 27 Feb 2015 11:43:33 +0000 (11:43 +0000)]
Merge "Remove unused variables."

9 years agoMerge "Use a less freqent dummy file name: zipdummy"
Ying Wang [Thu, 26 Feb 2015 17:57:57 +0000 (17:57 +0000)]
Merge "Use a less freqent dummy file name: zipdummy"

9 years agoUse a less freqent dummy file name: zipdummy
Ying Wang [Thu, 26 Feb 2015 17:36:27 +0000 (09:36 -0800)]
Use a less freqent dummy file name: zipdummy

Previously if user has a directory with name dummy in the root of the
source tree, "zip -qd package.apk dummy" fails with:
"zip error: Nothing to do!".
This change mitigates the error.

Change-Id: I642e3bf0378e5b9911a068ecb72f795b3e92f1fe

9 years agoRemove unused variables.
Narayan Kamath [Thu, 26 Feb 2015 12:39:44 +0000 (12:39 +0000)]
Remove unused variables.

Follow up from 13e5965306212a9051772ff1d5bc3a88e5fb5.

Change-Id: I370e52acd998ce72b4d7dbf2aba604d4b08bb0cf

9 years agoMerge "Store native libs aligned to PAGE_SIZE"
Narayan Kamath [Thu, 26 Feb 2015 12:38:33 +0000 (12:38 +0000)]
Merge "Store native libs aligned to PAGE_SIZE"

9 years agoStore native libs aligned to PAGE_SIZE
Dmitriy Ivanov [Wed, 23 Jul 2014 22:27:21 +0000 (15:27 -0700)]
Store native libs aligned to PAGE_SIZE

- Add a new flag to zipalign (-p) that page aligns shared
  libraries (zip entries ending with ".so") in the archive.

- Add a new build variable LOCAL_PAGE_ALIGN_SHARED_LIBRARIES
  to turn on this behaviour in zipalign.

- Add a new LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS to control
  zip behaviour.

Bug: 8076853
Bug: 19330157

Co-Authored-By: Simon Baldwin <simonb@google.com>
Co-Authored-By: Dimitry Ivanov <dimitry@google.com>
Change-Id: I1aa2c039bb2a590ae72f256acc9ba5401c2c59b1

9 years agoMerge "Make some warnings impossible to override."
Dan Albert [Wed, 25 Feb 2015 23:13:12 +0000 (23:13 +0000)]
Merge "Make some warnings impossible to override."

9 years agoMerge "mips64 should avoid common LP64 errors just like arm64 and x86-64."
Elliott Hughes [Wed, 25 Feb 2015 18:56:52 +0000 (18:56 +0000)]
Merge "mips64 should avoid common LP64 errors just like arm64 and x86-64."

9 years agomips64 should avoid common LP64 errors just like arm64 and x86-64.
Elliott Hughes [Wed, 25 Feb 2015 00:04:31 +0000 (16:04 -0800)]
mips64 should avoid common LP64 errors just like arm64 and x86-64.

Change-Id: Ibce5863bee3175671862c1889869b43bcb39a074

9 years agoMerge "add BUILD_NATIVE_BENCHMARK"
Colin Cross [Tue, 24 Feb 2015 20:49:55 +0000 (20:49 +0000)]
Merge "add BUILD_NATIVE_BENCHMARK"

9 years agoMerge "Turn on -Werror=implicit-function-declaration for arm64."
Elliott Hughes [Mon, 23 Feb 2015 21:29:58 +0000 (21:29 +0000)]
Merge "Turn on -Werror=implicit-function-declaration for arm64."

9 years agoMerge "Turn on -Werror=implicit-function-declaration for x86-64."
Elliott Hughes [Mon, 23 Feb 2015 18:23:24 +0000 (18:23 +0000)]
Merge "Turn on -Werror=implicit-function-declaration for x86-64."

9 years agoMake some warnings impossible to override.
Dan Albert [Sat, 21 Feb 2015 20:45:26 +0000 (12:45 -0800)]
Make some warnings impossible to override.

These CFLAGS and CPPFLAGS will always be added last, and are
controlled by the build system. This way we can add warnings that
users are not allowed to disable.

Change-Id: Id71f69249078f62ca2687ecbf764aff0fd3a1c1b

9 years agoMerge "goldfish_logcat: remove permissive_or_unconfined()"
Ying Wang [Mon, 23 Feb 2015 17:30:50 +0000 (17:30 +0000)]
Merge "goldfish_logcat:  remove permissive_or_unconfined()"

9 years agoMerge "qemud: remove permissive_or_unconfined()"
Ying Wang [Mon, 23 Feb 2015 17:30:42 +0000 (17:30 +0000)]
Merge "qemud:  remove permissive_or_unconfined()"

9 years agoMerge "qemu_props: remove permissive_or_unconfined()"
Ying Wang [Mon, 23 Feb 2015 17:30:27 +0000 (17:30 +0000)]
Merge "qemu_props:  remove permissive_or_unconfined()"

9 years agoMerge "goldfish_setup: remove permissive_or_unconfined()"
Ying Wang [Mon, 23 Feb 2015 17:30:20 +0000 (17:30 +0000)]
Merge "goldfish_setup:  remove permissive_or_unconfined()"

9 years agoTurn on -Werror=implicit-function-declaration for arm64.
Elliott Hughes [Sat, 21 Feb 2015 21:21:20 +0000 (13:21 -0800)]
Turn on -Werror=implicit-function-declaration for arm64.

Implicit function declarations are much more dangerous on LP64 because
sizeof(int) != sizeof(void*), so any function that returns a pointer will
lose its top bits, leading to relatively hard to debug crashes.

Change-Id: Ia05beffb949ca747833c2e12c40daf896f7a60a5

9 years agoTurn on -Werror=implicit-function-declaration for x86-64.
Elliott Hughes [Sat, 21 Feb 2015 19:01:11 +0000 (11:01 -0800)]
Turn on -Werror=implicit-function-declaration for x86-64.

Implicit function declarations are much more dangerous on LP64 because
sizeof(int) != sizeof(void*), so any function that returns a pointer will
lose its top bits, leading to relatively hard to debug crashes.

Change-Id: Ib2570326dde1b1cde09c63c9b4c973d741528ee2

9 years agoMerge "Remove references to __CYGWIN__ and HAVE_WINSOCK2_H."
Narayan Kamath [Sat, 21 Feb 2015 10:01:48 +0000 (10:01 +0000)]
Merge "Remove references to __CYGWIN__ and HAVE_WINSOCK2_H."

9 years agoRemove references to __CYGWIN__ and HAVE_WINSOCK2_H.
Narayan Kamath [Fri, 20 Feb 2015 17:04:10 +0000 (17:04 +0000)]
Remove references to __CYGWIN__ and HAVE_WINSOCK2_H.

We don't support platform builds under CYGWIN and can safely
assume that all windows host builds are for MinGW32.

HAVE_WINSOCK2_H is currently unused. The only references to it
are in code that define it themselves or in application code that
by definition isn't compiled for windows.

Change-Id: I236d6e070df93f713cb716bb8a461c9c1d32a180

9 years agoMerge "[DO NOT MERGE] Trim the AOSP PLATFORM_VERSION."
Ying Wang [Fri, 20 Feb 2015 00:40:55 +0000 (00:40 +0000)]
Merge "[DO NOT MERGE] Trim the AOSP PLATFORM_VERSION."

9 years ago[DO NOT MERGE] Trim the AOSP PLATFORM_VERSION.
Ying Wang [Fri, 20 Feb 2015 00:21:47 +0000 (16:21 -0800)]
[DO NOT MERGE] Trim the AOSP PLATFORM_VERSION.

With the long PLATFORM_VERSION, if you have also a long device/product
name and/or a long username, ro.build.fingerprint can easily exceed the
system property's length limit of 92 bytes.
This mitigates the risk a little bit.

Bug: 15593959
Change-Id: I9e316025227b30aa6887c9ce0065364fdbb9fc8f

9 years agoMerge "Remove the unsets for removed gdbclient functions."
Dan Albert [Tue, 17 Feb 2015 21:01:18 +0000 (21:01 +0000)]
Merge "Remove the unsets for removed gdbclient functions."

9 years agoMerge "Remove ARCH_ARM_HAVE_TLS_REGISTER."
Elliott Hughes [Tue, 17 Feb 2015 17:47:09 +0000 (17:47 +0000)]
Merge "Remove ARCH_ARM_HAVE_TLS_REGISTER."

9 years agoRemove ARCH_ARM_HAVE_TLS_REGISTER.
Elliott Hughes [Sat, 14 Feb 2015 04:51:12 +0000 (20:51 -0800)]
Remove ARCH_ARM_HAVE_TLS_REGISTER.

This was only needed for platform builds, and was removed in the gap between
armv5 being removed and being added back again for tapas builds. Otherwise it
would have been removed back then.

(I suspect that we don't need the system.prop file in here, either, but I
don't really know how to test that.)

Change-Id: I212ff7b3568b5d5ff3cc66150ec7c4fa0b8cac92

9 years agoMerge "Remove gdbclient from envsetup."
Dan Albert [Thu, 12 Feb 2015 21:02:49 +0000 (21:02 +0000)]
Merge "Remove gdbclient from envsetup."

9 years agoMerge "Increase BOARD_SYSTEMIMAGE_PARTITION_SIZE to 900MB for mips64."
Ying Wang [Thu, 12 Feb 2015 19:58:39 +0000 (19:58 +0000)]
Merge "Increase BOARD_SYSTEMIMAGE_PARTITION_SIZE to 900MB for mips64."

9 years agoRemove the unsets for removed gdbclient functions.
Dan Albert [Thu, 12 Feb 2015 19:30:06 +0000 (11:30 -0800)]
Remove the unsets for removed gdbclient functions.

Change-Id: I6bb8b42dbc7ac45bec6b8267733f9b4d6212315f

9 years agoRemove gdbclient from envsetup.
Dan Albert [Thu, 12 Feb 2015 19:14:39 +0000 (11:14 -0800)]
Remove gdbclient from envsetup.

gdbclient is being promoted to a real script:
https://android-review.googlesource.com/#/c/131831/

Change-Id: I4bb70ad44cec0ebf62d9e8e355c22ed8b708868b

9 years agoConsult tput about color control sequence support
Greg Hackmann [Mon, 23 Jun 2014 21:05:06 +0000 (14:05 -0700)]
Consult tput about color control sequence support

Blocking these sequences on Darwin has false positives (Terminal.app)
and false negatives (Eclipse CDT on Linux).  Instead let's ask the
terminal what it supports.

Change-Id: I907942925a8b30abc1ea920f077b5fc3af815ba4
Signed-off-by: Greg Hackmann <ghackmann@google.com>
9 years agoMerge "core: remove dependencies on genext2fs"
JP Abgrall [Thu, 12 Feb 2015 01:53:41 +0000 (01:53 +0000)]
Merge "core: remove dependencies on genext2fs"

9 years agocore: remove dependencies on genext2fs
JP Abgrall [Wed, 11 Feb 2015 23:04:59 +0000 (15:04 -0800)]
core: remove dependencies on genext2fs

We don't use EXT2 for bootimage anymore.
This will allow getting rid of external/genext2fs

Bug: 19282953
Change-Id: Ie56528c7877036d2501a09888a4420637f9cd647

9 years agoqemud: remove permissive_or_unconfined()
Stephen Smalley [Tue, 10 Feb 2015 22:29:01 +0000 (17:29 -0500)]
qemud:  remove permissive_or_unconfined()

Change-Id: Ia15cf87de1d03364f80d3d0cbc546475abfef448
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
9 years agoqemu_props: remove permissive_or_unconfined()
Stephen Smalley [Tue, 10 Feb 2015 22:28:41 +0000 (17:28 -0500)]
qemu_props:  remove permissive_or_unconfined()

Change-Id: I29f37822ccac22dd884d88f9dcd23237b5a3e2de
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
9 years agogoldfish_setup: remove permissive_or_unconfined()
Stephen Smalley [Tue, 10 Feb 2015 22:28:11 +0000 (17:28 -0500)]
goldfish_setup:  remove permissive_or_unconfined()

Change-Id: I3b44f24554f288f4fb1e18a53fa68e8a7cd8c8c7
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
9 years agogoldfish_logcat: remove permissive_or_unconfined()
Stephen Smalley [Tue, 10 Feb 2015 22:27:41 +0000 (17:27 -0500)]
goldfish_logcat:  remove permissive_or_unconfined()

Change-Id: I1a26b07bf723c944c7dcb8beec96537500a3bc60
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
9 years agoIncrease BOARD_SYSTEMIMAGE_PARTITION_SIZE to 900MB for mips64.
Douglas Leung [Tue, 10 Feb 2015 19:54:02 +0000 (11:54 -0800)]
Increase BOARD_SYSTEMIMAGE_PARTITION_SIZE to 900MB for mips64.

This is needed to build mips64 ART in quick mode.

Change-Id: I8a9e62389a3d4edb84bf1d6814d6594565bc98ba

9 years agoMerge "Add version strings from android-info.txt into build.prop"
Andres Morales [Mon, 9 Feb 2015 22:45:56 +0000 (22:45 +0000)]
Merge "Add version strings from android-info.txt into build.prop"

9 years agoAdd version strings from android-info.txt into build.prop
Andres Morales [Fri, 6 Feb 2015 18:12:55 +0000 (10:12 -0800)]
Add version strings from android-info.txt into build.prop

Allows runtime checking of expected baseband/bootloader.

Change-Id: Iccb053fee5f72f4e082a5c3482c0710b13ee7eb8

9 years agoMerge "Add system/build.prop dependency on vendor/bootimg"
Andres Morales [Fri, 6 Feb 2015 18:11:29 +0000 (18:11 +0000)]
Merge "Add system/build.prop dependency on vendor/bootimg"

9 years agoAdd system/build.prop dependency on vendor/bootimg
Andres Morales [Thu, 5 Feb 2015 20:42:43 +0000 (12:42 -0800)]
Add system/build.prop dependency on vendor/bootimg

When incremental builds only affect the system partition,
the build.prop file for other partitions might go out of
date.

Add a dependency on system/build.prop s.t. when
it's rebuilt,
the fingerprints are updated on the other
partition's build.prop's.

Bug:19058575
Change-Id: Iea7b761e0800c402eb4ce1154e8f6af5a17f7b06

9 years agoMerge "Remove mkyaffs2image references."
Elliott Hughes [Thu, 5 Feb 2015 04:04:42 +0000 (04:04 +0000)]
Merge "Remove mkyaffs2image references."

9 years agoRemove mkyaffs2image references.
Elliott Hughes [Thu, 5 Feb 2015 03:58:09 +0000 (19:58 -0800)]
Remove mkyaffs2image references.

Change-Id: I1d112515bc92353a5b48ec668e1cadfb51ecdaad

9 years agoMerge "Make sure we keep building grep now it's broken out from toolbox."
Elliott Hughes [Thu, 5 Feb 2015 03:35:48 +0000 (03:35 +0000)]
Merge "Make sure we keep building grep now it's broken out from toolbox."

9 years agoMake sure we keep building grep now it's broken out from toolbox.
Elliott Hughes [Thu, 5 Feb 2015 02:55:53 +0000 (18:55 -0800)]
Make sure we keep building grep now it's broken out from toolbox.

Change-Id: Ib71e37c5ba238136a9790cd92ecec745e099341e

9 years agoMerge "Fail even dev build when property value exceeds length limit."
Ying Wang [Wed, 4 Feb 2015 23:33:19 +0000 (23:33 +0000)]
Merge "Fail even dev build when property value exceeds length limit."

9 years agoFail even dev build when property value exceeds length limit.
Ying Wang [Wed, 4 Feb 2015 23:10:59 +0000 (15:10 -0800)]
Fail even dev build when property value exceeds length limit.

Let developers know the issue earlier when they set up new
products.

Change-Id: I3f2ecbc3a833c1a8a84bd75407a5c035e5fea70a

9 years agoMerge "Remove support of factory ramdisk/bundle."
Ying Wang [Wed, 4 Feb 2015 19:08:09 +0000 (19:08 +0000)]
Merge "Remove support of factory ramdisk/bundle."

9 years agoRemove support of factory ramdisk/bundle.
Ying Wang [Wed, 4 Feb 2015 18:56:33 +0000 (10:56 -0800)]
Remove support of factory ramdisk/bundle.

Bug: 18779515
Change-Id: Ia6d51d43965447e2e95944a7d2b4b41adb121cb7

9 years agoMerge "Disable transitive dependency library symbol resolving for mips."
Ying Wang [Tue, 3 Feb 2015 19:30:16 +0000 (19:30 +0000)]
Merge "Disable transitive dependency library symbol resolving for mips."

9 years agoDisable transitive dependency library symbol resolving for mips.
Ying Wang [Tue, 3 Feb 2015 18:58:50 +0000 (10:58 -0800)]
Disable transitive dependency library symbol resolving for mips.

The transitive symbol resolving causes build breakage when a binary
linked against NDK has indirect dependency on platform libraries, or
vice versa.

Change-Id: Idbfe76079c1db14eb1156d0f396e13d26f0ff582

9 years agoMerge "Add target recoveryimage-nodeps."
Ying Wang [Sat, 31 Jan 2015 00:33:05 +0000 (00:33 +0000)]
Merge "Add target recoveryimage-nodeps."

9 years agoAdd target recoveryimage-nodeps.
Ying Wang [Fri, 30 Jan 2015 22:05:22 +0000 (14:05 -0800)]
Add target recoveryimage-nodeps.

Change-Id: Ie7d11ae8f40260bf23481931c18523895c87ebd7

9 years agoMerge "envsetup.sh : add help text for sepgrep and mangrep commands"
Elliott Hughes [Fri, 30 Jan 2015 04:51:03 +0000 (04:51 +0000)]
Merge "envsetup.sh : add help text for sepgrep and mangrep commands"

9 years agoenvsetup.sh : add help text for sepgrep and mangrep commands
Trevor Drake [Fri, 30 Jan 2015 04:42:21 +0000 (04:42 +0000)]
envsetup.sh : add help text for sepgrep and mangrep commands

Change-Id: Iac3942da05c1803039b9fcf15fee1fc0e0f4efda

9 years agoMerge "Add new build flag LOCAL_DONT_DELETE_JAR_DIRS."
Ying Wang [Thu, 29 Jan 2015 17:44:37 +0000 (17:44 +0000)]
Merge "Add new build flag LOCAL_DONT_DELETE_JAR_DIRS."

9 years agoAdd new build flag LOCAL_DONT_DELETE_JAR_DIRS.
Fredrik Roubert [Wed, 28 Jan 2015 20:29:38 +0000 (21:29 +0100)]
Add new build flag LOCAL_DONT_DELETE_JAR_DIRS.

Normally the build function initialize-package-file will delete all
class files and all directory entries from JAR files, but sometimes
external projects (eg. ICU4J) depend on having directory entries in
their JAR files.

This change adds the flag LOCAL_DONT_DELETE_JAR_DIRS (analogous to the
flag LOCAL_DONT_DELETE_JAR_META_INF) which when set will skip deletion
of directory entries in initialize-package-file.

Change-Id: I4464b947b7528fca23925affa95e4071915f04d4

9 years agoMerge "Remove unused property."
Elliott Hughes [Thu, 29 Jan 2015 16:22:52 +0000 (16:22 +0000)]
Merge "Remove unused property."

9 years agoRemove unused property.
Elliott Hughes [Thu, 29 Jan 2015 06:43:43 +0000 (22:43 -0800)]
Remove unused property.

Change-Id: I14cfccf104881fdbca2b926e289b90e4bfad1c32

9 years agoMerge "Kill HAVE_PTHREADS."
Yabin Cui [Tue, 27 Jan 2015 22:59:46 +0000 (22:59 +0000)]
Merge "Kill HAVE_PTHREADS."

9 years agoKill HAVE_PTHREADS.
Yabin Cui [Tue, 27 Jan 2015 22:34:36 +0000 (14:34 -0800)]
Kill HAVE_PTHREADS.

Bug: 19083585
Change-Id: I5be0d2f95c3c45e7f67de6a8daeb49709ef1f9e9

9 years agoMerge "Allow to build "winsdk-tools" alone."
Ying Wang [Tue, 27 Jan 2015 22:01:27 +0000 (22:01 +0000)]
Merge "Allow to build "winsdk-tools" alone."

9 years agoAllow to build "winsdk-tools" alone.
Ying Wang [Tue, 27 Jan 2015 20:47:10 +0000 (12:47 -0800)]
Allow to build "winsdk-tools" alone.

Allow to run "make winsdk-tools" without building the full win_sdk.

Bug: 19149444
Change-Id: If98495035f4f84dbcab7af2a74434e589bbfd4d1

9 years agoMerge "Remove platform/bootable/bootloader/legacy from pathmap"
Bill Yi [Tue, 27 Jan 2015 21:52:35 +0000 (21:52 +0000)]
Merge "Remove platform/bootable/bootloader/legacy from pathmap"

9 years agoRemove platform/bootable/bootloader/legacy from pathmap
Bill Yi [Tue, 27 Jan 2015 21:47:05 +0000 (13:47 -0800)]
Remove platform/bootable/bootloader/legacy from pathmap

BUG:19164048
Change-Id: Ib640db9be77a859a28c533190e3b5edacf84a412

9 years agoMerge "Build hostdex on only Linux."
Ying Wang [Mon, 26 Jan 2015 18:43:17 +0000 (18:43 +0000)]
Merge "Build hostdex on only Linux."

9 years agoBuild hostdex on only Linux.
Ying Wang [Mon, 26 Jan 2015 17:52:28 +0000 (09:52 -0800)]
Build hostdex on only Linux.

Change-Id: I9213684e4c65632c54e9929f693f4b6a24beb95a

9 years agoMerge "Fix comma in $(if ...)."
Dan Albert [Sun, 25 Jan 2015 22:30:19 +0000 (22:30 +0000)]
Merge "Fix comma in $(if ...)."

9 years agoFix comma in $(if ...).
Logan Chien [Sun, 25 Jan 2015 13:15:12 +0000 (21:15 +0800)]
Fix comma in $(if ...).

Change-Id: I2f9fba5b5c0384ef12ee9e5f48fa01102436a425

9 years agoMerge "Allow coverage with clang."
Dan Albert [Sat, 24 Jan 2015 23:32:19 +0000 (23:32 +0000)]
Merge "Allow coverage with clang."

9 years agoMerge "Enable host coverage."
Dan Albert [Sat, 24 Jan 2015 23:32:15 +0000 (23:32 +0000)]
Merge "Enable host coverage."

9 years agoAllow coverage with clang.
Dan Albert [Sat, 24 Jan 2015 23:14:35 +0000 (15:14 -0800)]
Allow coverage with clang.

Note that this doesn't play nicely with acov out of the box. Clang
apparently generates .gcno files that aren't compatible with gcov-4.8.
This can be solved by installing gcc-4.6 and invoking lcov with
`--gcov-tool /usr/bin/gcov-4.6`.

http://stackoverflow.com/questions/17758126/clang-code-coverage-invalid-output

Change-Id: I79547e1c579fa79db47ff07d5e90c42cedbd5cbb

9 years agoEnable host coverage.
Dan Albert [Sat, 24 Jan 2015 00:12:57 +0000 (16:12 -0800)]
Enable host coverage.

Don't remember why I didn't enable this for the host when I made the
first pass, but it works just fine.

Change-Id: I0892c0bc353bf8b60b432ba9f69f97281177d41d

9 years agoMerge "Add -static to static link command, for clang."
Chih-Hung Hsieh [Sat, 24 Jan 2015 01:03:02 +0000 (01:03 +0000)]
Merge "Add -static to static link command, for clang."

9 years agoAdd -static to static link command, for clang.
Chih-Hung Hsieh [Tue, 20 Jan 2015 19:00:20 +0000 (11:00 -0800)]
Add -static to static link command, for clang.

Clang driver needs -static flag, not -Bstatic,
to produce statically linked modules.
However, -static is not added if LDFLAGS contains -shared,
which is used in bionic/linker to create a shared object with static libraries.

BUG: 18008984

Change-Id: I75c3e24973ee77170285ec4c8e7aacc345722685

9 years agoMerge "Add dependency of import_includes on LOCAL_MODULE_MAKEFILE"
Ying Wang [Fri, 23 Jan 2015 00:14:26 +0000 (00:14 +0000)]
Merge "Add dependency of import_includes on LOCAL_MODULE_MAKEFILE"

9 years agoMerge "gdbclient: Improve error handling"
Dmitriy Ivanov [Fri, 23 Jan 2015 00:02:42 +0000 (00:02 +0000)]
Merge "gdbclient: Improve error handling"

9 years agoAdd dependency of import_includes on LOCAL_MODULE_MAKEFILE
Ying Wang [Thu, 22 Jan 2015 23:44:04 +0000 (15:44 -0800)]
Add dependency of import_includes on LOCAL_MODULE_MAKEFILE

So the build system regenerates import_includes when you modify
Android.mk to add a new dependency library.

Change-Id: Ic92b097b659bb68a9065e1d66da59e0dc7e2836a

9 years agogdbclient: Improve error handling
Dmitriy Ivanov [Thu, 22 Jan 2015 21:22:17 +0000 (13:22 -0800)]
gdbclient: Improve error handling

  Print error message when unable to resolve exefile by pid

Change-Id: I5d04bdc348e5f95818ac90e29148947edfce42eb

9 years agoMerge "Add ro.product.locale"
Narayan Kamath [Thu, 22 Jan 2015 14:04:52 +0000 (14:04 +0000)]
Merge "Add ro.product.locale"

9 years agoMerge "Remove phone from frameworks/base subdirs"
Ying Wang [Wed, 21 Jan 2015 20:06:58 +0000 (20:06 +0000)]
Merge "Remove phone from frameworks/base subdirs"

9 years agoMerge "Revert "Add the default local_time hal implementation to builds.""
Ying Wang [Wed, 21 Jan 2015 20:05:22 +0000 (20:05 +0000)]
Merge "Revert "Add the default local_time hal implementation to builds.""

9 years agoMerge "Running jarjar on Java resources."
Ying Wang [Wed, 21 Jan 2015 20:04:20 +0000 (20:04 +0000)]
Merge "Running jarjar on Java resources."

9 years agoRunning jarjar on Java resources.
Ying Wang [Wed, 14 Jan 2015 22:23:56 +0000 (14:23 -0800)]
Running jarjar on Java resources.

Before this change, Java resources are added as a separate step
(add-java-resources-to-package) after dex is run, so jarjar isn't run on
the resource files.
With this change, we add Java resources immediately after we call javac,
so jarjar is run on the resource files (the module's own resource, as
well as resources carried by static Java libraries).
When we generate the final apk/jar, we use the jarjar'ed jar as the
inital pacakge file, with class files and empty folders removed.

(cherry-picked from commit 140274707e31c9585aa28b0de2f1418c64ecd272)

Bug: 18837479
Change-Id: I15ecf282bfb65fd53dd03fbd03dd4c71927c186a

9 years agoMerge "emulator: Include the ranchu sensors library"
David Turner [Wed, 21 Jan 2015 19:42:53 +0000 (19:42 +0000)]
Merge "emulator: Include the ranchu sensors library"

9 years agoMerge "Fix missing parenthesis."
Christopher Ferris [Wed, 21 Jan 2015 18:39:06 +0000 (18:39 +0000)]
Merge "Fix missing parenthesis."

9 years agoRevert "Add the default local_time hal implementation to builds."
Chih-Wei Huang [Wed, 21 Jan 2015 04:09:27 +0000 (12:09 +0800)]
Revert "Add the default local_time hal implementation to builds."

Remove duplicate local_time.default.

This reverts commit a09c24db71ec4babd0e4db36ffdd180b2fcc6f7a.

Change-Id: Ic96d42235c14588d454e92a57b3bb9e74688fd99

9 years agoRemove phone from frameworks/base subdirs
Chih-Wei Huang [Wed, 5 Nov 2014 09:30:58 +0000 (17:30 +0800)]
Remove phone from frameworks/base subdirs

The directory no longer exists.

Change-Id: Id8d109818f06783d72dfc005595330f735b7e5cf

9 years agoFix missing parenthesis.
Christopher Ferris [Wed, 21 Jan 2015 02:23:05 +0000 (18:23 -0800)]
Fix missing parenthesis.

Change-Id: Ib9eda50a6f9096dad35cf81ac3b3cdc26636a016

9 years agoMerge "[MIPSR6] Adjust prebuilts/ndk libraries for mips32r6"
Ying Wang [Fri, 16 Jan 2015 18:13:35 +0000 (18:13 +0000)]
Merge "[MIPSR6] Adjust prebuilts/ndk libraries for mips32r6"