blob: 1b1d5c3c0a438633c0d77602a0f502ee33880075 [file] [log] [blame]
Robin Pengcd374d82021-02-23 20:00:46 +08001#
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
Petri Gyntherb0580002021-09-02 14:26:57 -070017TARGET_KERNEL_DIR ?= device/google/raviole-kernel
18TARGET_BOARD_KERNEL_HEADERS := device/google/raviole-kernel/kernel-headers
Robin Pengcd374d82021-02-23 20:00:46 +080019
20$(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-whitefin.mk)
21$(call inherit-product-if-exists, vendor/google_devices/gs101/prebuilts/device-vendor.mk)
22$(call inherit-product-if-exists, vendor/google_devices/gs101/proprietary/device-vendor.mk)
linpeterf3d8bf62021-03-17 09:27:12 +080023$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/whitefin/device-vendor-whitefin.mk)
Robin Pengcd374d82021-02-23 20:00:46 +080024
25DEVICE_PACKAGE_OVERLAYS += device/google/raviole/whitefin/overlay
26
27include device/google/gs101/device-common.mk
28include hardware/google/pixel/vibrator/drv2624/device.mk
29include device/google/raviole/audio/whitefin/audio-tables.mk
30
Krzysztof KosiƄski65b7d3d2021-11-02 21:00:10 -070031SOONG_CONFIG_lyric_tuning_product := slider
32SOONG_CONFIG_google3a_config_target_device := slider
33
Jack Wu6f51c2a2021-08-31 21:45:53 +080034# WirelessCharger
35DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml
36
Robin Pengcd374d82021-02-23 20:00:46 +080037# Init files
38PRODUCT_COPY_FILES += \
39 device/google/raviole/conf/init.whitefin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.whitefin.rc
40
41# Recovery files
42PRODUCT_COPY_FILES += \
43 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.whitefin.rc
44
45# insmod files
46PRODUCT_COPY_FILES += \
47 device/google/raviole/init.insmod.whitefin.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.whitefin.cfg
48
49# Thermal Config
50PRODUCT_COPY_FILES += \
51 device/google/raviole/thermal_info_config_whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
52
53# Camera
54PRODUCT_COPY_FILES += \
55 device/google/raviole/media_profiles_whitefin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
56
57# Bluetooth
58PRODUCT_PROPERTY_OVERRIDES += \
59 ro.bluetooth.a2dp_offload.supported=false
60
Cheney Niab920162021-06-28 13:47:54 +080061PRODUCT_PRODUCT_PROPERTIES += \
62 persist.bluetooth.a2dp_aac.vbr_supported=true
63
Robin Pengcd374d82021-02-23 20:00:46 +080064# NFC
65PRODUCT_COPY_FILES += \
George Changb2562832021-08-17 00:51:25 +080066 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
67 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
68 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
69 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
70 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
71 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
72 device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
73 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
74
75PRODUCT_PACKAGES += \
76 NfcNci \
77 Tag \
78 android.hardware.nfc@1.2-service.st
79
80DEVICE_MANIFEST_FILE += \
81 device/google/raviole/nfc/manifest_nfc.xml
Benjamin Schwartzc798cb32021-03-18 17:55:40 -070082
83# PowerStats HAL
84PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/whitefin
Robin Peng6e4640b2021-06-01 18:03:27 +080085
86# Trusty liboemcrypto.so
87PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
Alex Hongb90720c2021-11-17 19:10:08 +080088
89# This device is shipped with 31 (Android S)
90PRODUCT_SHIPPING_API_LEVEL := 31