| 1 |
# |
| 2 |
# Copyright (C) 2017 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 |
PRODUCT_USE_DYNAMIC_PARTITIONS := true |
| 18 |
|
| 19 |
# The system image of aosp_arm64-userdebug is a GSI for the devices with: |
| 20 |
# - ARM 64 bits user space |
| 21 |
# - 64 bits binder interface |
| 22 |
# - system-as-root |
| 23 |
# - VNDK enforcement |
| 24 |
# - compatible property override enabled |
| 25 |
|
| 26 |
# This is a build configuration for a full-featured build of the |
| 27 |
# Open-Source part of the tree. It's geared toward a US-centric |
| 28 |
# build quite specifically for the emulator, and might not be |
| 29 |
# entirely appropriate to inherit from for on-device configurations. |
| 30 |
|
| 31 |
# GSI for system/product |
| 32 |
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
| 33 |
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_common.mk) |
| 34 |
|
| 35 |
# Emulator for vendor |
| 36 |
$(call inherit-product-if-exists, device/generic/goldfish/arm64-vendor.mk) |
| 37 |
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulator_vendor.mk) |
| 38 |
$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_arm64/device.mk) |
| 39 |
|
| 40 |
# Enable mainline checking for excat this product name |
| 41 |
ifeq (aosp_arm64,$(TARGET_PRODUCT)) |
| 42 |
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed |
| 43 |
endif |
| 44 |
|
| 45 |
PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \ |
| 46 |
root/init.zygote32_64.rc \ |
| 47 |
root/init.zygote64_32.rc \ |
| 48 |
|
| 49 |
# Copy different zygote settings for vendor.img to select by setting property |
| 50 |
# ro.zygote=zygote64_32 or ro.zygote=zygote32_64: |
| 51 |
# 1. 64-bit primary, 32-bit secondary OR |
| 52 |
# 2. 32-bit primary, 64-bit secondary |
| 53 |
# init.zygote64_32.rc is in the core_64_bit.mk below |
| 54 |
PRODUCT_COPY_FILES += \ |
| 55 |
system/core/rootdir/init.zygote32_64.rc:root/init.zygote32_64.rc |
| 56 |
|
| 57 |
PRODUCT_NAME := aosp_arm64 |
| 58 |
PRODUCT_DEVICE := generic_arm64 |
| 59 |
PRODUCT_BRAND := Android |
| 60 |
PRODUCT_MODEL := AOSP on ARM64 |