blob: f3ac3f0eb88e4379bc53428b57131de4fb8c2a9d [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-slider.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/slider/device-vendor-slider.mk)
Robin Pengcd374d82021-02-23 20:00:46 +080024
25DEVICE_PACKAGE_OVERLAYS += device/google/raviole/slider/overlay
26
27include device/google/gs101/device-common.mk
28include device/google/raviole/audio/slider/audio-tables.mk
29include hardware/google/pixel/vibrator/cs40l25/device.mk
30
Jack Wu6f51c2a2021-08-31 21:45:53 +080031# WirelessCharger
32DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml
33
Robin Pengcd374d82021-02-23 20:00:46 +080034# Init files
35PRODUCT_COPY_FILES += \
36 device/google/raviole/conf/init.slider.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.slider.rc
37
38# Recovery files
39PRODUCT_COPY_FILES += \
40 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.slider.rc
41
42# insmod files
43PRODUCT_COPY_FILES += \
44 device/google/raviole/init.insmod.slider.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.slider.cfg
45
46# Thermal Config
47PRODUCT_COPY_FILES += \
48 device/google/raviole/thermal_info_config_slider.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
49
50# Camera
51PRODUCT_COPY_FILES += \
52 device/google/raviole/media_profiles_slider.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
53
54# Bluetooth
Cheney Niab920162021-06-28 13:47:54 +080055PRODUCT_PRODUCT_PROPERTIES += \
56 persist.bluetooth.a2dp_aac.vbr_supported=true
57
58# Bluetooth default BDADDR for EVB only
Robin Pengcd374d82021-02-23 20:00:46 +080059PRODUCT_PROPERTY_OVERRIDES += \
Cheney Niab920162021-06-28 13:47:54 +080060 ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
Robin Pengcd374d82021-02-23 20:00:46 +080061
62# SecureElement
63PRODUCT_PACKAGES += \
George Chang8933f1b2021-08-17 00:51:25 +080064 android.hardware.secure_element@1.2-service-gto
Robin Pengcd374d82021-02-23 20:00:46 +080065
66PRODUCT_COPY_FILES += \
George Chang8933f1b2021-08-17 00:51:25 +080067 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf
Robin Pengcd374d82021-02-23 20:00:46 +080068
Robin Pengcd374d82021-02-23 20:00:46 +080069# NFC
70PRODUCT_COPY_FILES += \
George Chang8933f1b2021-08-17 00:51:25 +080071 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
72 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
73 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
74 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
75 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
76 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
George Changd48ff142021-03-10 20:35:15 +080077 device/google/raviole/nfc/libnfc-hal-st-disable.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
78 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
79
George Chang8933f1b2021-08-17 00:51:25 +080080PRODUCT_PACKAGES += \
81 NfcNci \
82 Tag \
83 android.hardware.nfc@1.2-service.st
84
85# SecureElement
86PRODUCT_PACKAGES += \
87 android.hardware.secure_element@1.2-service-gto
88
89PRODUCT_COPY_FILES += \
90 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
91 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
92 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
93 device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
94
Robin Pengcd374d82021-02-23 20:00:46 +080095DEVICE_MANIFEST_FILE += \
George Chang8933f1b2021-08-17 00:51:25 +080096 device/google/raviole/nfc/manifest_nfc.xml \
97 device/google/raviole/nfc/manifest_se.xml
Benjamin Schwartzc798cb32021-03-18 17:55:40 -070098
99# PowerStats HAL
100PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/slider
Robin Peng6e4640b2021-06-01 18:03:27 +0800101
102# Trusty liboemcrypto.so
103PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
jonerlin972d2c22021-06-29 16:36:29 +0800104
105# Bluetooth HAL
106PRODUCT_PACKAGES += \
107 android.hardware.bluetooth@1.1-service.bcmbtlinux \
108 bt_vendor.conf