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 | |
| 17 | TARGET_KERNEL_DIR := device/google/raviole-kernel |
| 18 | |
| 19 | $(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-whitefin.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) |
linpeter | f3d8bf6 | 2021-03-17 09:27:12 +0800 | [diff] [blame] | 22 | $(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/whitefin/device-vendor-whitefin.mk) |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 23 | |
| 24 | DEVICE_PACKAGE_OVERLAYS += device/google/raviole/whitefin/overlay |
| 25 | |
| 26 | include device/google/gs101/device-common.mk |
| 27 | include hardware/google/pixel/vibrator/drv2624/device.mk |
| 28 | include device/google/raviole/audio/whitefin/audio-tables.mk |
| 29 | |
| 30 | # Init files |
| 31 | PRODUCT_COPY_FILES += \ |
| 32 | device/google/raviole/conf/init.whitefin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.whitefin.rc |
| 33 | |
| 34 | # Recovery files |
| 35 | PRODUCT_COPY_FILES += \ |
| 36 | device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.whitefin.rc |
| 37 | |
| 38 | # insmod files |
| 39 | PRODUCT_COPY_FILES += \ |
| 40 | device/google/raviole/init.insmod.whitefin.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.whitefin.cfg |
| 41 | |
| 42 | # Thermal Config |
| 43 | PRODUCT_COPY_FILES += \ |
| 44 | device/google/raviole/thermal_info_config_whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json |
| 45 | |
| 46 | # Camera |
| 47 | PRODUCT_COPY_FILES += \ |
| 48 | device/google/raviole/media_profiles_whitefin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml |
| 49 | |
| 50 | # Bluetooth |
| 51 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 52 | ro.bluetooth.a2dp_offload.supported=false |
| 53 | |
Cheney Ni | ab92016 | 2021-06-28 13:47:54 +0800 | [diff] [blame] | 54 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 55 | persist.bluetooth.a2dp_aac.vbr_supported=true |
| 56 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 57 | # NFC |
| 58 | PRODUCT_COPY_FILES += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame^] | 59 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ |
| 60 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ |
| 61 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ |
| 62 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ |
| 63 | frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ |
| 64 | frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ |
| 65 | device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \ |
| 66 | device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf |
| 67 | |
| 68 | PRODUCT_PACKAGES += \ |
| 69 | NfcNci \ |
| 70 | Tag \ |
| 71 | android.hardware.nfc@1.2-service.st |
| 72 | |
| 73 | DEVICE_MANIFEST_FILE += \ |
| 74 | device/google/raviole/nfc/manifest_nfc.xml |
Benjamin Schwartz | c798cb3 | 2021-03-18 17:55:40 -0700 | [diff] [blame] | 75 | |
| 76 | # PowerStats HAL |
| 77 | PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/whitefin |
Robin Peng | 6e4640b | 2021-06-01 18:03:27 +0800 | [diff] [blame] | 78 | |
| 79 | # Trusty liboemcrypto.so |
| 80 | PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts |
jonerlin | 972d2c2 | 2021-06-29 16:36:29 +0800 | [diff] [blame] | 81 | |
| 82 | # Bluetooth HAL |
| 83 | PRODUCT_PACKAGES += \ |
| 84 | android.hardware.bluetooth@1.1-service.bcmbtlinux \ |
| 85 | bt_vendor.conf |