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-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) |
linpeter | f3d8bf6 | 2021-03-17 09:27:12 +0800 | [diff] [blame] | 23 | $(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] | 24 | |
| 25 | DEVICE_PACKAGE_OVERLAYS += device/google/raviole/whitefin/overlay |
| 26 | |
| 27 | include device/google/gs101/device-common.mk |
| 28 | include hardware/google/pixel/vibrator/drv2624/device.mk |
| 29 | include device/google/raviole/audio/whitefin/audio-tables.mk |
Adam Shih | 6e05ed0 | 2022-08-16 13:56:53 +0800 | [diff] [blame] | 30 | include device/google/gs-common/bcmbt/bluetooth.mk |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 31 | |
Krzysztof Kosiński | 6165da4 | 2022-09-13 01:56:24 +0000 | [diff] [blame] | 32 | # go/lyric-soong-variables |
| 33 | $(call soong_config_set,lyric,camera_hardware,slider) |
Sasha Smundak | fbe1c66 | 2021-12-15 09:17:53 -0800 | [diff] [blame] | 34 | $(call soong_config_set,lyric,tuning_product,slider) |
| 35 | $(call soong_config_set,google3a_config,target_device,slider) |
Krzysztof Kosiński | 6116292 | 2021-11-04 11:34:21 -0700 | [diff] [blame] | 36 | |
Jack Wu | 6f51c2a | 2021-08-31 21:45:53 +0800 | [diff] [blame] | 37 | # WirelessCharger |
| 38 | DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml |
| 39 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 40 | # Init files |
| 41 | PRODUCT_COPY_FILES += \ |
| 42 | device/google/raviole/conf/init.whitefin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.whitefin.rc |
| 43 | |
| 44 | # Recovery files |
| 45 | PRODUCT_COPY_FILES += \ |
| 46 | device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.whitefin.rc |
| 47 | |
| 48 | # insmod files |
| 49 | PRODUCT_COPY_FILES += \ |
| 50 | device/google/raviole/init.insmod.whitefin.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.whitefin.cfg |
| 51 | |
| 52 | # Thermal Config |
| 53 | PRODUCT_COPY_FILES += \ |
| 54 | device/google/raviole/thermal_info_config_whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json |
| 55 | |
| 56 | # Camera |
| 57 | PRODUCT_COPY_FILES += \ |
| 58 | device/google/raviole/media_profiles_whitefin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml |
| 59 | |
| 60 | # Bluetooth |
| 61 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 62 | ro.bluetooth.a2dp_offload.supported=false |
| 63 | |
Cheney Ni | ab92016 | 2021-06-28 13:47:54 +0800 | [diff] [blame] | 64 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 65 | persist.bluetooth.a2dp_aac.vbr_supported=true |
| 66 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 67 | # NFC |
| 68 | PRODUCT_COPY_FILES += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 69 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ |
| 70 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ |
| 71 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ |
| 72 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ |
| 73 | frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ |
| 74 | frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ |
| 75 | device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \ |
| 76 | device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf |
| 77 | |
| 78 | PRODUCT_PACKAGES += \ |
| 79 | NfcNci \ |
| 80 | Tag \ |
George Chang | 91a4096 | 2022-03-30 22:13:09 +0800 | [diff] [blame] | 81 | android.hardware.nfc-service.st |
Benjamin Schwartz | c798cb3 | 2021-03-18 17:55:40 -0700 | [diff] [blame] | 82 | |
| 83 | # PowerStats HAL |
| 84 | PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/whitefin |
Robin Peng | 6e4640b | 2021-06-01 18:03:27 +0800 | [diff] [blame] | 85 | |
| 86 | # Trusty liboemcrypto.so |
| 87 | PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts |
jonerlin | 972d2c2 | 2021-06-29 16:36:29 +0800 | [diff] [blame] | 88 | |
Mars Lin | eabb3bf | 2022-06-08 22:11:37 +0800 | [diff] [blame] | 89 | # tetheroffload HAL |
| 90 | PRODUCT_PACKAGES += \ |
| 91 | vendor.samsung_slsi.hardware.tetheroffload@1.1-service |
| 92 | |
Wei Wang | 63fe745 | 2022-01-28 22:07:30 -0800 | [diff] [blame] | 93 | # Power HAL config |
| 94 | PRODUCT_COPY_FILES += \ |
| 95 | device/google/raviole/powerhint-whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json |
| 96 | |
Alex Hong | b803358 | 2021-11-17 19:10:08 +0800 | [diff] [blame] | 97 | # This device is shipped with 31 (Android S) |
| 98 | PRODUCT_SHIPPING_API_LEVEL := 31 |
Ben Murdoch | b5b4257 | 2022-03-10 10:44:27 +0000 | [diff] [blame] | 99 | |
| 100 | # Device features |
| 101 | PRODUCT_COPY_FILES += \ |
| 102 | frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml |
Adam Shih | 7845ccf | 2022-10-21 14:39:46 +0800 | [diff] [blame^] | 103 | |
| 104 | # Location |
| 105 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 106 | PRODUCT_COPY_FILES += \ |
| 107 | device/google/raviole/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml |
| 108 | else |
| 109 | PRODUCT_COPY_FILES += \ |
| 110 | device/google/raviole/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml |
| 111 | endif |
| 112 | |