summaryrefslogtreecommitdiff
path: root/dynamic_zygote_seondary/dynamic_zygote_64_bit.mk (plain)
blob: 7427fe28b6efd3eb2db8569e85388a172f5d1eef
1#
2# Copyright (C) 2013 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# For now this will allow for dynamic start/stop zygote_secondary
18# feature in 64-bit primary,32-bit secondary zygote
19
20# Copy dynamic the 64-bit primary, 32-bit secondary zygote startup script
21ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true)
22PRODUCT_COPY_FILES += \
23 device/amlogic/common/dynamic_zygote_seondary/init.zygote64_32.rc:root/init.zygote64_32.rc
24else
25PRODUCT_COPY_FILES += \
26 device/amlogic/common/dynamic_zygote_seondary/init.zygote64_32.rc:recovery/root/init.zygote64_32.rc
27endif
28
29# Set the zygote property to select the 64-bit primary, 32-bit secondary script
30# This line must be parsed before the one in core_minimal.mk
31PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote64_32
32
33TARGET_SUPPORTS_32_BIT_APPS := true
34TARGET_SUPPORTS_64_BIT_APPS := true
35
36# Set the property to enable dynamic start/stop zygote_secondary feature
37PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.dynamic.zygote_secondary=enable
38
39# Compile zygote secondary proxy
40PRODUCT_PACKAGES += \
41 zygote_proxy
42