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
19#
20$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk)
21$(call inherit-product, device/google/cuttlefish/shared/wear/aosp_system.mk)
22
23# Cuttlefish uses A/B with system_b preopt, so we must install these
24PRODUCT_PACKAGES += \
25    cppreopts.sh \
26    otapreopt_script \
27
28# Hacks to boot with basic AOSP system apps
29PRODUCT_PACKAGES += \
30    Contacts \
31    Launcher3QuickStep \
32    Provision \
33    Settings \
34    StorageManager \
35    SystemUI \
36
37PRODUCT_COPY_FILES += \
38    frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \
39
40PRODUCT_ENFORCE_MAC80211_HWSIM := false
41
42#
43# All components inherited here go to system_ext image
44#
45$(call inherit-product, device/google/cuttlefish/shared/wear/aosp_system_ext.mk)
46
47#
48# All components inherited here go to product image
49#
50$(call inherit-product, device/google/cuttlefish/shared/wear/aosp_product.mk)
51
52#
53# All components inherited here go to vendor image
54#
55LOCAL_ENABLE_WIDEVINE := false
56$(call inherit-product, device/google/cuttlefish/shared/wear/aosp_vendor.mk)
57$(call inherit-product, device/google/cuttlefish/shared/wear/device_vendor.mk)
58
59#
60# Special settings for the target
61#
62$(call inherit-product, device/google/cuttlefish/vsoc_riscv64/bootloader.mk)
63
64# Exclude features that are not available on AOSP devices.
65PRODUCT_COPY_FILES += \
66    frameworks/native/data/etc/aosp_excluded_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/aosp_excluded_hardware.xml \
67
68# TODO(b/206676167): This property can be removed when renderscript is removed.
69# Prevents framework from attempting to load renderscript libraries, which are
70# not supported on this architecture.
71PRODUCT_SYSTEM_PROPERTIES += \
72    config.disable_renderscript=1 \
73
74PRODUCT_NAME := aosp_cf_riscv64_wear
75PRODUCT_DEVICE := vsoc_riscv64
76PRODUCT_MANUFACTURER := Google
77PRODUCT_MODEL := Cuttlefish riscv64 wearable
78
79PRODUCT_VENDOR_PROPERTIES += \
80    ro.soc.manufacturer=$(PRODUCT_MANUFACTURER) \
81    ro.soc.model=$(PRODUCT_DEVICE)
82