Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 1 | # |
| 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 Gynther | b058000 | 2021-09-02 14:26:57 -0700 | [diff] [blame] | 17 | TARGET_KERNEL_DIR ?= device/google/raviole-kernel |
| 18 | TARGET_BOARD_KERNEL_HEADERS := device/google/raviole-kernel/kernel-headers |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 19 | |
| 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) |
linpeter | f3d8bf6 | 2021-03-17 09:27:12 +0800 | [diff] [blame] | 23 | $(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/slider/device-vendor-slider.mk) |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 24 | |
| 25 | DEVICE_PACKAGE_OVERLAYS += device/google/raviole/slider/overlay |
| 26 | |
| 27 | include device/google/gs101/device-common.mk |
| 28 | include device/google/raviole/audio/slider/audio-tables.mk |
| 29 | include hardware/google/pixel/vibrator/cs40l25/device.mk |
Patty | b527e46 | 2021-09-15 15:57:52 +0800 | [diff] [blame] | 30 | include device/google/gs101/bluetooth/bluetooth.mk |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 31 | |
Krzysztof KosiĆski | 0fc38d2 | 2021-11-02 21:00:10 -0700 | [diff] [blame^] | 32 | SOONG_CONFIG_lyric_tuning_product := slider |
| 33 | SOONG_CONFIG_google3a_config_target_device := slider |
| 34 | |
Jack Wu | 6f51c2a | 2021-08-31 21:45:53 +0800 | [diff] [blame] | 35 | # WirelessCharger |
| 36 | DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml |
| 37 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 38 | # Init files |
| 39 | PRODUCT_COPY_FILES += \ |
| 40 | device/google/raviole/conf/init.slider.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.slider.rc |
| 41 | |
| 42 | # Recovery files |
| 43 | PRODUCT_COPY_FILES += \ |
| 44 | device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.slider.rc |
| 45 | |
| 46 | # insmod files |
| 47 | PRODUCT_COPY_FILES += \ |
| 48 | device/google/raviole/init.insmod.slider.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.slider.cfg |
| 49 | |
| 50 | # Thermal Config |
| 51 | PRODUCT_COPY_FILES += \ |
| 52 | device/google/raviole/thermal_info_config_slider.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json |
| 53 | |
| 54 | # Camera |
| 55 | PRODUCT_COPY_FILES += \ |
| 56 | device/google/raviole/media_profiles_slider.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml |
| 57 | |
| 58 | # Bluetooth |
Cheney Ni | ab92016 | 2021-06-28 13:47:54 +0800 | [diff] [blame] | 59 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 60 | persist.bluetooth.a2dp_aac.vbr_supported=true |
| 61 | |
| 62 | # Bluetooth default BDADDR for EVB only |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 63 | PRODUCT_PROPERTY_OVERRIDES += \ |
Cheney Ni | ab92016 | 2021-06-28 13:47:54 +0800 | [diff] [blame] | 64 | ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55" |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 65 | |
| 66 | # SecureElement |
| 67 | PRODUCT_PACKAGES += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 68 | android.hardware.secure_element@1.2-service-gto |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 69 | |
| 70 | PRODUCT_COPY_FILES += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 71 | device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 72 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 73 | # NFC |
| 74 | PRODUCT_COPY_FILES += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 75 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ |
| 76 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ |
| 77 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ |
| 78 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ |
| 79 | frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ |
| 80 | frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \ |
George Chang | d48ff14 | 2021-03-10 20:35:15 +0800 | [diff] [blame] | 81 | device/google/raviole/nfc/libnfc-hal-st-disable.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \ |
| 82 | device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf |
| 83 | |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 84 | PRODUCT_PACKAGES += \ |
| 85 | NfcNci \ |
| 86 | Tag \ |
| 87 | android.hardware.nfc@1.2-service.st |
| 88 | |
| 89 | # SecureElement |
| 90 | PRODUCT_PACKAGES += \ |
| 91 | android.hardware.secure_element@1.2-service-gto |
| 92 | |
| 93 | PRODUCT_COPY_FILES += \ |
| 94 | frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \ |
| 95 | frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ |
| 96 | device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \ |
| 97 | device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf |
| 98 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 99 | DEVICE_MANIFEST_FILE += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 100 | device/google/raviole/nfc/manifest_nfc.xml \ |
| 101 | device/google/raviole/nfc/manifest_se.xml |
Benjamin Schwartz | c798cb3 | 2021-03-18 17:55:40 -0700 | [diff] [blame] | 102 | |
| 103 | # PowerStats HAL |
| 104 | PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/slider |
Robin Peng | 6e4640b | 2021-06-01 18:03:27 +0800 | [diff] [blame] | 105 | |
| 106 | # Trusty liboemcrypto.so |
| 107 | PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts |
jonerlin | 972d2c2 | 2021-06-29 16:36:29 +0800 | [diff] [blame] | 108 | |
| 109 | # Bluetooth HAL |
| 110 | PRODUCT_PACKAGES += \ |
jonerlin | 972d2c2 | 2021-06-29 16:36:29 +0800 | [diff] [blame] | 111 | bt_vendor.conf |