blob: a61250b57eb018c49d11c6a66a72d40b94dee05e [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
31# Init files
32PRODUCT_COPY_FILES += \
33 device/google/raviole/conf/init.whitefin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.whitefin.rc
34
35# Recovery files
36PRODUCT_COPY_FILES += \
37 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.whitefin.rc
38
39# insmod files
40PRODUCT_COPY_FILES += \
41 device/google/raviole/init.insmod.whitefin.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.whitefin.cfg
42
43# Thermal Config
44PRODUCT_COPY_FILES += \
45 device/google/raviole/thermal_info_config_whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
46
47# Camera
48PRODUCT_COPY_FILES += \
49 device/google/raviole/media_profiles_whitefin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
50
51# Bluetooth
52PRODUCT_PROPERTY_OVERRIDES += \
53 ro.bluetooth.a2dp_offload.supported=false
54
Cheney Niab920162021-06-28 13:47:54 +080055PRODUCT_PRODUCT_PROPERTIES += \
56 persist.bluetooth.a2dp_aac.vbr_supported=true
57
Robin Pengcd374d82021-02-23 20:00:46 +080058# NFC
59PRODUCT_COPY_FILES += \
60 device/google/gs101/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf
Benjamin Schwartzc798cb32021-03-18 17:55:40 -070061
62# PowerStats HAL
63PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/whitefin
Robin Peng6e4640b2021-06-01 18:03:27 +080064
65# Trusty liboemcrypto.so
66PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts