blob: 57cafea3272f3012fc24cd2c2c0210227021072d [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
Adam Shih6e05ed02022-08-16 13:56:53 +080030include device/google/gs-common/bcmbt/bluetooth.mk
Robin Pengcd374d82021-02-23 20:00:46 +080031
Sasha Smundakfbe1c662021-12-15 09:17:53 -080032$(call soong_config_set,lyric,tuning_product,slider)
33$(call soong_config_set,google3a_config,target_device,slider)
Krzysztof KosiƄski61162922021-11-04 11:34:21 -070034
Jack Wu6f51c2a2021-08-31 21:45:53 +080035# WirelessCharger
36DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml
37
Robin Pengcd374d82021-02-23 20:00:46 +080038# Init files
39PRODUCT_COPY_FILES += \
40 device/google/raviole/conf/init.whitefin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.whitefin.rc
41
42# Recovery files
43PRODUCT_COPY_FILES += \
44 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.whitefin.rc
45
46# insmod files
47PRODUCT_COPY_FILES += \
48 device/google/raviole/init.insmod.whitefin.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.whitefin.cfg
49
50# Thermal Config
51PRODUCT_COPY_FILES += \
52 device/google/raviole/thermal_info_config_whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
53
54# Camera
55PRODUCT_COPY_FILES += \
56 device/google/raviole/media_profiles_whitefin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
57
58# Bluetooth
59PRODUCT_PROPERTY_OVERRIDES += \
60 ro.bluetooth.a2dp_offload.supported=false
61
Cheney Niab920162021-06-28 13:47:54 +080062PRODUCT_PRODUCT_PROPERTIES += \
63 persist.bluetooth.a2dp_aac.vbr_supported=true
64
Robin Pengcd374d82021-02-23 20:00:46 +080065# NFC
66PRODUCT_COPY_FILES += \
George Chang8933f1b2021-08-17 00:51:25 +080067 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
68 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
69 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
70 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
71 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
72 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
73 device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
74 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
75
76PRODUCT_PACKAGES += \
77 NfcNci \
78 Tag \
George Chang91a40962022-03-30 22:13:09 +080079 android.hardware.nfc-service.st
Benjamin Schwartzc798cb32021-03-18 17:55:40 -070080
81# PowerStats HAL
82PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/whitefin
Robin Peng6e4640b2021-06-01 18:03:27 +080083
84# Trusty liboemcrypto.so
85PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
jonerlin972d2c22021-06-29 16:36:29 +080086
87# Bluetooth HAL
88PRODUCT_PACKAGES += \
jonerlin972d2c22021-06-29 16:36:29 +080089 bt_vendor.conf
Alex Hongb8033582021-11-17 19:10:08 +080090
Mars Lineabb3bf2022-06-08 22:11:37 +080091# tetheroffload HAL
92PRODUCT_PACKAGES += \
93 vendor.samsung_slsi.hardware.tetheroffload@1.1-service
94
Wei Wang63fe7452022-01-28 22:07:30 -080095# Power HAL config
96PRODUCT_COPY_FILES += \
97 device/google/raviole/powerhint-whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
98
Alex Hongb8033582021-11-17 19:10:08 +080099# This device is shipped with 31 (Android S)
100PRODUCT_SHIPPING_API_LEVEL := 31
Ben Murdochb5b42572022-03-10 10:44:27 +0000101
102# Device features
103PRODUCT_COPY_FILES += \
104 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml