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