blob: b50ad5f6d42593f5b91896e5ceb9c2b1540375cd [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
17TARGET_KERNEL_DIR := device/google/raviole-kernel
18
19$(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-slider.mk)
20$(call inherit-product-if-exists, vendor/google_devices/gs101/prebuilts/device-vendor.mk)
21$(call inherit-product-if-exists, vendor/google_devices/gs101/proprietary/device-vendor.mk)
linpeterf3d8bf62021-03-17 09:27:12 +080022$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/slider/device-vendor-slider.mk)
Robin Pengcd374d82021-02-23 20:00:46 +080023
24DEVICE_PACKAGE_OVERLAYS += device/google/raviole/slider/overlay
25
26include device/google/gs101/device-common.mk
27include device/google/raviole/audio/slider/audio-tables.mk
28include hardware/google/pixel/vibrator/cs40l25/device.mk
29
30# Init files
31PRODUCT_COPY_FILES += \
32 device/google/raviole/conf/init.slider.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.slider.rc
33
34# Recovery files
35PRODUCT_COPY_FILES += \
36 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.slider.rc
37
38# insmod files
39PRODUCT_COPY_FILES += \
40 device/google/raviole/init.insmod.slider.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.slider.cfg
41
42# Thermal Config
43PRODUCT_COPY_FILES += \
44 device/google/raviole/thermal_info_config_slider.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
45
46# Camera
47PRODUCT_COPY_FILES += \
48 device/google/raviole/media_profiles_slider.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
49
50# Bluetooth
51PRODUCT_PROPERTY_OVERRIDES += \
52 ro.bluetooth.a2dp_offload.supported=true \
53 persist.bluetooth.a2dp_offload.disabled=false \
54 persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
55
56# SecureElement
57PRODUCT_PACKAGES += \
58 android.hardware.secure_element@1.2-service-gto \
59 android.hardware.secure_element@1.2-service-gto-ese2
60
61PRODUCT_COPY_FILES += \
62 device/google/gs101/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
63 device/google/gs101/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
64
65# default BDADDR for EVB only
66PRODUCT_PROPERTY_OVERRIDES += \
67 ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
68
69# NFC
70PRODUCT_COPY_FILES += \
George Changd48ff142021-03-10 20:35:15 +080071 device/google/raviole/nfc/libnfc-hal-st-disable.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
72 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
73
Robin Pengcd374d82021-02-23 20:00:46 +080074DEVICE_MANIFEST_FILE += \
75 device/google/gs101/nfc/manifest_se_gs101.xml
Benjamin Schwartzc798cb32021-03-18 17:55:40 -070076
77# PowerStats HAL
78PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/slider
Robin Peng6e4640b2021-06-01 18:03:27 +080079
80# Trusty liboemcrypto.so
81PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts