Commit Graph

1031 Commits

Author SHA1 Message Date
Colin Cross 0dbe26e8da Add libnativehelper to root Android.bp
libnativehelper has an Android.bp file, so it won't cause a namespace
conflict between the glob on the directory and the module name.

Bug: 25797955
Change-Id: Id86b3a1cd0f130989f77613494e19b8f255029ce
2016-07-27 10:57:08 -07:00
Christopher Ferris e1ddc12b5d Merge "Remove the common bionic libc kernel directory." 2016-07-27 17:56:55 +00:00
Colin Cross 5dab840e24 Fix static+shared with generated sources
Clear out the generated sources when reusing object files from the
static library for the shared library to avoid linking them twice.

Change-Id: Idc145f817acc93df4c3b266ac7647299399bc8eb
2016-07-27 10:30:21 -07:00
Colin Cross e7b07137d4 Allow defaults modules to have defaults
Allow chaining defaults modules by making Defaults be a Defaultable.

Change-Id: I4ba86c07f7aad9c396ed33d55fe95d1fb78e487d
2016-07-27 10:15:06 -07:00
Dan Willemsen 9c2ecad476 Add Binder32bit product variable
am: 1be3538862

Change-Id: I4f3abba3f79ae7fbde4dc29bfc2a84a47f37fed3
2016-07-27 00:45:18 +00:00
Dan Willemsen 1be3538862 Add Binder32bit product variable
To allow cflag changes when using the "old" binder API that are still
used by all 32-bit only configurations. We can't just use
android32/android64 here, since some devices use a 64-bit kernel with a
32-bit userspace, which is configured as "android32".

Change-Id: I8450484b75d59c1855c7ba36260c08925e7b28ad
2016-07-26 23:03:47 +00:00
Dan Willemsen 70e17fa6a5 Dump Soong module type statistics to Make
Make will combine this information with statistics gathered from the
Make build, then dump it out to a build artifact.

Change-Id: I2bd84d4f8a8d145c37e3a4c4fcc8fece99e2a1de
2016-07-25 16:00:20 -07:00
Dan Willemsen 808b3eb021 Limit unique_host_soname to just host modules
am: 627d83db71

Change-Id: Icb02c8a0965dea7e34d64fe08c84418029c7304d
2016-07-22 21:39:44 +00:00
Dan Willemsen 627d83db71 Limit unique_host_soname to just host modules
Change-Id: I41d050806a27473abb3788de43b7bf67f5d049a8
2016-07-22 13:41:24 -07:00
Dan Willemsen 5fceeba074 Merge \"Support unique_host_soname to add -host for shared libs\"
am: bdf3657991

Change-Id: Id3afe131255c58bb00984ce54fde3f9833dae1fb
2016-07-22 19:28:55 +00:00
Dan Willemsen bdf3657991 Merge "Support unique_host_soname to add -host for shared libs" 2016-07-22 19:20:35 +00:00
Christopher Ferris 68fed44d38 Remove the common bionic libc kernel directory.
The kernel include directory bionic/libc/kernel/common has been deleted,
so remove it from the include path.

Bug: 30072483
Change-Id: I71297f7ac1a9a28267b2aab270644abab2a085ae
2016-07-22 11:01:41 -07:00
Colin Cross a41e941ad2 Clang supports armv5te now
am: c3e11e5f45

Change-Id: Icd5ed24aacb3a463e7e0dcf0bbf2258fec405f11
2016-07-22 00:39:28 +00:00
Dan Willemsen 648c8aed4c Support unique_host_soname to add -host for shared libs
In order to distinguish our host libraries from system installed
libraries, support a flag to automatically append -host to host shared
libraries names. Previously, we were implementing this with different modules,
but with Soong, we'd really like to share the module definitions.

This properly exports the module to make, so that
LOCAL_SHARED_LIBRARIES := libcrypto still works, but the final installed
name is libcrypto-host.so.

Change-Id: I63389469fe1b38078b8bbf4c0fd92e54ef90ae1a
2016-07-21 16:42:14 -07:00
Colin Cross d8cd8fbc8b Merge \"Refactor bionic includes into a single place\"
am: 72bd7dba4a

Change-Id: I4f6c9594dd6628a92c0762d955783d39a7c7a642
2016-07-21 19:36:40 +00:00
Colin Cross c3e11e5f45 Clang supports armv5te now
Remove the -march=armv5te -> -march=armv5t translation for clang.

Change-Id: Icc9b7c5e9c6194d31387ca63b9f7179a2843d527
2016-07-21 12:35:28 -07:00
Treehugger Robot 72bd7dba4a Merge "Refactor bionic includes into a single place" 2016-07-21 19:27:40 +00:00
Dan Albert af7a4c8bd2 Merge \"Use the full path to the shared lib.\"
am: c2062f9c44

Change-Id: I45426d5e6aee4f5bc0f5d1fa64704bf5d4526e6e
2016-07-21 18:54:06 +00:00
Treehugger Robot c2062f9c44 Merge "Use the full path to the shared lib." 2016-07-21 18:45:19 +00:00
Colin Cross f59b69ccaa Refactor bionic includes into a single place
Bionic includes are the same on all architectures, modulo
architecture-specific includes.  Use a single function to populate the
list, passing in bionic's and the kernel's names for the architecture.

Also get rid of the ${LibcRoot} variable, it is not providing any value
and makes grepping harder.

Change-Id: I39e7907d312f52dd1378a3937ab1bcba12c4e97f
2016-07-21 11:17:01 -07:00
Colin Cross 32be11e214 Merge \"Rename exported make variables for system headers\"
am: 1a0c76fd1e

Change-Id: I356c73170b68f2d0119ba9f7524f2c2335a5d6f4
2016-07-21 17:58:11 +00:00
Colin Cross 1a0c76fd1e Merge "Rename exported make variables for system headers" 2016-07-21 17:51:13 +00:00
Colin Cross 9e53501f3a Merge \"Initial README.md\"
am: 7bdedbfb8c

Change-Id: Icdd4dee7c996c7d016e026c143e62d92dbc796f3
2016-07-21 17:25:30 +00:00
Colin Cross 7bdedbfb8c Merge "Initial README.md" 2016-07-21 17:08:49 +00:00
Dan Albert 9840e1bf1a Use the full path to the shared lib.
Using only -lc (for example) means that in the case where we have one
library path with libc.a but no libc.so (such as prebuilts/ndk) and
another with libc.so (such as the out directory), we'll always use the
static version.

We can link shared libraries by their full path to be sure that we
always get the right library.

Change-Id: Idf5707fc4aaf9e651d7d8936611200760eab3c7c
2016-07-21 10:01:55 -07:00
Dan Willemsen 316489ffff Merge \"Add more allowed ldlibs for darwin and windows\"
am: ff3a2e4d55

Change-Id: I3a8417f38f381e1bd101ee66a13e5d0333855996
2016-07-20 21:27:04 +00:00
Treehugger Robot ff3a2e4d55 Merge "Add more allowed ldlibs for darwin and windows" 2016-07-20 21:22:17 +00:00
Dan Willemsen 335a5128cb Merge \"Fix Mega_device build\"
am: e36d753ed1

Change-Id: Ie675bfbaa7e1610bf669f65a8cdc7da41666d91f
2016-07-20 20:32:23 +00:00
Treehugger Robot e36d753ed1 Merge "Fix Mega_device build" 2016-07-20 20:22:14 +00:00
Dan Willemsen 2b1f0943f5 Add more allowed ldlibs for darwin and windows
Change-Id: If6217de9e369e29a2e716c5cbad4444e7312f197
2016-07-20 13:19:55 -07:00
Colin Cross 10c78c6b97 Rename exported make variables for system headers
Add SYSTEM_ to variables that contain headers that are used with
-isystem, and split -I and -isystem variables into separate make
variables.  Also export SRC_HEADERS and SRC_SYSTEM_HEADERS to compare
against make.

Change-Id: I02097c35d1d5342ebce8311d8878fff33b118adb
2016-07-20 13:15:51 -07:00
Christopher Ferris 08b4411d5b Merge \"Add android/uapi kernel header.\"
am: f9a6ff2713

Change-Id: I851d523c9a6b12482865a77698ec92323faec26d
2016-07-20 18:09:40 +00:00
Christopher Ferris f9a6ff2713 Merge "Add android/uapi kernel header." 2016-07-20 18:03:48 +00:00
Dan Willemsen 65fb981814 Fix Mega_device build
Change-Id: I128d013ef7c1cb0afa71dc011bf5d4180f468a1b
2016-07-19 21:37:28 -07:00
Dan Willemsen 7c87ccc665 Use PlatformSdkVersion from Make
am: 5951c8a3a9

Change-Id: I790ee33348025c98996b8965883bc4b017a0c1df
2016-07-20 03:20:20 +00:00
Dan Willemsen 5951c8a3a9 Use PlatformSdkVersion from Make
This doesn't need to be hardcoded, and should be updated anyways.

Change-Id: Ie28d0d7655e8db3c02d110ae578a763a69b73f92
2016-07-19 19:17:52 -07:00
Pirama Arumuga Nainar 5662c04bae Merge \"Switch to prebuilt clang-3016494\"
am: 8195ed10a4

Change-Id: Ibc78aa6fa69875f783c1b1bff3167c9c61d0fda6
2016-07-19 23:40:42 +00:00
Pirama Arumuga Nainar 7556109a79 Disable warnings triggered in Clang r271374
am: b6572b15c4

Change-Id: I8673c02fefafcfcc30684e5c95540dc20c8af485
2016-07-19 23:40:29 +00:00
Stephen Hines 8195ed10a4 Merge "Switch to prebuilt clang-3016494" 2016-07-19 22:02:32 +00:00
Pirama Arumuga Nainar b6572b15c4 Disable warnings triggered in Clang r271374
Test: Tested build, boot and common usage for Arm, Arm64, x86, x86_64,
Mips images in AOSP and internal branch.

http://b/28149048
http://b/29823425

Disable -Wexpansion-to-defined and -Wnull-dereference.  The second bug
above tracks that these warnings get re-enabled.

Change-Id: Ic23f6b51d3f6913fce2b423a15847e8698bab830
2016-07-19 20:32:11 +00:00
Pirama Arumuga Nainar a17442b2f2 Switch to prebuilt clang-3016494
Bug: http://b/29823425

Test: Tested build, boot and common usage for Arm, Arm64, x86, x86_64,
Mips images in AOSP and internal branch.

Change-Id: I27e03a611d60a2122f6970d6a33f7abdf433546a
2016-07-19 20:32:01 +00:00
Dan Albert b1e3684ead Merge changes I2731ef15,Ib4b03035
am: 93bf7d8506

Change-Id: I499e3c7849b542e9a14c68b07848a111938ea9ea
2016-07-19 18:46:32 +00:00
Treehugger Robot 93bf7d8506 Merge changes I2731ef15,Ib4b03035
* changes:
  Add a timestamp touch rule.
  Remove the implicit "_" in subnames.
2016-07-19 18:41:43 +00:00
Dan Albert 5d723ab19a Add a timestamp touch rule.
Test: Works for the NDK changes I'm working on.
Change-Id: I2731ef159122d6d44a6494a6c975a687bb49ff56
2016-07-18 23:31:27 -07:00
Dan Albert 6a0476930a Remove the implicit "_" in subnames.
The NDK stub libraries need to use subname, but should use "." instead
of "_".

Test: Still builds.
Change-Id: Ib4b0303531e03968c55671ea167ab987adebd783
2016-07-18 23:31:18 -07:00
Christopher Ferris b68ea7a66c Add android/uapi kernel header.
Add the new android/uapi kernel header include directory.

Bug: 30072483
Change-Id: I3e1394b9abd744c7f76b0ac73bb07f614745a248
2016-07-18 18:36:31 -07:00
Colin Cross 2f95978837 Merge \"Disable asan for static binaries\"
am: 036ce31bfa

Change-Id: I2df32b55a3b42d586fd0a11c88a01d0f38eecdbb
2016-07-19 00:28:25 +00:00
Treehugger Robot 036ce31bfa Merge "Disable asan for static binaries" 2016-07-19 00:19:06 +00:00
Stephen Hines 7ff2f08a45 Revert \"Revert \"Switch libcompiler_rt-extras to LateStaticLibs.\"\"
am: 1034786c37

Change-Id: I14b765d0cc76748f2a30925170da53d49ba7d2f4
2016-07-19 00:07:52 +00:00
Colin Cross 3c344ef29e Disable asan for static binaries
build/core/executable.mk has an extra check to disable asan for static
binaries, do the same in soong.

Bug: 30191800
Change-Id: Ia78063264f3280eb889ba9e45c45dd66e4c64a96
2016-07-18 16:14:12 -07:00