OSDN Git Service

android-x86/build.git
10 years agoRemove external/wpa_supplicant_8 and external/android-clat
Ying Wang [Wed, 26 Feb 2014 01:15:47 +0000 (17:15 -0800)]
Remove external/wpa_supplicant_8 and external/android-clat

from 64_bit_blacklist.mk.
They now build fine for 64-bit.

Change-Id: Ib73c8465b72cc7b40dae21441c3ea0bd25b7e6ba

10 years agoMerge "Take libcore off the LP64 blacklist."
Elliott Hughes [Wed, 26 Feb 2014 00:18:04 +0000 (00:18 +0000)]
Merge "Take libcore off the LP64 blacklist."

10 years agoMerge "Generate .pb.cc/.pb.h to arch-neutral generated_sources_dir"
Ying Wang [Wed, 26 Feb 2014 00:13:01 +0000 (00:13 +0000)]
Merge "Generate .pb.cc/.pb.h to arch-neutral generated_sources_dir"

10 years agoGenerate .pb.cc/.pb.h to arch-neutral generated_sources_dir
Ying Wang [Tue, 25 Feb 2014 19:18:40 +0000 (11:18 -0800)]
Generate .pb.cc/.pb.h to arch-neutral generated_sources_dir

So a library can export the proto's include path that can be used with
both archs in multilib build.

Change-Id: Ia0f92f0b40e39dc3fa426c69c52139a0a8f04077

10 years agoTake libcore off the LP64 blacklist.
Elliott Hughes [Tue, 25 Feb 2014 23:54:26 +0000 (15:54 -0800)]
Take libcore off the LP64 blacklist.

Change-Id: I34bc49370ecdd37f83927c3829c775e404bcbd73

10 years agoMerge "Move qemud and /dev/qemu policy bits to emulator-specific sepolicy."
Nick Kralevich [Tue, 25 Feb 2014 21:54:39 +0000 (21:54 +0000)]
Merge "Move qemud and /dev/qemu policy bits to emulator-specific sepolicy."

10 years agoMove qemud and /dev/qemu policy bits to emulator-specific sepolicy.
Stephen Smalley [Tue, 25 Feb 2014 18:37:06 +0000 (13:37 -0500)]
Move qemud and /dev/qemu policy bits to emulator-specific sepolicy.

Change-Id: I620d4aef84a5d4565abb1695db54ce1653612bce
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
10 years agoMerge "generic_x86: toggle 64bit binder ABI"
Ying Wang [Mon, 24 Feb 2014 18:05:33 +0000 (18:05 +0000)]
Merge "generic_x86: toggle 64bit binder ABI"

10 years agoMerge "Make -rpath-link work with multilib."
Ying Wang [Sat, 22 Feb 2014 00:38:43 +0000 (00:38 +0000)]
Merge "Make -rpath-link work with multilib."

10 years agoMake -rpath-link work with multilib.
Ying Wang [Sat, 22 Feb 2014 00:17:05 +0000 (16:17 -0800)]
Make -rpath-link work with multilib.

Change-Id: If69ea6ed6cdbb657ed4005f8217d653e29626783

10 years agoMerge "Switch to LLVM 3.4 prebuilts in AOSP."
Tim Murray [Fri, 21 Feb 2014 21:52:15 +0000 (21:52 +0000)]
Merge "Switch to LLVM 3.4 prebuilts in AOSP."

10 years agoMerge "arm64: don't build emulator"
Colin Cross [Thu, 20 Feb 2014 22:49:32 +0000 (22:49 +0000)]
Merge "arm64: don't build emulator"

10 years agoarm64: don't build emulator
Colin Cross [Thu, 20 Feb 2014 22:39:09 +0000 (14:39 -0800)]
arm64: don't build emulator

There is no emulator kernel yet, so don't try to build the emulator.

Change-Id: I714f5717f439b4e48a973f4355f2c6684af79764

10 years agoMerge "Include $(BUILD_COPY_HEADERS) in upper-level makefiles"
Ying Wang [Thu, 20 Feb 2014 22:24:09 +0000 (22:24 +0000)]
Merge "Include $(BUILD_COPY_HEADERS) in upper-level makefiles"

10 years agoInclude $(BUILD_COPY_HEADERS) in upper-level makefiles
Ying Wang [Thu, 20 Feb 2014 21:54:43 +0000 (13:54 -0800)]
Include $(BUILD_COPY_HEADERS) in upper-level makefiles

This makes sure copy_headers.mk only be included onces, no matter
it's for the 1st arch or the 2nd arch.

Change-Id: I80a558fbdb52861f176bd27a21c302069a5cc3ce

10 years agoMerge "Strip all symbols on x86"
Ying Wang [Thu, 20 Feb 2014 18:31:07 +0000 (18:31 +0000)]
Merge "Strip all symbols on x86"

10 years agoMerge "Remove dead code."
Ying Wang [Thu, 20 Feb 2014 18:30:51 +0000 (18:30 +0000)]
Merge "Remove dead code."

10 years agoMerge "Add missing $(combo_2nd_arch_prefix)s to mips."
Ying Wang [Thu, 20 Feb 2014 04:31:29 +0000 (04:31 +0000)]
Merge "Add missing $(combo_2nd_arch_prefix)s to mips."

10 years agoAdd missing $(combo_2nd_arch_prefix)s to mips.
Elliott Hughes [Thu, 20 Feb 2014 02:47:50 +0000 (18:47 -0800)]
Add missing $(combo_2nd_arch_prefix)s to mips.

Change-Id: I91a5f2d92cc964cbaeb1c07f27eb56ea1a0d53cc

10 years agoRemove dead code.
Ying Wang [Thu, 20 Feb 2014 02:25:55 +0000 (18:25 -0800)]
Remove dead code.

It seems the code was meant to add the toolchain to ANDROID_BUILD_PATHS
and then export to PATH by lunch.
But now we export the toolchain to PATH explicitly in envsetup.sh and
the code is unnecessary.
This reduces the places to change when we upgrade the gcc version.
It also fixed the bug that the mips toolchain was always exported
regardless of the target arch.

Change-Id: Iee3b895b4c4e0df8971c27c01b9ecbd591848b12

10 years agoStrip all symbols on x86
C. Sean Young [Wed, 19 Feb 2014 20:53:43 +0000 (12:53 -0800)]
Strip all symbols on x86

Strip all of the non-dynamic symbols on x86 targets,
instead of just the debug symbols.

Change-Id: Id799a6a8c8b0e8bf70977328e42e5efa23762f25

10 years agoMerge "Fix x86 config file to support 2nd ARCH build"
Ying Wang [Wed, 19 Feb 2014 18:19:21 +0000 (18:19 +0000)]
Merge "Fix x86 config file to support 2nd ARCH build"

10 years agoMerge "Switch x86_64 to gcc-4.8"
Ying Wang [Wed, 19 Feb 2014 18:17:51 +0000 (18:17 +0000)]
Merge "Switch x86_64 to gcc-4.8"

10 years agoSwitch to LLVM 3.4 prebuilts in AOSP.
Stephen Hines [Wed, 19 Feb 2014 17:03:00 +0000 (09:03 -0800)]
Switch to LLVM 3.4 prebuilts in AOSP.

Change-Id: I064e953fb1bf69e7e321616647aab88dcc39af76

10 years agoMerge "x86: set -msse2 for all builds"
Colin Cross [Wed, 19 Feb 2014 01:00:33 +0000 (01:00 +0000)]
Merge "x86: set -msse2 for all builds"

10 years agox86: set -msse2 for all builds
Colin Cross [Tue, 18 Feb 2014 23:49:48 +0000 (15:49 -0800)]
x86: set -msse2 for all builds

All supported x86 processors have SSE2.

Change-Id: Ib4a0511c456fe3185b0b902390860ad557aeedcf

10 years agoMerge "Add bcc to the list of PRODUCT_PACKAGES to install."
Stephen Hines [Tue, 18 Feb 2014 23:05:42 +0000 (23:05 +0000)]
Merge "Add bcc to the list of PRODUCT_PACKAGES to install."

10 years agoAdd bcc to the list of PRODUCT_PACKAGES to install.
Stephen Hines [Thu, 23 Jan 2014 03:50:43 +0000 (19:50 -0800)]
Add bcc to the list of PRODUCT_PACKAGES to install.

Bug: 7342767

As part of the process of sandboxing the online RenderScript compiler, we
need to install bcc.

Change-Id: Ia650bdcb760246f3f1e15ebb867f07d9802cdfbe

10 years agoSwitch x86_64 to gcc-4.8
Pavel Chupin [Tue, 18 Feb 2014 09:59:07 +0000 (13:59 +0400)]
Switch x86_64 to gcc-4.8

x86 is already on gcc-4.8

Change-Id: I39b4298b705a6ad04cdaa434261c6b0d90d552ff
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agoMerge "Fix up android.core CTS tests."
Narayan Kamath [Mon, 17 Feb 2014 12:25:25 +0000 (12:25 +0000)]
Merge "Fix up android.core CTS tests."

10 years agoMerge "changing the rules following java package renaming for external/apache-harmony."
Narayan Kamath [Mon, 17 Feb 2014 12:25:23 +0000 (12:25 +0000)]
Merge "changing the rules following java package renaming for external/apache-harmony."

10 years agoMerge "Adding apache-harmony to cts."
Narayan Kamath [Mon, 17 Feb 2014 12:25:21 +0000 (12:25 +0000)]
Merge "Adding apache-harmony to cts."

10 years agoMerge "add jsr166 tests to cts. Bug: 10390711"
Narayan Kamath [Mon, 17 Feb 2014 12:25:18 +0000 (12:25 +0000)]
Merge "add jsr166 tests to cts. Bug: 10390711"

10 years agoFix up android.core CTS tests.
Narayan Kamath [Tue, 31 Dec 2013 15:15:41 +0000 (15:15 +0000)]
Fix up android.core CTS tests.

Fix several wrongly configured tests that were either
looking for tests in the wrong jar (apache-harmony-tests
instead of core-tests) or using the wrong prefix.

Also, this change creates subsets of the harmony tests based
on subpackage names (java.net, java.io, java.nio etc.) instead
of the earlier harmony groupings.

Change-Id: Iea0e20d23512611d1aac92b2f8219031b6396c77

10 years agochanging the rules following java package renaming for
Tsu Chiang Chuang [Mon, 29 Oct 2012 21:56:49 +0000 (14:56 -0700)]
changing the rules following java package renaming for
external/apache-harmony.

(cherry picked from commit 27b4b5ffe12b179fc0d24747f9ead2d5f52c871a)

Change-Id: Ia5a7b2d401f23dfdc556ef1982efd441ed1d1ae2

10 years agoAdding apache-harmony to cts.
Tsu Chiang Chuang [Wed, 24 Oct 2012 23:47:49 +0000 (16:47 -0700)]
Adding apache-harmony to cts.

(cherry-picked from commit 5fef52e9c986184796ff1e5fe54390614ba318a6)

Change-Id: I9a6595f5e8bc30654a062e0917d3ecd3ba28ebc7

10 years agoadd jsr166 tests to cts.
Tsu Chiang Chuang [Wed, 21 Aug 2013 18:46:03 +0000 (11:46 -0700)]
add jsr166 tests to cts.
Bug: 10390711

Change-Id: I512770e98f61995fc33043d35562dc3b213a4930

10 years agoFix x86 config file to support 2nd ARCH build
Qiming Shi [Mon, 17 Feb 2014 07:13:48 +0000 (15:13 +0800)]
Fix x86 config file to support 2nd ARCH build

Change-Id: I5f6091c555b9e742303f294b7c07a981ae5c6026
Signed-off-by: Qiming Shi <qiming.shi@intel.com>
10 years agoMerge "gettop: fix symlink detection"
Ying Wang [Fri, 14 Feb 2014 21:20:17 +0000 (21:20 +0000)]
Merge "gettop: fix symlink detection"

10 years agoMerge "Fix incorrect x86 build rules."
Stephen Hines [Fri, 14 Feb 2014 20:32:29 +0000 (20:32 +0000)]
Merge "Fix incorrect x86 build rules."

10 years agoMerge "fix build"
Colin Cross [Fri, 14 Feb 2014 00:44:29 +0000 (00:44 +0000)]
Merge "fix build"

10 years agofix build
Colin Cross [Fri, 14 Feb 2014 00:41:50 +0000 (16:41 -0800)]
fix build

Include prebuilt_internal.mk for host builds.

Change-Id: I750d6f71b3a2c67b11536babb8b39060005f4ff4

10 years agoMerge "add linker64 and debuggerd64 to all products"
Colin Cross [Fri, 14 Feb 2014 00:24:47 +0000 (00:24 +0000)]
Merge "add linker64 and debuggerd64 to all products"

10 years agoMerge changes I2514f66f,I71fed98d
Colin Cross [Fri, 14 Feb 2014 00:24:16 +0000 (00:24 +0000)]
Merge changes I2514f66f,I71fed98d

* changes:
  support LOCAL_MODULE_TARGET_ARCH for prebuilts
  Add generated sources dir to the default include path

10 years agoadd linker64 and debuggerd64 to all products
Colin Cross [Thu, 13 Feb 2014 06:04:28 +0000 (22:04 -0800)]
add linker64 and debuggerd64 to all products

Add linker64 and debuggerd64 to embedded.mk.  They will be silently
ignored on 32-bit builds, and filtered out on 32-bit sdk builds.

Change-Id: I8c30ea65e2b7e224ee73cc9fbbcb7555d3be04b5

10 years agoMerge "Don't check the existence for the 64-bit modules for 32-bit SDK build."
Ying Wang [Fri, 14 Feb 2014 00:03:12 +0000 (00:03 +0000)]
Merge "Don't check the existence for the 64-bit modules for 32-bit SDK build."

10 years agoDon't check the existence for the 64-bit modules for 32-bit SDK build.
Ying Wang [Thu, 13 Feb 2014 23:56:34 +0000 (15:56 -0800)]
Don't check the existence for the 64-bit modules for 32-bit SDK build.

Change-Id: I0d5d6ecc07332bef6854466fd98380eb12fc08fc

10 years agosupport LOCAL_MODULE_TARGET_ARCH for prebuilts
Colin Cross [Thu, 13 Feb 2014 23:04:18 +0000 (15:04 -0800)]
support LOCAL_MODULE_TARGET_ARCH for prebuilts

Prebuilts often support only a single architecture, allow them to
use LOCAL_MODULE_TARGET_ARCH to specify it.

Change-Id: I2514f66f682ef267bbf1a1ab78510faff0a18b64

10 years agoAdd generated sources dir to the default include path
Colin Cross [Thu, 13 Feb 2014 21:41:52 +0000 (13:41 -0800)]
Add generated sources dir to the default include path

Change-Id: I71fed98dfbc0bf5efad069a251eee2e5ab2e5fe6

10 years agoMerge "don't use LOCAL_*_arch for host builds"
Colin Cross [Thu, 13 Feb 2014 23:00:40 +0000 (23:00 +0000)]
Merge "don't use LOCAL_*_arch for host builds"

10 years agodon't use LOCAL_*_arch for host builds
Colin Cross [Thu, 13 Feb 2014 05:15:12 +0000 (21:15 -0800)]
don't use LOCAL_*_arch for host builds

The LOCAL_*_$(TARGET_ARCH) variables don't make sense for host
modules, only append use them for target modules.

Also complete the list of LOCAL_*_arch and LOCAL_*_32/64 to be
consistent.

Change-Id: I00c83e5c4e08ed9a844f9f99a79ce4bcc3f0bf11

10 years agoMerge "make 64-bit builds into multiarch builds"
Colin Cross [Thu, 13 Feb 2014 21:15:00 +0000 (21:15 +0000)]
Merge "make 64-bit builds into multiarch builds"

10 years agoFix incorrect x86 build rules.
Stephen Hines [Thu, 13 Feb 2014 11:21:12 +0000 (03:21 -0800)]
Fix incorrect x86 build rules.

combo/TARGET_x86*.mk mistakenly added TARGET_GLOBAL_CFLAGS to their
linker command lines. This results in clang builds not working properly,
since they strip some unknown flags from TARGET_GLOBAL_CFLAGS.

Change-Id: I60a1ff5df70305323134435e4ae107ea7acfe8ea

10 years agomake 64-bit builds into multiarch builds
Colin Cross [Tue, 28 Jan 2014 22:35:16 +0000 (14:35 -0800)]
make 64-bit builds into multiarch builds

Also enable the 64-bit binder interface and make them only use ART.

Change-Id: I05de41ce348c14722c84a658f745659bde5ba423

10 years agoMerge "Remove dead code."
Ying Wang [Thu, 13 Feb 2014 01:39:41 +0000 (01:39 +0000)]
Merge "Remove dead code."

10 years agoRemove dead code.
Ying Wang [Thu, 13 Feb 2014 01:38:46 +0000 (17:38 -0800)]
Remove dead code.

Change-Id: Ia36a04037e15cbf296f375f3ece9a7e977fdca1e

10 years agoMerge topic 'arm64'
Colin Cross [Wed, 12 Feb 2014 20:57:24 +0000 (20:57 +0000)]
Merge topic 'arm64'

* changes:
  HACK: add 64-bit directory blacklist
  add support for module supported or unsupported target architectures

10 years agoMerge "Refactor a little bit and do the validation on also default.prop."
Ying Wang [Wed, 12 Feb 2014 20:56:31 +0000 (20:56 +0000)]
Merge "Refactor a little bit and do the validation on also default.prop."

10 years agoHACK: add 64-bit directory blacklist
Colin Cross [Fri, 24 Jan 2014 21:38:08 +0000 (13:38 -0800)]
HACK: add 64-bit directory blacklist

Change-Id: I431e8b220db81d51930dc0b3d95995df120c179a

10 years agoadd support for module supported or unsupported target architectures
Colin Cross [Thu, 6 Feb 2014 22:45:37 +0000 (14:45 -0800)]
add support for module supported or unsupported target architectures

Add four new variables for module makefiles:

LOCAL_MODULE_TARGET_ARCH specifies that a module is only supported for
one or more architectures.  Any architecture not in the list will be
not attempt to build the module.  The expected use case is prebuilts
that are only suitable for a single architecture, or modules like llvm
that need per-architecture support.

LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH specifies that a module cannot be
built for one or more architectures.

LOCAL_MODULE_TARGET_ARCH_WARN and LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH_WARN
are the same, but warn that the arch is not supported, which is useful
for modules that are critical but not yet working.

The logic for whether or not to build an architecture is fairly
complicated, so this patch consolidates it into module_arch_supported.mk

Change-Id: I120caf4a375f484e1fd6017b60c2f53882ae01e6

10 years agoRefactor a little bit and do the validation on also default.prop.
Ying Wang [Wed, 12 Feb 2014 04:44:09 +0000 (20:44 -0800)]
Refactor a little bit and do the validation on also default.prop.

Change-Id: I76c2344d9033eadede7048689a879c9a69a05b7f

10 years agoMerge "A build property's value is returned empty in runtime when its length exceeds...
Ying Wang [Wed, 12 Feb 2014 03:56:42 +0000 (03:56 +0000)]
Merge "A build property's value is returned empty in runtime when its length exceeds 92 symbols (91 valid symbols + \0). It is better to catch that issue on earlier stage, i.e. fail the build with an appropriate message."

10 years agoMerge "Clean up dangling module names"
Ying Wang [Wed, 12 Feb 2014 01:31:21 +0000 (01:31 +0000)]
Merge "Clean up dangling module names"

10 years agoClean up dangling module names
Ying Wang [Wed, 12 Feb 2014 01:28:30 +0000 (17:28 -0800)]
Clean up dangling module names

Those modules have disappeared from the source tree.

https://code.google.com/p/android/issues/detail?id=61210

Change-Id: Iab369d2f591f46eb86b9fccf2087515edf974662

10 years agoMerge "Refine module name resolving in multilib build"
Ying Wang [Wed, 12 Feb 2014 01:26:10 +0000 (01:26 +0000)]
Merge "Refine module name resolving in multilib build"

10 years agoA build property's value is returned empty in runtime when its length
Yu Liu [Tue, 11 Feb 2014 03:20:36 +0000 (19:20 -0800)]
A build property's value is returned empty in runtime when its length
exceeds 92 symbols (91 valid symbols + \0). It is better to catch that
issue on earlier stage, i.e. fail the build with an appropriate message.

For developer's build, show warning message instead of failing the build
(in the latter case, as developers do not usually care about build properties
too much).

Change-Id: I03ced7b486d43a71b1921e0a9c48b43aa30727c7

10 years agoMerge "Add all-S-files-under."
Elliott Hughes [Tue, 11 Feb 2014 22:01:32 +0000 (22:01 +0000)]
Merge "Add all-S-files-under."

10 years agoAdd all-S-files-under.
Elliott Hughes [Tue, 11 Feb 2014 21:48:35 +0000 (13:48 -0800)]
Add all-S-files-under.

Change-Id: I25416e2acc850c61226bc7a8e0536384f6eb2dce

10 years agoMerge "fix 2nd target clang prebuilt paths"
Colin Cross [Tue, 11 Feb 2014 20:58:08 +0000 (20:58 +0000)]
Merge "fix 2nd target clang prebuilt paths"

10 years agofix 2nd target clang prebuilt paths
Colin Cross [Tue, 11 Feb 2014 20:47:52 +0000 (12:47 -0800)]
fix 2nd target clang prebuilt paths

Change-Id: I4c196221bd377e30bbff1aafa265952e29c85cb5

10 years agoMerge "Runtime resource overlay, iteration 2"
Ying Wang [Tue, 11 Feb 2014 19:27:59 +0000 (19:27 +0000)]
Merge "Runtime resource overlay, iteration 2"

10 years agoRefine module name resolving in multilib build
Ying Wang [Tue, 11 Feb 2014 06:26:23 +0000 (22:26 -0800)]
Refine module name resolving in multilib build

-- Added TARGET_PREFER_32_BIT, which sets LOCAL_32_BIT_ONLY for an
   executable, if LOCAL_NO_2ND_ARCH is not true.

Name resolving in 64-bit multilib build:
-- Name resolving in PRODUCT_PACKAGES:
   foo:32 resolves to foo_32;
   foo:64 resolves to foo;
   foo resolves to both foo and foo_32 (if foo_32 is defined).

-- Name resolving for LOCAL_REQUIRED_MODULES:
   If a module is built for 2nd arch, its required module resolves to
   32-bit variant, if it exits;
   Otherwise for executable and shared library, a required module
   resolves to the default 64-bit variant; for other module classes,
   required module foo resolves to both foo and foo_32 (if foo_32 is
   defined)

Bug: 12898862
Change-Id: I5fda1a77f58814097b10b5ad2743ee25adfaecc4

10 years agogeneric_x86: toggle 64bit binder ABI
Octavian Purdila [Mon, 10 Feb 2014 20:11:02 +0000 (22:11 +0200)]
generic_x86: toggle 64bit binder ABI

Change-Id: I60b8d98ff1f1ba5f242d256279e27d780b5dabf9
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
10 years agoMerge "Add missing font files to SDK system images."
David 'Digit' Turner [Mon, 10 Feb 2014 11:31:17 +0000 (11:31 +0000)]
Merge "Add missing font files to SDK system images."

10 years agoMerge "Refreshed gcc predefines __ANDROID__"
Ben Cheng [Fri, 7 Feb 2014 21:36:45 +0000 (21:36 +0000)]
Merge "Refreshed gcc predefines __ANDROID__"

10 years agoRefreshed gcc predefines __ANDROID__
Ben Cheng [Fri, 7 Feb 2014 21:16:18 +0000 (13:16 -0800)]
Refreshed gcc predefines __ANDROID__

Change-Id: Id76f5a7490fba8190329e5ce3c4b138976a034ce

10 years agoMerge "Select the arch_variant_cflags for the 2nd arch."
Ying Wang [Fri, 7 Feb 2014 20:32:01 +0000 (20:32 +0000)]
Merge "Select the arch_variant_cflags for the 2nd arch."

10 years agoSelect the arch_variant_cflags for the 2nd arch.
Ying Wang [Fri, 7 Feb 2014 18:40:37 +0000 (10:40 -0800)]
Select the arch_variant_cflags for the 2nd arch.

Change-Id: Id2f9d7073a4aae3ba0fe5e5464045761f4d42b4e

10 years agoMerge "Refactor llvm_config.mk and support the 2nd arch"
Ying Wang [Fri, 7 Feb 2014 18:03:33 +0000 (18:03 +0000)]
Merge "Refactor llvm_config.mk and support the 2nd arch"

10 years agoRefactor llvm_config.mk and support the 2nd arch
Ying Wang [Fri, 7 Feb 2014 02:08:44 +0000 (18:08 -0800)]
Refactor llvm_config.mk and support the 2nd arch

1. Following the setup of gcc in build/core/combo/,
we added the [HOST|TARGET]_<arch>.mk clang config files,
and load only the configs needed by the current product.
2. Added support for the 2nd arch.

Change-Id: I2a383418a9688a050b39492f8e489d40eeeb5f2d

10 years agoMerge "don't rename 32-bit packages to *_32"
Colin Cross [Fri, 7 Feb 2014 05:00:21 +0000 (05:00 +0000)]
Merge "don't rename 32-bit packages to *_32"

10 years agodon't rename 32-bit packages to *_32
Colin Cross [Tue, 4 Feb 2014 19:16:16 +0000 (11:16 -0800)]
don't rename 32-bit packages to *_32

Renaming 32-bit packages to *_32 breaks PRODUCT_PACKAGES dependencies.

Change-Id: I5457c07b64885d77a6bd8fbcbba97d28393c581d

10 years agoMerge "Turn 64-bit-related warnings into errors on 64-bit builds."
Elliott Hughes [Thu, 6 Feb 2014 20:54:04 +0000 (20:54 +0000)]
Merge "Turn 64-bit-related warnings into errors on 64-bit builds."

10 years agoMerge "[MIPS64] Add mips64 target"
Elliott Hughes [Thu, 6 Feb 2014 20:14:55 +0000 (20:14 +0000)]
Merge "[MIPS64] Add mips64 target"

10 years ago[MIPS64] Add mips64 target
Chris Dearman [Mon, 3 Feb 2014 23:01:24 +0000 (15:01 -0800)]
[MIPS64] Add mips64 target

Change-Id: Ice1621101c0d5a3314db288542ca8020e3f406bf
Signed-off-by: Duane Sand <duane.sand@imgtec.com>
10 years agoMerge "Add library test makefile solutions."
Christopher Ferris [Thu, 6 Feb 2014 02:16:35 +0000 (02:16 +0000)]
Merge "Add library test makefile solutions."

10 years agoTurn 64-bit-related warnings into errors on 64-bit builds.
Elliott Hughes [Thu, 6 Feb 2014 00:23:47 +0000 (16:23 -0800)]
Turn 64-bit-related warnings into errors on 64-bit builds.

I don't think we can realistically turn this on for 32-bit builds any
time soon.

Also, fix the arm64 stack-protector hack.

Change-Id: Ie1e7c875bbc06fb21bb372b8ca99879a23ef53d4

10 years agoAdd library test makefile solutions.
Christopher Ferris [Wed, 5 Feb 2014 06:09:16 +0000 (22:09 -0800)]
Add library test makefile solutions.

Change-Id: Ibc8df9b0e2342683158936bf011425780df8f02a

10 years agoMerge topic 'arm64'
Colin Cross [Wed, 5 Feb 2014 23:57:08 +0000 (23:57 +0000)]
Merge topic 'arm64'

* changes:
  add support for more LOCAL_*_arch variables
  don't rename 32-bit executables to *_32
  remove 2nd arch from ARCH_ARM_* defines

10 years agoMerge "Fix installing 2nd arch shared libraries"
Colin Cross [Wed, 5 Feb 2014 23:55:54 +0000 (23:55 +0000)]
Merge "Fix installing 2nd arch shared libraries"

10 years agoadd support for more LOCAL_*_arch variables
Colin Cross [Tue, 4 Feb 2014 22:53:25 +0000 (14:53 -0800)]
add support for more LOCAL_*_arch variables

Add support for:
LOCAL_SHARED_LIBRARIES_arch
LOCAL_STATIC_LIBRARIES_arch
LOCAL_WHOLE_STATIC_LIBRARIES_arch
LOCAL_GENERATED_SOURCES_arch
LOCAL_REQUIRED_MODULES_arch

Change-Id: Iad91702e140d8dba7dcaee13f236c77b1e626a34

10 years agoFix installing 2nd arch shared libraries
Colin Cross [Wed, 5 Feb 2014 03:42:32 +0000 (19:42 -0800)]
Fix installing 2nd arch shared libraries

2ND_TARGET_DEPENDENCIES_ON_SHARED_LIBRARIES was not set,
which was causing the later += to act like = instead of
:=, and the dependencies would disappear as soon as
LOCAL_MODULE was cleared.

Change-Id: Idea291524fc06377deafec62f37d20eaa7f93bca

10 years agodon't rename 32-bit executables to *_32
Colin Cross [Tue, 4 Feb 2014 19:16:16 +0000 (11:16 -0800)]
don't rename 32-bit executables to *_32

Renaming 32-bit executables to *_32 breaks PRODUCT_PACKAGES
dependencies.

Change-Id: I53d89991633ef4af03c4e618c463769937a70e38

10 years agoremove 2nd arch from ARCH_ARM_* defines
Colin Cross [Tue, 4 Feb 2014 19:15:26 +0000 (11:15 -0800)]
remove 2nd arch from ARCH_ARM_* defines

Users of ARCH_ARM_* defines don't care about first vs. second arch,
set ARCH_ARM_* regardless of which arch is arm.

Change-Id: I2ae83ec5c3f839ff91a0e352c95d76ec2cbd5dc5

10 years agoAdd missing font files to SDK system images.
David 'Digit' Turner [Tue, 4 Feb 2014 13:49:23 +0000 (14:49 +0100)]
Add missing font files to SDK system images.

This adds a few missing font families to SDK system images.
This allows, in particular, support for the Korean language.

Note that this depends on other patches under device/generic/
to fix some board and product configuration files, otherwise
this change will have no effect.

See http://b.android.com/40340

Change-Id: Idba6471de32232833f511a4da97fd652906fec51

10 years agoMerge "Add new rs directory to list of Java subdirs of fw/base."
Tim Murray [Mon, 3 Feb 2014 22:35:54 +0000 (22:35 +0000)]
Merge "Add new rs directory to list of Java subdirs of fw/base."

10 years agoMerge "Dedup the targets and dependencies of required modules."
Ying Wang [Sat, 1 Feb 2014 03:25:47 +0000 (03:25 +0000)]
Merge "Dedup the targets and dependencies of required modules."

10 years agoDedup the targets and dependencies of required modules.
Ying Wang [Sat, 1 Feb 2014 03:22:35 +0000 (19:22 -0800)]
Dedup the targets and dependencies of required modules.

For whatever reason, two modules may have the same file as their
installed module. In that case circular dependency is created if the two
modules have requited-by relation.

Change-Id: I15ed271ca3f3c343e4662182ded5ccc63d6c42cc

10 years agoAdd new rs directory to list of Java subdirs of fw/base.
Tim Murray [Tue, 17 Dec 2013 21:27:28 +0000 (13:27 -0800)]
Add new rs directory to list of Java subdirs of fw/base.

Change-Id: I3213a314e7700162e781526c0450678495442759

10 years agoRuntime resource overlay, iteration 2
Mårten Kongstad [Fri, 31 Jan 2014 13:43:49 +0000 (14:43 +0100)]
Runtime resource overlay, iteration 2

Support any number of overlay packages. Support any target package.

UPDATED PACKAGE MATCHING
------------------------
In Runtime resource overlay, iteration 1, only a single overlay package
was considered. Package matching was based on file paths:
/vendor/overlay/system/framework-res.apk corresponded to
/system/framework-res.apk. Introduce a more flexible matching scheme
where any package is an overlay package if its manifest includes

    <overlay targetPackage="com.target.package"/>

For security reasons, an overlay package must fulfill certain criteria
to take effect: see below.

THE IDMAP TOOL AND IDMAP FILES
------------------------------
Idmap files are created by the 'idmap' binary; idmap files must be
present when loading packages. For the Android system, Zygote calls
'idmap' as part of the resource pre-loading. For application packages,
'idmap' is invoked via 'installd' during package installation (similar
to 'dexopt').

UPDATED FLOW
------------
The following is an outline of the start-up sequences for the Android
system and Android apps. Steps marked with '+' are introduced by this
commit.

Zygote initialization
   Initial AssetManager object created
+    idmap --scan creates idmaps for overlays targeting 'android', \
           stores list of overlays in /data/resource-cache/overlays.list
   AssetManager caches framework-res.apk
+  AssetManager caches overlay packages listed in overlays.list

Android boot
   New AssetManager's ResTable acquired
     AssetManager re-uses cached framework-res.apk
+    AssetManager re-uses cached 'android' overlays (if any)

App boot
   ActivityThread prepares AssetManager to load app.apk
+  ActivityThread prepares AssetManager to load app overlays (if any)
   New AssetManager's ResTable acquired as per Android boot

SECURITY
--------
Overlay packages are required to be pre-loaded (in /vendor/overlay).
These packages are trusted by definition. A future iteration of runtime
resource overlay may add support for downloaded overlays, which would
likely require target and overlay signatures match for the overlay to
be trusted.

LOOKUP PRIORITY
---------------
During resource lookup, packages are sequentially queried to provide a
best match, given the constraints of the current configuration. If any
package provide a better match than what has been found so far, it
replaces the previous match. The target package is always queried last.

When loading a package with more than one overlay, the order in which
the overlays are added become significant if several packages overlay
the same resource.

Had downloaded overlays been supported, the install time could have been
used to determine the load order. Regardless, for pre-installed
overlays, the install time is randomly determined by the order in which
the Package Manager locates the packages during initial boot. To support
a well-defined order, pre-installed overlay packages are expected to
define an additional 'priority' attribute in their <overlay> tags:

    <overlay targetPackage="com.target.package" priority="1234"/>

Pre-installed overlays are loaded in order of their priority attributes,
sorted in ascending order.

Assigning the same priority to several overlays targeting the same base
package leads to undefined behaviour. It is the responsibility of the
vendor to avoid this.

The following example shows the ResTable and PackageGroups after loading
an application and two overlays. The resource lookup framework will
query the packages in the order C, B, A.

        +------+------+-     -+------+------+
        | 0x01 |      |  ...  |      | 0x7f |
        +------+------+-     -+------+------+
            |                           |
        "android"                Target package A
                                        |
                       Pre-installed overlay B (priority 1)
                                        |
                       Pre-installed overlay C (priority 2)

Change-Id: If49c963149369b1957f7d2303b3dd27f669ed24e