• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2020 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# Keeps flexibility for kasan and ufs builds
18TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_ORIOLE_DIR)
19TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_ORIOLE_DIR)/kernel-headers
20
21$(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-whitefin.mk)
22$(call inherit-product-if-exists, vendor/google_devices/gs101/prebuilts/device-vendor.mk)
23$(call inherit-product-if-exists, vendor/google_devices/gs101/proprietary/device-vendor.mk)
24$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/whitefin/device-vendor-whitefin.mk)
25
26DEVICE_PACKAGE_OVERLAYS += device/google/raviole/whitefin/overlay
27
28include device/google/gs101/device-common.mk
29include hardware/google/pixel/vibrator/drv2624/device.mk
30include device/google/raviole/audio/whitefin/audio-tables.mk
31include device/google/gs-common/bcmbt/bluetooth.mk
32include device/google/gs-common/gps/brcm/cbd_gps.mk
33include device/google/gs-common/touch/lsi/lsi.mk
34
35# wireless_charger HAL service needs to be included specially due to no raviole-sepolicy folder
36PRODUCT_PACKAGES += vendor.google.wireless_charger-default
37DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs-common/wireless_charger/compatibility_matrix.xml
38
39# go/lyric-soong-variables
40$(call soong_config_set,lyric,camera_hardware,slider)
41$(call soong_config_set,lyric,tuning_product,slider)
42$(call soong_config_set,google3a_config,target_device,slider)
43
44# Init files
45PRODUCT_COPY_FILES += \
46	device/google/raviole/conf/init.whitefin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.whitefin.rc
47
48# Recovery files
49PRODUCT_COPY_FILES += \
50	device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.whitefin.rc
51
52# insmod files
53PRODUCT_COPY_FILES += \
54	device/google/raviole/init.insmod.whitefin.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.whitefin.cfg
55
56# Thermal Config
57PRODUCT_COPY_FILES += \
58    device/google/raviole/thermal_info_config_whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
59
60# Camera
61PRODUCT_COPY_FILES += \
62    device/google/raviole/media_profiles_whitefin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
63
64# Bluetooth
65PRODUCT_PROPERTY_OVERRIDES += \
66    ro.bluetooth.a2dp_offload.supported=false
67
68PRODUCT_PRODUCT_PROPERTIES += \
69    persist.bluetooth.a2dp_aac.vbr_supported=true
70
71# NFC
72PRODUCT_COPY_FILES += \
73	frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
74	frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
75	frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
76	frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
77	frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
78	frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
79	device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
80	device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
81
82PRODUCT_PACKAGES += \
83	$(RELEASE_PACKAGE_NFC_STACK) \
84	Tag \
85	android.hardware.nfc-service.st
86
87# PowerStats HAL
88PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/whitefin
89
90# Trusty liboemcrypto.so
91PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
92
93# tetheroffload HAL
94PRODUCT_PACKAGES += \
95	vendor.samsung_slsi.hardware.tetheroffload@1.1-service
96
97# Power HAL config
98PRODUCT_COPY_FILES += \
99	device/google/raviole/powerhint-whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
100
101# This device is shipped with 31 (Android S)
102PRODUCT_SHIPPING_API_LEVEL := 31
103
104# Device features
105PRODUCT_COPY_FILES += \
106    frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
107
108# Location
109ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
110        PRODUCT_COPY_FILES += \
111		device/google/raviole/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
112else
113        PRODUCT_COPY_FILES += \
114		device/google/raviole/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
115endif
116
117# Disable AVF Remote Attestation
118PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED := true
119