blob: 100a71553d2b5742a6c86cbaab38a09ef13ebe64 [file] [log] [blame]
Robin Pengcd374d82021-02-23 20:00:46 +08001#
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 Gyntherb0580002021-09-02 14:26:57 -070017TARGET_KERNEL_DIR ?= device/google/raviole-kernel
18TARGET_BOARD_KERNEL_HEADERS := device/google/raviole-kernel/kernel-headers
Robin Pengcd374d82021-02-23 20:00:46 +080019
20$(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-slider.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)
linpeterf3d8bf62021-03-17 09:27:12 +080023$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/slider/device-vendor-slider.mk)
Robin Pengcd374d82021-02-23 20:00:46 +080024
25DEVICE_PACKAGE_OVERLAYS += device/google/raviole/slider/overlay
26
27include device/google/gs101/device-common.mk
28include device/google/raviole/audio/slider/audio-tables.mk
29include hardware/google/pixel/vibrator/cs40l25/device.mk
Adam Shih6e05ed02022-08-16 13:56:53 +080030include device/google/gs-common/bcmbt/bluetooth.mk
Cheng Chang6fa07a42023-05-17 08:12:36 +000031include device/google/gs-common/gps/brcm/cbd_gps.mk
Adam Shih71274422022-11-28 14:12:20 +080032include device/google/gs-common/touch/stm/stm11.mk
Robin Pengcd374d82021-02-23 20:00:46 +080033
Krzysztof Kosiński6165da42022-09-13 01:56:24 +000034# go/lyric-soong-variables
35$(call soong_config_set,lyric,camera_hardware,slider)
Sasha Smundakfbe1c662021-12-15 09:17:53 -080036$(call soong_config_set,lyric,tuning_product,slider)
37$(call soong_config_set,google3a_config,target_device,slider)
Krzysztof Kosiński0fc38d22021-11-02 21:00:10 -070038
Robin Pengcd374d82021-02-23 20:00:46 +080039# Init files
40PRODUCT_COPY_FILES += \
41 device/google/raviole/conf/init.slider.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.slider.rc
42
43# Recovery files
44PRODUCT_COPY_FILES += \
45 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.slider.rc
46
47# insmod files
48PRODUCT_COPY_FILES += \
49 device/google/raviole/init.insmod.slider.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.slider.cfg
50
51# Thermal Config
52PRODUCT_COPY_FILES += \
53 device/google/raviole/thermal_info_config_slider.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
54
55# Camera
56PRODUCT_COPY_FILES += \
57 device/google/raviole/media_profiles_slider.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
58
59# Bluetooth
Cheney Niab920162021-06-28 13:47:54 +080060PRODUCT_PRODUCT_PROPERTIES += \
61 persist.bluetooth.a2dp_aac.vbr_supported=true
62
63# Bluetooth default BDADDR for EVB only
Robin Pengcd374d82021-02-23 20:00:46 +080064PRODUCT_PROPERTY_OVERRIDES += \
Cheney Niab920162021-06-28 13:47:54 +080065 ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
Robin Pengcd374d82021-02-23 20:00:46 +080066
67# SecureElement
68PRODUCT_PACKAGES += \
George Chang8933f1b2021-08-17 00:51:25 +080069 android.hardware.secure_element@1.2-service-gto
Robin Pengcd374d82021-02-23 20:00:46 +080070
71PRODUCT_COPY_FILES += \
George Chang8933f1b2021-08-17 00:51:25 +080072 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf
Robin Pengcd374d82021-02-23 20:00:46 +080073
Robin Pengcd374d82021-02-23 20:00:46 +080074# NFC
75PRODUCT_COPY_FILES += \
George Chang8933f1b2021-08-17 00:51:25 +080076 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
77 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
78 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
79 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
80 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
81 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
George Changd48ff142021-03-10 20:35:15 +080082 device/google/raviole/nfc/libnfc-hal-st-disable.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
83 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
84
George Chang8933f1b2021-08-17 00:51:25 +080085PRODUCT_PACKAGES += \
Roshan Piuscd3dd4d2023-12-01 19:19:56 +000086 $(RELEASE_PACKAGE_NFC_STACK) \
George Chang8933f1b2021-08-17 00:51:25 +080087 Tag \
George Chang91a40962022-03-30 22:13:09 +080088 android.hardware.nfc-service.st
George Chang8933f1b2021-08-17 00:51:25 +080089
90# SecureElement
91PRODUCT_PACKAGES += \
92 android.hardware.secure_element@1.2-service-gto
93
94PRODUCT_COPY_FILES += \
95 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
96 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
97 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
98 device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
99
Robin Pengcd374d82021-02-23 20:00:46 +0800100DEVICE_MANIFEST_FILE += \
George Chang8933f1b2021-08-17 00:51:25 +0800101 device/google/raviole/nfc/manifest_se.xml
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700102
103# PowerStats HAL
104PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/slider
Robin Peng6e4640b2021-06-01 18:03:27 +0800105
106# Trusty liboemcrypto.so
107PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
Cyan_Hsieh9926df82023-10-25 18:16:54 +0800108ifneq (,$(filter AP1%,$(RELEASE_PLATFORM_VERSION)))
109PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts/trusty/24Q1
Cyan_Hsieh2a16b702023-12-13 14:00:23 +0800110else ifneq (,$(filter AP2%,$(RELEASE_PLATFORM_VERSION)))
111PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts/trusty/24Q2
Cyan_Hsieh9926df82023-10-25 18:16:54 +0800112else
113PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts/trusty/trunk
114endif
jonerlin972d2c22021-06-29 16:36:29 +0800115
Mars Lineabb3bf2022-06-08 22:11:37 +0800116# tetheroffload HAL
117PRODUCT_PACKAGES += \
118 vendor.samsung_slsi.hardware.tetheroffload@1.1-service
119
Wei Wang63fe7452022-01-28 22:07:30 -0800120# Power HAL config
121PRODUCT_COPY_FILES += \
122 device/google/raviole/powerhint-slider.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
123
Alex Hongb8033582021-11-17 19:10:08 +0800124# This device is shipped with 31 (Android S)
125PRODUCT_SHIPPING_API_LEVEL := 31
Ben Murdochb5b42572022-03-10 10:44:27 +0000126
127# Device features
128PRODUCT_COPY_FILES += \
129 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
Adam Shih7845ccf2022-10-21 14:39:46 +0800130
131# Location
132ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
133 PRODUCT_COPY_FILES += \
134 device/google/raviole/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
135else
136 PRODUCT_COPY_FILES += \
137 device/google/raviole/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
138endif
139
Alice Wangc88d3362024-05-21 15:17:46 +0000140# Disable AVF Remote Attestation
141PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED := true