OSDN Git Service

android-x86/build.git
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 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 agoMerge "Add 64-bit gdbclients."
Ben Cheng [Thu, 30 Jan 2014 22:01:32 +0000 (22:01 +0000)]
Merge "Add 64-bit gdbclients."

10 years agoMerge "CleanSpec for 49f1fab8a5b82f6224ff1be601037270ecdb734b: Rename persist.sys...
Brian Carlstrom [Thu, 30 Jan 2014 22:00:33 +0000 (22:00 +0000)]
Merge "CleanSpec for 49f1fab8a5b82f6224ff1be601037270ecdb734b: Rename persist.sys.dalvik.vm.lib to allow new default"

10 years agoCleanSpec for 49f1fab8a5b82f6224ff1be601037270ecdb734b: Rename persist.sys.dalvik...
Brian Carlstrom [Thu, 30 Jan 2014 21:56:51 +0000 (13:56 -0800)]
CleanSpec for 49f1fab8a5b82f6224ff1be601037270ecdb734b: Rename persist.sys.dalvik.vm.lib to allow new default

Change-Id: I3ed55460864c17a199053a058b2482c6c4579622

10 years agoAdd 64-bit gdbclients.
Serban Constantinescu [Tue, 14 Jan 2014 10:33:53 +0000 (10:33 +0000)]
Add 64-bit gdbclients.

This patch adds gdbclient combo for arm64, mips64, and x86_64.

Change-Id: I659b662276c93e5cce92aadc203a4bc111f5c2af
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
10 years agoMerge "build: Rename persist.sys.dalvik.vm.lib to allow new default"
Brian Carlstrom [Thu, 30 Jan 2014 21:50:48 +0000 (21:50 +0000)]
Merge "build: Rename persist.sys.dalvik.vm.lib to allow new default"

10 years agobuild: Rename persist.sys.dalvik.vm.lib to allow new default
Brian Carlstrom [Thu, 30 Jan 2014 21:14:00 +0000 (13:14 -0800)]
build: Rename persist.sys.dalvik.vm.lib to allow new default

Bug: 12798969
Change-Id: Ie73a3f2b6655d0ae3e3a905a1c64747343c525a0

10 years agoMerge "CleanSpec for 08d410f53249c18d752f56a881ed2335403080d4: Make libart the defaul...
Brian Carlstrom [Thu, 30 Jan 2014 21:10:25 +0000 (21:10 +0000)]
Merge "CleanSpec for 08d410f53249c18d752f56a881ed2335403080d4: Make libart the default runtime"

10 years agoMerge "Disable WITH_HOST_DALVIK on 64bit host builds."
Ian Rogers [Thu, 30 Jan 2014 19:54:04 +0000 (19:54 +0000)]
Merge "Disable WITH_HOST_DALVIK on 64bit host builds."

10 years agoCleanSpec for 08d410f53249c18d752f56a881ed2335403080d4: Make libart the default runtime
Brian Carlstrom [Thu, 30 Jan 2014 19:11:38 +0000 (11:11 -0800)]
CleanSpec for 08d410f53249c18d752f56a881ed2335403080d4: Make libart the default runtime

Change-Id: Id632beeb2f96dd4502ac4a6c03bab5e4252137ff

10 years agoDisable WITH_HOST_DALVIK on 64bit host builds.
Ian Rogers [Thu, 30 Jan 2014 16:47:53 +0000 (08:47 -0800)]
Disable WITH_HOST_DALVIK on 64bit host builds.

Change-Id: I8cea32fe5541c3223e7f317245aab3061e8ad444

10 years agoMerge "Define __STDC_FORMAT_MACROS on Windows host builds."
Narayan Kamath [Thu, 30 Jan 2014 09:39:33 +0000 (09:39 +0000)]
Merge "Define __STDC_FORMAT_MACROS on Windows host builds."

10 years agoDefine __STDC_FORMAT_MACROS on Windows host builds.
Ian Rogers [Thu, 30 Jan 2014 05:37:37 +0000 (21:37 -0800)]
Define __STDC_FORMAT_MACROS on Windows host builds.

Change-Id: I89b54a63c3f111b8242fe9e813d94a839c484195

10 years agoMerge "build: rename LOCAL_32BIT_ONLY to LOCAL_32_BIT_ONLY"
Colin Cross [Thu, 30 Jan 2014 04:06:42 +0000 (04:06 +0000)]
Merge "build: rename LOCAL_32BIT_ONLY to LOCAL_32_BIT_ONLY"

10 years agoMerge "build: support LOCAL_*_32 and LOCAL_*_64"
Colin Cross [Thu, 30 Jan 2014 04:06:05 +0000 (04:06 +0000)]
Merge "build: support LOCAL_*_32 and LOCAL_*_64"

10 years agobuild: rename LOCAL_32BIT_ONLY to LOCAL_32_BIT_ONLY
Colin Cross [Thu, 30 Jan 2014 02:20:01 +0000 (18:20 -0800)]
build: rename LOCAL_32BIT_ONLY to LOCAL_32_BIT_ONLY

Rename for consistency with TARGET_IS_64_BIT.

Change-Id: I824dcaed0c1e88b8246bcffb21ab3f1772175926

10 years agobuild: support LOCAL_*_32 and LOCAL_*_64
Colin Cross [Thu, 30 Jan 2014 01:46:37 +0000 (17:46 -0800)]
build: support LOCAL_*_32 and LOCAL_*_64

Support the following new variables based on whether the current multilib
target is 32 bit or 64 bit:
LOCAL_CFLAGS_32
LOCAL_CFLAGS_64
LOCAL_LDFLAGS_32
LOCAL_LDFLAGS_64
LOCAL_ASFLAGS_32
LOCAL_ASFLAGS_64
LOCAL_C_INCLUDES_32
LOCAL_C_INCLUDES_64

Change-Id: Ia868d56dff114be301bf8297eec768675f186927

10 years agoMerge "Fix the host inttypes.h problem globally."
Ian Rogers [Thu, 30 Jan 2014 00:33:35 +0000 (00:33 +0000)]
Merge "Fix the host inttypes.h problem globally."

10 years agoFix the host inttypes.h problem globally.
Ian Rogers [Wed, 29 Jan 2014 21:09:30 +0000 (13:09 -0800)]
Fix the host inttypes.h problem globally.

Bug: 12708004
Change-Id: I2c75647bac304b82e150c540b9e6c5568997596d

10 years agoMerge "Bump generic_mips BOARD_SYSTEMIMAGE_PARTITION_SIZE for PRODUCT_RUNTIME :=...
Brian Carlstrom [Wed, 29 Jan 2014 20:21:27 +0000 (20:21 +0000)]
Merge "Bump generic_mips BOARD_SYSTEMIMAGE_PARTITION_SIZE for PRODUCT_RUNTIME := libart_runtime_default"

10 years agoBump generic_mips BOARD_SYSTEMIMAGE_PARTITION_SIZE for PRODUCT_RUNTIME := libart_runt...
Brian Carlstrom [Wed, 29 Jan 2014 07:33:52 +0000 (23:33 -0800)]
Bump generic_mips BOARD_SYSTEMIMAGE_PARTITION_SIZE for PRODUCT_RUNTIME := libart_runtime_default

(cherry picked from commit c8501bffcb6fa3f552ae424a5701091b5faa6270)

Change-Id: I12ce7c4e383e74e54d77b54a0406d2499699edbf

10 years agoMerge "gtest needs -lpthread."
Elliott Hughes [Wed, 29 Jan 2014 01:45:17 +0000 (01:45 +0000)]
Merge "gtest needs -lpthread."

10 years agogtest needs -lpthread.
Elliott Hughes [Wed, 29 Jan 2014 01:32:30 +0000 (17:32 -0800)]
gtest needs -lpthread.

Host gtests that don't use pthreads themselves need to be linked
against libpthread because gtest itself uses pthreads to ensure
thread-safety. (It can't know in advance whether the code under
test is going to spin up threads, so it has to be pessimistic.)

Change-Id: I14fb1098c163d7fe6ae9a9a0314acead4ec9383d

10 years agoMerge "Make libart the default runtime"
Brian Carlstrom [Wed, 29 Jan 2014 00:32:23 +0000 (00:32 +0000)]
Merge "Make libart the default runtime"

10 years agoMerge "Fix KERNEL_HEADERS_ARCH for mips and x86."
Elliott Hughes [Tue, 28 Jan 2014 21:23:07 +0000 (21:23 +0000)]
Merge "Fix KERNEL_HEADERS_ARCH for mips and x86."

10 years agoFix KERNEL_HEADERS_ARCH for mips and x86.
Elliott Hughes [Tue, 28 Jan 2014 21:07:55 +0000 (13:07 -0800)]
Fix KERNEL_HEADERS_ARCH for mips and x86.

arm and arm64 have distinct headers, but mips and mip64, and x86 and x86_64
use headers that work for both widths. So where arm/arm64 need to handle the
second architecture case specially, all we need to do for the others is
hard-code the name. (x86_64.mk already hard-codes x86; we need to change
x86.mk for the case where we're building the 32-bit binaries for a mixed
system. mips64.mk doesn't exist yet, but when it does, it'll hard-code
just plain "mips" too.)

Change-Id: Ia6b9f77b4eb2c78729b454045875c409e0ea8197

10 years agoMerge "build: PRODUCT_DEX_PREOPT_IMAGE_IN_DATA"
Brian Carlstrom [Tue, 28 Jan 2014 20:45:32 +0000 (20:45 +0000)]
Merge "build: PRODUCT_DEX_PREOPT_IMAGE_IN_DATA"

10 years agobuild: PRODUCT_DEX_PREOPT_IMAGE_IN_DATA
Brian Carlstrom [Fri, 17 Jan 2014 07:25:27 +0000 (23:25 -0800)]
build: PRODUCT_DEX_PREOPT_IMAGE_IN_DATA

(cherry-picked from commit cd337c71ee65b17529a67af34d4c0b2824a4f175)

Change-Id: I6d8ab3b3cf52f6a6b15f1c8e8d00cdf59042436b

10 years agoMake libart the default runtime
Brian Carlstrom [Fri, 17 Jan 2014 01:55:07 +0000 (17:55 -0800)]
Make libart the default runtime

Change-Id: I4394f2bdef6f1be36f0f17f3b42d3e62bc2245ef

10 years agoMerge "Add support for TARGET_GLOBAL_UNSUPPORTED_CFLAGS"
Colin Cross [Tue, 28 Jan 2014 02:25:45 +0000 (02:25 +0000)]
Merge "Add support for TARGET_GLOBAL_UNSUPPORTED_CFLAGS"

10 years agoAdd support for TARGET_GLOBAL_UNSUPPORTED_CFLAGS
Colin Cross [Tue, 28 Jan 2014 01:34:21 +0000 (17:34 -0800)]
Add support for TARGET_GLOBAL_UNSUPPORTED_CFLAGS

To ease the transition between toolchains, allow a target to specify
a list of cflags that the toolchain does not support.  These will be
filtered out of the cflags provided by the module.

Add TARGET_GLOBAL_UNSUPPORTED_CFLAGS := -fstack-protector for the
aarch64 toolchain, it does not yet suport -fstack-protector.

Change-Id: I168d0c6f131326fad305ec86fad46e6a3e03295a

10 years agoMerge "Remove libthread_db from the default include path."
Elliott Hughes [Tue, 28 Jan 2014 00:00:19 +0000 (00:00 +0000)]
Merge "Remove libthread_db from the default include path."

10 years agoRemove libthread_db from the default include path.
Elliott Hughes [Mon, 27 Jan 2014 23:43:19 +0000 (15:43 -0800)]
Remove libthread_db from the default include path.

This should never have been on the default include path.

The NDK statically links its own libthread_db, so I'm removing
bionic's unused copy from devices.

Bug: 11882807
Change-Id: I49a67fe0902cc4bc178360f6c993959774d74e3a

10 years agoMerge "ota_from_target_files: Add an option to not sign OTA packages"
Ying Wang [Mon, 27 Jan 2014 23:37:18 +0000 (23:37 +0000)]
Merge "ota_from_target_files: Add an option to not sign OTA packages"

10 years agoMerge changes I62504bad,I16208cca,I4e4ceec6
Colin Cross [Mon, 27 Jan 2014 23:35:00 +0000 (23:35 +0000)]
Merge changes I62504bad,I16208cca,I4e4ceec6

* changes:
  add new gen/ directory for generated sources
  warn on LOCAL_MODULE_PATH in multiarch shared libraries
  Support LOCAL_MODULE_RELATIVE_PATH

10 years agoMerge "Don't modify LOCAL_MODULE_TAGS."
Ying Wang [Mon, 27 Jan 2014 23:20:05 +0000 (23:20 +0000)]
Merge "Don't modify LOCAL_MODULE_TAGS."

10 years agoDon't modify LOCAL_MODULE_TAGS.
Ying Wang [Mon, 27 Jan 2014 23:19:09 +0000 (15:19 -0800)]
Don't modify LOCAL_MODULE_TAGS.

Change-Id: Id70d48c1d7abf02139925bcb3208515ea1a082b9

10 years agoMerge "collect_gpl_sources.mk: Declare rule to assemble GPL sources FORCE"
Ying Wang [Mon, 27 Jan 2014 22:52:13 +0000 (22:52 +0000)]
Merge "collect_gpl_sources.mk: Declare rule to assemble GPL sources FORCE"

10 years agoadd new gen/ directory for generated sources
Colin Cross [Sat, 25 Jan 2014 07:17:21 +0000 (23:17 -0800)]
add new gen/ directory for generated sources

Allow modules to generate source into $OUT/gen, which will then
be copied into $OUT/obj and $OUT/obj_$(TARGET_2ND_ARCH) as
necessary.  This allows a single build rule invocation that includes
generated source to build for the first and second architectures.

Modules will need to change calls to local-intermediates-dir into
local-generated-sources-dir.

Change-Id: I62504bad9454b3d9fde7b84ab9f0a487a2ecf0bf

10 years agowarn on LOCAL_MODULE_PATH in multiarch shared libraries
Colin Cross [Sat, 25 Jan 2014 03:30:27 +0000 (19:30 -0800)]
warn on LOCAL_MODULE_PATH in multiarch shared libraries

Using LOCAL_MODULE_PATH in a shared library module while building a
multiarch target will cause build rules for both architectures to install
into the same path.  Warn and suggest LOCAL_MODULE_RELATIVE_PATH.

Change-Id: I16208ccada6d43a26a342af35096f49d8df26e81

10 years agoSupport LOCAL_MODULE_RELATIVE_PATH
Colin Cross [Sat, 25 Jan 2014 03:23:40 +0000 (19:23 -0800)]
Support LOCAL_MODULE_RELATIVE_PATH

Most users of LOCAL_MODULE_PATH are setting a subdirectory of the
normal install path, for example to install HALs into system/lib/hw.
This is problematic for multiarch builds, where the install location
depends on the arch.  Allow modules to specify LOCAL_MODULE_RELATIVE_PATH.
HALs will generally use:
LOCAL_MODULE_RELATIVE_PATH := hw

Change-Id: I4e4ceec61d026bbe74ba604554c06104bde42e5e

10 years agocollect_gpl_sources.mk: Declare rule to assemble GPL sources FORCE
Andrew Boie [Fri, 13 Dec 2013 22:28:53 +0000 (14:28 -0800)]
collect_gpl_sources.mk: Declare rule to assemble GPL sources FORCE

We have no rigorous way to detect whether the code referenced for this
mechanism changes in between builds. So declare this as a phony target
so that it is rebuilt every time.

Change-Id: Ie1670d96895719d406e7b0defd53ba3cd224dd83
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
10 years agoMerge "Support arch-specific LOCAL_C_INCLUDES."
Ying Wang [Mon, 27 Jan 2014 18:28:35 +0000 (18:28 +0000)]
Merge "Support arch-specific LOCAL_C_INCLUDES."

10 years agoSupport arch-specific LOCAL_C_INCLUDES.
Ying Wang [Mon, 27 Jan 2014 18:27:19 +0000 (10:27 -0800)]
Support arch-specific LOCAL_C_INCLUDES.

Bug: 11654773
Change-Id: I89c7ce7ff8bea15cb81f9cd9b0188b54beed3422

10 years agoota_from_target_files: Add an option to not sign OTA packages
Takeshi Kanemoto [Thu, 14 Nov 2013 08:20:50 +0000 (17:20 +0900)]
ota_from_target_files: Add an option to not sign OTA packages

Sometimes it is useful to be able to tell ota_from_target_files
to not sign the output zip file. For instance, the private
release key may not be available when ota_from_target_files
is executed; similarly the release tools may not be available
or executable where the private key is stored.

This change adds an option, '--no_signing', to simply output the
unsigned OTA zip file, instead of spuriously signing it with the
test key even though the zip file would need to be re-signed later
with a different key.

Change-Id: I1f3c4dc8ffa35ce85478f848b147aff3d40fe283

10 years agoMerge changes Ib1d950e1,I3d020a3c,Ic9594718
Colin Cross [Sat, 25 Jan 2014 00:46:33 +0000 (00:46 +0000)]
Merge changes Ib1d950e1,I3d020a3c,Ic9594718

* changes:
  Add 2nd arch directories for apps
  Set up rules to build prebuilts for TARGET_2ND_ARCH
  Set up rules to build packages for TARGET_2ND_ARCH

10 years agoAdd 2nd arch directories for apps
Colin Cross [Fri, 24 Jan 2014 21:37:07 +0000 (13:37 -0800)]
Add 2nd arch directories for apps

Apps built for 2nd arch install in the same directories as when
built for the 1st arch.

Change-Id: Ib1d950e186eef88212b44d04e6bc6c30a3d56155

10 years agoSet up rules to build prebuilts for TARGET_2ND_ARCH
Colin Cross [Fri, 24 Jan 2014 21:34:51 +0000 (13:34 -0800)]
Set up rules to build prebuilts for TARGET_2ND_ARCH

Prebuilts built for the 2nd arch will install into 2nd arch
directories.

Change-Id: I3d020a3c1fb0f2eb0579933f8a66e410e66fdd44

10 years agoSet up rules to build packages for TARGET_2ND_ARCH
Colin Cross [Fri, 24 Jan 2014 21:33:39 +0000 (13:33 -0800)]
Set up rules to build packages for TARGET_2ND_ARCH

Packages built for the 2nd arch will depend on jni libraries
build for the 2nd arch.

Change-Id: Ic9594718849b2577920c500c35d46150eb948c8d

10 years agoMerge "build: print module that has unhandled install path"
Ying Wang [Fri, 24 Jan 2014 21:45:49 +0000 (21:45 +0000)]
Merge "build: print module that has unhandled install path"

10 years agobuild: print module that has unhandled install path
Colin Cross [Thu, 23 Jan 2014 01:34:28 +0000 (17:34 -0800)]
build: print module that has unhandled install path

Print the name of the module that is providing an unhandled install
path.

Change-Id: I0e8b02f01de1dde715f0985034ad943f793218ba

Conflicts:
core/base_rules.mk

10 years agoMerge "build: use correct arm vs thumb arguments for 2nd arch builds"
Ying Wang [Fri, 24 Jan 2014 21:42:42 +0000 (21:42 +0000)]
Merge "build: use correct arm vs thumb arguments for 2nd arch builds"

10 years agobuild: use correct arm vs thumb arguments for 2nd arch builds
Colin Cross [Thu, 23 Jan 2014 01:36:05 +0000 (17:36 -0800)]
build: use correct arm vs thumb arguments for 2nd arch builds

Set arm_objects_mode and normal_objects_mode when building a
module for arm when it is the 2nd arch.

Change-Id: I5f7df519b6e1dde6cbf92d106681f07a58e1f1f2

10 years agoMerge "build: use arm kernel headers for arm 2nd arch builds"
Ying Wang [Fri, 24 Jan 2014 21:41:25 +0000 (21:41 +0000)]
Merge "build: use arm kernel headers for arm 2nd arch builds"

10 years agobuild: use arm kernel headers for arm 2nd arch builds
Colin Cross [Wed, 22 Jan 2014 00:54:00 +0000 (16:54 -0800)]
build: use arm kernel headers for arm 2nd arch builds

Compiling for arm requires using the arm kernel headers and not
the aarch64 kernel headers.  Add $(combo_2nd_arch_prefix) to get
asm-$(TARGET_2ND_ARCH) when arm is the 2nd arch.

Change-Id: I15270d0ef35e48c034bf4d0d5e35b76f67b2a8e1

10 years agoMerge "Support arch-specific LOCAL_ variables"
Ying Wang [Fri, 24 Jan 2014 21:40:38 +0000 (21:40 +0000)]
Merge "Support arch-specific LOCAL_ variables"

10 years agoMerge "Make sure to install the .odex when running "make <module_name>""
Ying Wang [Fri, 24 Jan 2014 21:40:26 +0000 (21:40 +0000)]
Merge "Make sure to install the .odex when running "make <module_name>""

10 years agoMerge "Support to build executables for TARGET_2ND_ARCH"
Ying Wang [Fri, 24 Jan 2014 21:40:12 +0000 (21:40 +0000)]
Merge "Support to build executables for TARGET_2ND_ARCH"

10 years agoMerge "Replace all references to LOCAL_GENERATED_SOURCES with my_generated_sources"
Ying Wang [Fri, 24 Jan 2014 21:39:59 +0000 (21:39 +0000)]
Merge "Replace all references to LOCAL_GENERATED_SOURCES with my_generated_sources"

10 years agoMerge "Set up rules to build shared libraries for TARGET_2ND_ARCH"
Ying Wang [Fri, 24 Jan 2014 21:39:48 +0000 (21:39 +0000)]
Merge "Set up rules to build shared libraries for TARGET_2ND_ARCH"

10 years agoMerge "Set up rules to build static libraries for TARGET_2ND_ARCH"
Ying Wang [Fri, 24 Jan 2014 21:39:29 +0000 (21:39 +0000)]
Merge "Set up rules to build static libraries for TARGET_2ND_ARCH"

10 years agoMerge "Load compiler environment for a second arch."
Ying Wang [Fri, 24 Jan 2014 21:39:14 +0000 (21:39 +0000)]
Merge "Load compiler environment for a second arch."

10 years agoSupport arch-specific LOCAL_ variables
Ying Wang [Thu, 23 Jan 2014 23:09:04 +0000 (15:09 -0800)]
Support arch-specific LOCAL_ variables

With those variables, you can set up different values for TARGET_ARCH
and TARGET_2ND_ARCH.
Also fixed a couple of variables.

Bug: 11654773
Change-Id: I4c7684a562cd5877d18f67d4f848b8df07d0103b

Conflicts:
core/base_rules.mk

10 years agoMake sure to install the .odex when running "make <module_name>"
Ying Wang [Thu, 23 Jan 2014 00:50:21 +0000 (16:50 -0800)]
Make sure to install the .odex when running "make <module_name>"

Change-Id: I64195294dad15b7d379d667f4c4738c2808fd384

10 years agoSupport to build executables for TARGET_2ND_ARCH
Ying Wang [Sat, 18 Jan 2014 00:17:28 +0000 (16:17 -0800)]
Support to build executables for TARGET_2ND_ARCH

By default, an executable is built for TARGET_ARCH.
To build it for TARGET_2ND_ARCH in a 64bit product, use:
LOCAL_32BIT_ONLY := true
To skip a module for TARGET_2ND_ARCH, use:
LOCAL_NO_2ND_ARCH := true

Bug: 11654773
Change-Id: Ieb293d25b21024bfe1b554044df338e064ac7b46

10 years agoReplace all references to LOCAL_GENERATED_SOURCES with my_generated_sources
Ying Wang [Fri, 17 Jan 2014 00:21:03 +0000 (16:21 -0800)]
Replace all references to LOCAL_GENERATED_SOURCES with my_generated_sources

Now the RS generated sources are only appended to my_generated_sources.

Bug: 11654773
Change-Id: If8dbf3c08fed0b9945dd32b8c809331c17c4bc85

10 years agoSet up rules to build shared libraries for TARGET_2ND_ARCH
Ying Wang [Thu, 16 Jan 2014 20:36:34 +0000 (12:36 -0800)]
Set up rules to build shared libraries for TARGET_2ND_ARCH

The rules for the 2nd arch are set up in the second inclusion
of shared_library_internal.mk.
Intermediate fils of libfoo of the 2nd arch will be built into
$(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/SHARED_LIBRARIES/libfoo_intermediates/
and the built libfoo.so will be in
$(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/lib.

Bug: 11654773
Change-Id: I58bbe5a05a65f63bce6279131552f3792000716e

10 years agoSet up rules to build static libraries for TARGET_2ND_ARCH
Ying Wang [Thu, 16 Jan 2014 00:02:16 +0000 (16:02 -0800)]
Set up rules to build static libraries for TARGET_2ND_ARCH

The rules for the 2nd arch are set up in the second inclusion
of static_library_internal.mk.
libfoo of the 2nd arch will be built into
$(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/libfoo_intermediates/libfoo.a.

Bug: 11654773
Change-Id: I1d92733968fc442e9225b4df5bd1b551a81d89f7

10 years agoLoad compiler environment for a second arch.
Ying Wang [Fri, 27 Dec 2013 19:09:36 +0000 (11:09 -0800)]
Load compiler environment for a second arch.

This is the first step to build 32-bit libraries in a 64-bit product.
It will work like this:
1) In the product's BoardConfig.mk, define:
TARGET_2ND_ARCH, TARGET_2ND_ARCH_VARIANT, TARGET_2ND_CPU_VARIANT.
The build system uses those variables to set up an additional compiler
environment for the second arch.

2) When parsing Android.mks, the build system sets up rules to build a
module for both the 1st arch and the 2nd arch, unless it's explicitly
asked to skip so.
Android.mk will be adapted if there is additional rule of generating
source files.
The build system will accept arch-specific LOCAL_ variables, such as
LOCAL_CFLAGS_arm, LOCAL_CFLAGS_armv7-a-neon, LOCAL_CFLAGS_cortex-a15,
LOCAL_CFLAGS_aarch64 etc. Modules use such variables to set up build for
various archs at the same time.

3) Install binary of the 2nd arch by adding "<module_name>:32" to
PRODUCT_PACKAGES. All 2nd-arch libraries linked in by "<module_name>:32"
will be installed automatically.

Bug: 11654773
Change-Id: I2df63cd5463a07bf5358bee2a109f8fb9590fe30

Conflicts:
core/combo/TARGET_linux-arm.mk

10 years agoMerge "build: rename aarch64 target to arm64"
Colin Cross [Fri, 24 Jan 2014 20:33:59 +0000 (20:33 +0000)]
Merge "build: rename aarch64 target to arm64"

10 years agobuild: rename aarch64 target to arm64
Colin Cross [Wed, 22 Jan 2014 03:35:38 +0000 (19:35 -0800)]
build: rename aarch64 target to arm64

Rename aarch64 build targets to arm64.  The gcc toolchain is still
aarch64.

Change-Id: Ia92d8a50824e5329cf00fd6f4f92eae112b7f3a3

10 years agoMerge "Vibra: compile and stage vibrator.default on all targets"
David Turner [Fri, 24 Jan 2014 05:33:08 +0000 (05:33 +0000)]
Merge "Vibra: compile and stage vibrator.default on all targets"

10 years agoMerge "Vibra: emulator: compile and stage vibrator.goldfish"
David Turner [Fri, 24 Jan 2014 05:32:54 +0000 (05:32 +0000)]
Merge "Vibra: emulator: compile and stage vibrator.goldfish"

10 years agoMerge "Make jgrep, cgrep, resgrep not recurse into 'out' directory."
Ying Wang [Wed, 22 Jan 2014 20:30:06 +0000 (20:30 +0000)]
Merge "Make jgrep, cgrep, resgrep not recurse into 'out' directory."

10 years agoMerge "Make envsetup.sh set JAVA_HOME correctly for java7."
Narayan Kamath [Wed, 22 Jan 2014 10:44:48 +0000 (10:44 +0000)]
Merge "Make envsetup.sh set JAVA_HOME correctly for java7."

10 years agoMake envsetup.sh set JAVA_HOME correctly for java7.
Narayan Kamath [Fri, 17 Jan 2014 10:05:25 +0000 (10:05 +0000)]
Make envsetup.sh set JAVA_HOME correctly for java7.

Note that despite the location of this change, this function
is run only during "lunch" and not during ". build/envsetup.sh"

Also, make it easier to switch back and forth between java6 and 7
on the same session.

bug: 8992787

Change-Id: I56ec0ba8552b46c04204a8b96b9abc0180f7605f

10 years agoMerge "Revert "Fix filter rule when checking for apks in PRODUCT_COPY_FILES.""
Ying Wang [Wed, 22 Jan 2014 03:48:59 +0000 (03:48 +0000)]
Merge "Revert "Fix filter rule when checking for apks in PRODUCT_COPY_FILES.""

10 years agoRevert "Fix filter rule when checking for apks in PRODUCT_COPY_FILES."
Ying Wang [Wed, 22 Jan 2014 03:48:27 +0000 (03:48 +0000)]
Revert "Fix filter rule when checking for apks in PRODUCT_COPY_FILES."

This reverts commit ca37190711ca48a6bfd6b5700a54cd580abd1e5b.

Change-Id: I3a76f4cdf92ecbe3059bf5856cf341874e1393cf

10 years agoMerge "Fix filter rule when checking for apks in PRODUCT_COPY_FILES."
Ying Wang [Tue, 21 Jan 2014 20:31:31 +0000 (20:31 +0000)]
Merge "Fix filter rule when checking for apks in PRODUCT_COPY_FILES."

10 years agoMerge "Add missing paren in "java -version" check"
Ying Wang [Tue, 21 Jan 2014 19:47:51 +0000 (19:47 +0000)]
Merge "Add missing paren in "java -version" check"

10 years agoAdd missing paren in "java -version" check
Brian Carlstrom [Tue, 21 Jan 2014 07:48:45 +0000 (23:48 -0800)]
Add missing paren in "java -version" check

Change-Id: Id66e795423e8d25b48ac996956748a93060ea5db

10 years agoFix filter rule when checking for apks in PRODUCT_COPY_FILES.
Robert Craig [Fri, 17 Jan 2014 14:13:50 +0000 (09:13 -0500)]
Fix filter rule when checking for apks in PRODUCT_COPY_FILES.

PRODUCT_COPY_FILES entries can include the src:dest:owner
syntax versus src:dest. This causes the filter to miss
certain cases. Instead use the word-colon function to
grab the dest regardless of syntax.

Change-Id: I1f4e57a236c1db148bada0cfe5bd1e87bb1194d6
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
10 years agoMerge "[MIPS] Reenable linker fatal-warnings"
Ying Wang [Thu, 16 Jan 2014 01:02:58 +0000 (01:02 +0000)]
Merge "[MIPS] Reenable linker fatal-warnings"

10 years ago[MIPS] Reenable linker fatal-warnings
Chris Dearman [Wed, 15 Jan 2014 06:35:13 +0000 (22:35 -0800)]
[MIPS] Reenable linker fatal-warnings

Change-Id: I4efbb7d0b1026b49a9b8bf968dd4752fca8a543b

10 years agoMerge "Add aosp_aarch64-eng to the default lunch menu."
Ben Cheng [Wed, 15 Jan 2014 00:01:12 +0000 (00:01 +0000)]
Merge "Add aosp_aarch64-eng to the default lunch menu."

10 years agoAdd aosp_aarch64-eng to the default lunch menu.
Ben Cheng [Tue, 14 Jan 2014 23:55:03 +0000 (15:55 -0800)]
Add aosp_aarch64-eng to the default lunch menu.

Change-Id: I55f6ab6ea90670def30796fdce76c27031ecef01

10 years agoMerge "Remove aprof support from the build system."
Ying Wang [Tue, 14 Jan 2014 23:33:34 +0000 (23:33 +0000)]
Merge "Remove aprof support from the build system."

10 years agoRemove aprof support from the build system.
Ying Wang [Tue, 14 Jan 2014 22:26:05 +0000 (14:26 -0800)]
Remove aprof support from the build system.

This reverts the commit 70dc3e1d.

Change-Id: I480b005579805d2608d05dac41e32bb44642e813

10 years agoMerge "Install 64-bit libraries to /system/lib64."
Ying Wang [Tue, 14 Jan 2014 20:03:19 +0000 (20:03 +0000)]
Merge "Install 64-bit libraries to /system/lib64."

10 years agoInstall 64-bit libraries to /system/lib64.
Ying Wang [Tue, 14 Jan 2014 00:14:20 +0000 (16:14 -0800)]
Install 64-bit libraries to /system/lib64.

/system/lib always contains 32-bit libraries, and /system/lib64 (if
present) always contains 64-bit libraries.
Move things around a little bit, so TARGET_ARCH can be used to define
the build paths.

Bug: 11654773
Change-Id: I2edd91e162c7a20d7719d7bae15e5fa6c2a5b498

10 years agoMerge "Remove obsolete CUSTOM_KERNEL_HEADERS."
Elliott Hughes [Sat, 11 Jan 2014 00:41:24 +0000 (00:41 +0000)]
Merge "Remove obsolete CUSTOM_KERNEL_HEADERS."

10 years agoRemove obsolete CUSTOM_KERNEL_HEADERS.
Elliott Hughes [Sat, 11 Jan 2014 00:35:08 +0000 (16:35 -0800)]
Remove obsolete CUSTOM_KERNEL_HEADERS.

Change-Id: Id260dd351b90f065eee56e231d4c341b18c1b27f

10 years agoMerge "Fix x86_64 build"
Ying Wang [Fri, 10 Jan 2014 17:33:12 +0000 (17:33 +0000)]
Merge "Fix x86_64 build"

10 years agoFix x86_64 build
Pavel Chupin [Fri, 10 Jan 2014 15:23:08 +0000 (19:23 +0400)]
Fix x86_64 build

Issue introduced here:
https://android-review.googlesource.com/#/c/71842/

Change-Id: I8a60641ff07173fcedf259df89aaaa4bc6d6ea3e
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agoVibra: compile and stage vibrator.default on all targets
David Wagner [Mon, 30 Dec 2013 13:30:37 +0000 (14:30 +0100)]
Vibra: compile and stage vibrator.default on all targets

Add the vibrator.default package to all targets deriving from
generic_no_telephony, i.e. virtually all targets.

This change is related to other changes in:
 - hardware/libhardware
 - hardware/libhardware_legacy
 - frameworks/base
 - device/generic/goldfish

Change-Id: Ic8464844e12f7d31ca49597dfc4995b13e9ff419
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: David Wagner <david.wagner@intel.com>
Author-tracking-BZ: 94611

10 years agoMerge "Add support for ALTERNATE_JAVAC"
Brian Carlstrom [Fri, 10 Jan 2014 02:31:25 +0000 (02:31 +0000)]
Merge "Add support for ALTERNATE_JAVAC"