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 |
Cheng Chang | 6fa07a4 | 2023-05-17 08:12:36 +0000 | [diff] [blame] | 31 | include device/google/gs-common/gps/brcm/cbd_gps.mk |
Adam Shih | df8201d | 2022-11-30 09:50:39 +0800 | [diff] [blame] | 32 | include device/google/gs-common/touch/lsi/lsi.mk |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 33 | |
Ken Yang | 116d3c9 | 2022-12-10 14:16:50 +0000 | [diff] [blame] | 34 | # wireless_charger HAL service needs to be included specially due to no raviole-sepolicy folder |
| 35 | PRODUCT_PACKAGES += vendor.google.wireless_charger-default |
| 36 | DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs-common/wireless_charger/compatibility_matrix.xml |
| 37 | |
Krzysztof Kosiński | 6165da4 | 2022-09-13 01:56:24 +0000 | [diff] [blame] | 38 | # go/lyric-soong-variables |
| 39 | $(call soong_config_set,lyric,camera_hardware,slider) |
Sasha Smundak | fbe1c66 | 2021-12-15 09:17:53 -0800 | [diff] [blame] | 40 | $(call soong_config_set,lyric,tuning_product,slider) |
| 41 | $(call soong_config_set,google3a_config,target_device,slider) |
Krzysztof Kosiński | 6116292 | 2021-11-04 11:34:21 -0700 | [diff] [blame] | 42 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 43 | # Init files |
| 44 | PRODUCT_COPY_FILES += \ |
| 45 | device/google/raviole/conf/init.whitefin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.whitefin.rc |
| 46 | |
| 47 | # Recovery files |
| 48 | PRODUCT_COPY_FILES += \ |
| 49 | device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.whitefin.rc |
| 50 | |
| 51 | # insmod files |
| 52 | PRODUCT_COPY_FILES += \ |
| 53 | device/google/raviole/init.insmod.whitefin.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.whitefin.cfg |
| 54 | |
| 55 | # Thermal Config |
| 56 | PRODUCT_COPY_FILES += \ |
| 57 | device/google/raviole/thermal_info_config_whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json |
| 58 | |
| 59 | # Camera |
| 60 | PRODUCT_COPY_FILES += \ |
| 61 | device/google/raviole/media_profiles_whitefin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml |
| 62 | |
| 63 | # Bluetooth |
| 64 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 65 | ro.bluetooth.a2dp_offload.supported=false |
| 66 | |
Cheney Ni | ab92016 | 2021-06-28 13:47:54 +0800 | [diff] [blame] | 67 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 68 | persist.bluetooth.a2dp_aac.vbr_supported=true |
| 69 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 70 | # NFC |
| 71 | PRODUCT_COPY_FILES += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 72 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ |
| 73 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ |
| 74 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ |
| 75 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ |
| 76 | frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ |
| 77 | frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ |
| 78 | device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \ |
| 79 | device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf |
| 80 | |
| 81 | PRODUCT_PACKAGES += \ |
Roshan Pius | cd3dd4d | 2023-12-01 19:19:56 +0000 | [diff] [blame] | 82 | $(RELEASE_PACKAGE_NFC_STACK) \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 83 | Tag \ |
George Chang | 91a4096 | 2022-03-30 22:13:09 +0800 | [diff] [blame] | 84 | android.hardware.nfc-service.st |
Benjamin Schwartz | c798cb3 | 2021-03-18 17:55:40 -0700 | [diff] [blame] | 85 | |
| 86 | # PowerStats HAL |
| 87 | PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/whitefin |
Robin Peng | 6e4640b | 2021-06-01 18:03:27 +0800 | [diff] [blame] | 88 | |
| 89 | # Trusty liboemcrypto.so |
| 90 | PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts |
Cyan_Hsieh | 9926df8 | 2023-10-25 18:16:54 +0800 | [diff] [blame] | 91 | ifneq (,$(filter AP1%,$(RELEASE_PLATFORM_VERSION))) |
| 92 | PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts/trusty/24Q1 |
Cyan_Hsieh | 2a16b70 | 2023-12-13 14:00:23 +0800 | [diff] [blame] | 93 | else ifneq (,$(filter AP2%,$(RELEASE_PLATFORM_VERSION))) |
| 94 | PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts/trusty/24Q2 |
Cyan_Hsieh | 9926df8 | 2023-10-25 18:16:54 +0800 | [diff] [blame] | 95 | else |
| 96 | PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts/trusty/trunk |
| 97 | endif |
jonerlin | 972d2c2 | 2021-06-29 16:36:29 +0800 | [diff] [blame] | 98 | |
Mars Lin | eabb3bf | 2022-06-08 22:11:37 +0800 | [diff] [blame] | 99 | # tetheroffload HAL |
| 100 | PRODUCT_PACKAGES += \ |
| 101 | vendor.samsung_slsi.hardware.tetheroffload@1.1-service |
| 102 | |
Wei Wang | 63fe745 | 2022-01-28 22:07:30 -0800 | [diff] [blame] | 103 | # Power HAL config |
| 104 | PRODUCT_COPY_FILES += \ |
| 105 | device/google/raviole/powerhint-whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json |
| 106 | |
Alex Hong | b803358 | 2021-11-17 19:10:08 +0800 | [diff] [blame] | 107 | # This device is shipped with 31 (Android S) |
| 108 | PRODUCT_SHIPPING_API_LEVEL := 31 |
Ben Murdoch | b5b4257 | 2022-03-10 10:44:27 +0000 | [diff] [blame] | 109 | |
| 110 | # Device features |
| 111 | PRODUCT_COPY_FILES += \ |
| 112 | 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] | 113 | |
| 114 | # Location |
| 115 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 116 | PRODUCT_COPY_FILES += \ |
| 117 | device/google/raviole/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml |
| 118 | else |
| 119 | PRODUCT_COPY_FILES += \ |
| 120 | device/google/raviole/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml |
| 121 | endif |
| 122 | |
Alice Wang | c88d336 | 2024-05-21 15:17:46 +0000 | [diff] [blame^] | 123 | # Disable AVF Remote Attestation |
| 124 | PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED := true |