1# 2# Copyright (C) 2023 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# 18# All components inherited here go to system image (same as GSI system) 19# 20$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk) 21$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk) 22 23PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed 24 25# 26# All components inherited here go to system_ext image (same as GSI system_ext) 27# 28$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk) 29$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk) 30 31# 32# All components inherited here go to product image (same as GSI product) 33# 34$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk) 35 36# 37# All components inherited here go to vendor image 38# 39LOCAL_ENABLE_WIDEVINE := false 40$(call inherit-product, device/google/cuttlefish/shared/phone/device_vendor.mk) 41 42PRODUCT_ENFORCE_MAC80211_HWSIM := false 43 44# TODO: Nested virtualization support 45# $(call inherit-product, packages/modules/Virtualization/apex/product_packages.mk) 46 47# 48# Special settings for the target 49# 50$(call inherit-product, device/google/cuttlefish/vsoc_riscv64/bootloader.mk) 51 52# Exclude features that are not available on AOSP devices. 53PRODUCT_COPY_FILES += \ 54 frameworks/native/data/etc/aosp_excluded_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/aosp_excluded_hardware.xml 55 56# TODO(b/206676167): This property can be removed when renderscript is removed. 57# Prevents framework from attempting to load renderscript libraries, which are 58# not supported on this architecture. 59PRODUCT_SYSTEM_PROPERTIES += \ 60 config.disable_renderscript=1 \ 61 62PRODUCT_NAME := aosp_cf_riscv64_phone 63PRODUCT_DEVICE := vsoc_riscv64 64PRODUCT_MANUFACTURER := Google 65PRODUCT_MODEL := Cuttlefish riscv64 phone 66 67# Window sidecar and extensions to enhance activity embedding, multi-display, 68# tablet, and foldable support. 69PRODUCT_PACKAGES += \ 70 androidx.window.extensions \ 71 androidx.window.sidecar \ 72 73PRODUCT_VENDOR_PROPERTIES += \ 74 ro.soc.manufacturer=$(PRODUCT_MANUFACTURER) \ 75 ro.soc.model=$(PRODUCT_DEVICE) 76