1# 2# Copyright (C) 2021 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# Restrict the visibility of Android.bp files to improve build analysis time 18$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk) 19 20# Keeps flexibility for kasan and ufs builds 21TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_CHEETAH_DIR) 22TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_CHEETAH_DIR)/kernel-headers 23 24$(call inherit-product-if-exists, vendor/google_devices/pantah/prebuilts/device-vendor-ravenclaw.mk) 25$(call inherit-product-if-exists, vendor/google_devices/gs201/prebuilts/device-vendor.mk) 26$(call inherit-product-if-exists, vendor/google_devices/gs201/proprietary/device-vendor.mk) 27$(call inherit-product-if-exists, vendor/google_devices/pantah/proprietary/ravenclaw/device-vendor-ravenclaw.mk) 28 29include device/google/gs201/device-shipping-common.mk 30include device/google/pantah/audio/ravenclaw/audio-tables.mk 31include hardware/google/pixel/vibrator/cs40l26/device.mk 32include device/google/gs-common/bcmbt/bluetooth.mk 33include device/google/gs-common/touch/lsi/lsi.mk 34 35ifeq ($(filter factory_ravenclaw, $(TARGET_PRODUCT)),) 36include device/google/gs101/uwb/uwb.mk 37include device/google/pantah/uwb/uwb_calibration.mk 38endif 39 40# go/lyric-soong-variables 41$(call soong_config_set,lyric,camera_hardware,ravenclaw) 42$(call soong_config_set,lyric,tuning_product,cloudripper) 43$(call soong_config_set,google3a_config,target_device,cloudripper) 44 45# Init files 46PRODUCT_COPY_FILES += \ 47 device/google/pantah/conf/init.ravenclaw.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ravenclaw.rc 48 49# Recovery files 50PRODUCT_COPY_FILES += \ 51 device/google/pantah/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.ravenclaw.rc 52 53# insmod files 54PRODUCT_COPY_FILES += \ 55 device/google/pantah/init.insmod.ravenclaw.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.ravenclaw.cfg 56 57# Camera 58PRODUCT_COPY_FILES += \ 59 device/google/pantah/media_profiles_ravenclaw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml 60 61# NFC 62PRODUCT_COPY_FILES += \ 63 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ 64 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ 65 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ 66 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ 67 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ 68 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \ 69 device/google/pantah/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \ 70 device/google/pantah/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf 71 72PRODUCT_PACKAGES += \ 73 $(RELEASE_PACKAGE_NFC_STACK) \ 74 Tag \ 75 android.hardware.nfc-service.st 76 77# SecureElement 78PRODUCT_PACKAGES += \ 79 android.hardware.secure_element@1.2-service-gto \ 80 android.hardware.secure_element@1.2-service-gto-ese2 81 82PRODUCT_COPY_FILES += \ 83 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \ 84 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ 85 device/google/pantah/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \ 86 device/google/pantah/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf 87 88DEVICE_MANIFEST_FILE += \ 89 device/google/pantah/nfc/manifest_se.xml 90 91# Thermal Config 92PRODUCT_COPY_FILES += \ 93 device/google/pantah/thermal_info_config_ravenclaw.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ 94 device/google/pantah/thermal_info_config_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json 95 96# Power HAL config 97PRODUCT_COPY_FILES += \ 98 device/google/pantah/powerhint-ravenclaw.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json 99 100# Bluetooth HAL 101PRODUCT_COPY_FILES += \ 102 device/google/pantah/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf 103PRODUCT_PROPERTY_OVERRIDES += \ 104 ro.bluetooth.a2dp_offload.supported=true \ 105 persist.bluetooth.a2dp_offload.disabled=false \ 106 persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus 107PRODUCT_PRODUCT_PROPERTIES += \ 108 persist.bluetooth.firmware.selection=BCM.hcd 109# default BDADDR for EVB only 110PRODUCT_PROPERTY_OVERRIDES += \ 111 ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55" 112 113# Keymaster HAL 114#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service 115 116# Gatekeeper HAL 117#LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= android.hardware.gatekeeper@1.0-service.software 118 119 120# Gatekeeper 121# PRODUCT_PACKAGES += \ 122# android.hardware.gatekeeper@1.0-service.software 123 124# Keymint replaces Keymaster 125# PRODUCT_PACKAGES += \ 126# android.hardware.security.keymint-service 127 128# Keymaster 129#PRODUCT_PACKAGES += \ 130# android.hardware.keymaster@4.0-impl \ 131# android.hardware.keymaster@4.0-service 132 133#PRODUCT_PACKAGES += android.hardware.keymaster@4.0-service.remote 134#PRODUCT_PACKAGES += android.hardware.keymaster@4.1-service.remote 135#LOCAL_KEYMASTER_PRODUCT_PACKAGE := android.hardware.keymaster@4.1-service 136#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service 137 138# PRODUCT_PROPERTY_OVERRIDES += \ 139# ro.hardware.keystore_desede=true \ 140# ro.hardware.keystore=software \ 141# ro.hardware.gatekeeper=software 142 143# PowerStats HAL 144PRODUCT_SOONG_NAMESPACES += \ 145 device/google/pantah/powerstats/ravenclaw 146 147# Fingerprint HAL 148GOODIX_CONFIG_BUILD_VERSION := g6_trusty 149$(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_common.mk) 150ifeq ($(filter factory%, $(TARGET_PRODUCT)),) 151$(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_shipping.mk) 152else 153$(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_factory.mk) 154endif 155 156# WiFi Overlay 157PRODUCT_PACKAGES += \ 158 WifiOverlay2022_C10 \ 159 PixelWifiOverlay2022_C10 160 161PRODUCT_SOONG_NAMESPACES += device/google/pantah/cheetah/ 162 163# Trusty liboemcrypto.so 164PRODUCT_SOONG_NAMESPACES += vendor/google_devices/pantah/prebuilts 165 166# Location 167ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 168 PRODUCT_COPY_FILES += \ 169 device/google/pantah/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \ 170 device/google/pantah/location/lhd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \ 171 device/google/pantah/location/scd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf 172else 173 PRODUCT_COPY_FILES += \ 174 device/google/pantah/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \ 175 device/google/pantah/location/lhd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \ 176 device/google/pantah/location/scd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf 177endif 178 179# Set zram size 180PRODUCT_VENDOR_PROPERTIES += \ 181 vendor.zram.size=3g 182 183# Device features 184PRODUCT_COPY_FILES += \ 185 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml 186