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# The system image of aosp_arm64-userdebug is a GSI for the devices with: 18# - ARM 64 bits user space 19# - 64 bits binder interface 20# - system-as-root 21# - VNDK enforcement 22# - compatible property override enabled 23 24# This is a build configuration for a full-featured build of the 25# Open-Source part of the tree. It's geared toward a US-centric 26# build quite specifically for the emulator, and might not be 27# entirely appropriate to inherit from for on-device configurations. 28 29# 30# All components inherited here go to system image 31# 32$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) 33$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk) 34 35# Enable mainline checking for excat this product name 36ifeq (aosp_arm64,$(TARGET_PRODUCT)) 37PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed 38endif 39 40# 41# All components inherited here go to system_ext image 42# 43$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk) 44$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk) 45 46# pKVM 47$(call inherit-product-if-exists, packages/modules/Virtualization/apex/product_packages.mk) 48 49# 50# All components inherited here go to product image 51# 52$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk) 53 54# 55# All components inherited here go to vendor or vendor_boot image 56# 57$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_arm64/device.mk) 58AB_OTA_UPDATER := true 59AB_OTA_PARTITIONS ?= system 60 61# Set widevine apex signed with dev key 62$(call soong_config_set,widevine,use_devkey,true) 63 64# 65# Special settings for GSI releasing 66# 67ifeq (aosp_arm64,$(TARGET_PRODUCT)) 68# Build modules from source if this has not been pre-configured 69MODULE_BUILD_FROM_SOURCE ?= true 70 71$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk) 72endif 73 74 75PRODUCT_NAME := aosp_arm64 76PRODUCT_DEVICE := generic_arm64 77PRODUCT_BRAND := Android 78PRODUCT_MODEL := AOSP on ARM64 79 80PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO := true 81