1#
2# Copyright 2022 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
17PRODUCT_USE_DYNAMIC_PARTITIONS := true
18
19# The system image of aosp_riscv64-userdebug is a GSI for the devices with:
20# - riscv64 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 & support 64-bit apps only
32$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk)
33$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
34
35#
36# All components inherited here go to system_ext image
37#
38$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk)
39$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk)
40
41#
42# All components inherited here go to product image
43#
44$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk)
45
46#
47# All components inherited here go to vendor image
48#
49$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_riscv64/device.mk)
50
51#
52# Special settings for GSI releasing
53#
54ifeq (aosp_riscv64,$(TARGET_PRODUCT))
55# Build modules from source if this has not been pre-configured
56MODULE_BUILD_FROM_SOURCE ?= true
57
58$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
59endif
60
61PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
62    root/init.zygote64.rc
63
64# TODO(b/206676167): This property can be removed when renderscript is removed.
65# Prevents framework from attempting to load renderscript libraries, which are
66# not supported on this architecture.
67PRODUCT_SYSTEM_PROPERTIES += \
68    config.disable_renderscript=1 \
69
70# This build configuration supports 64-bit apps only
71PRODUCT_NAME := aosp_riscv64
72PRODUCT_DEVICE := generic_riscv64
73PRODUCT_BRAND := Android
74PRODUCT_MODEL := AOSP on Riscv64
75