core_64_bit.mk revision 75b29ae0785ce571b71294554833c0a9f91a758b
1# 2# Copyright (C) 2014 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17# Inherit from this product for devices that support 64-bit apps using: 18# $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) 19# The inheritance for this must come before the inheritance chain that leads 20# to core_minimal.mk 21 22# For now this will allow 64-bit apps, but still compile all apps with JNI 23# for 32-bit only. 24 25# Copy the 32-bit primary, 64-bit secondary zygote startup script 26PRODUCT_COPY_FILES += system/core/rootdir/init.zygote32_64.rc:root/init.zygote32_64.rc 27 28# Set the zygote property to select the 32-bit primary, 64-bit secondary script 29# This line must be parsed before the one in core_minimal.mk 30PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote32_64 31 32# Temporary hack to prefer launching processes as 32 bit 33# instead of 64 bit. 34# 35# STOPSHIP: Revert this to allow products to select it themselves 36TARGET_PREFER_32_BIT_APPS := true 37 38# Temporarily leave these unset to keep all apps with JNI building as 32-bit 39# TARGET_SUPPORTS_32_BIT_APPS := true 40# TARGET_SUPPORTS_64_BIT_APPS := true 41