blob: 41a969c6fae38b46f7acc462bd7b57580bcf8484 [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
Pindar Yang6fd62fe2024-08-29 11:58:09 +000017RELEASE_GOOGLE_BOOTLOADER_ORIOLE_DIR ?= pdk# Keep this for pdk TODO: b/327119000
18RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_ORIOLE_DIR)
19$(call soong_config_set,raviole_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_ORIOLE_DIR))
20
Cyan_Hsiehc55ff342024-04-02 16:38:08 +080021# Keeps flexibility for kasan and ufs builds
22TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_ORIOLE_DIR)
23TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_ORIOLE_DIR)/kernel-headers
Robin Pengcd374d82021-02-23 20:00:46 +080024
25$(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-whitefin.mk)
26$(call inherit-product-if-exists, vendor/google_devices/gs101/prebuilts/device-vendor.mk)
27$(call inherit-product-if-exists, vendor/google_devices/gs101/proprietary/device-vendor.mk)
linpeterf3d8bf62021-03-17 09:27:12 +080028$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/whitefin/device-vendor-whitefin.mk)
Robin Pengcd374d82021-02-23 20:00:46 +080029
30DEVICE_PACKAGE_OVERLAYS += device/google/raviole/whitefin/overlay
31
32include device/google/gs101/device-common.mk
Robin Pengcd374d82021-02-23 20:00:46 +080033include device/google/raviole/audio/whitefin/audio-tables.mk
Adam Shih6e05ed02022-08-16 13:56:53 +080034include device/google/gs-common/bcmbt/bluetooth.mk
Cheng Chang6fa07a42023-05-17 08:12:36 +000035include device/google/gs-common/gps/brcm/cbd_gps.mk
Adam Shihdf8201d2022-11-30 09:50:39 +080036include device/google/gs-common/touch/lsi/lsi.mk
Robin Pengcd374d82021-02-23 20:00:46 +080037
Ken Yang116d3c92022-12-10 14:16:50 +000038# wireless_charger HAL service needs to be included specially due to no raviole-sepolicy folder
39PRODUCT_PACKAGES += vendor.google.wireless_charger-default
40DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs-common/wireless_charger/compatibility_matrix.xml
41
Krzysztof Kosiński6165da42022-09-13 01:56:24 +000042# go/lyric-soong-variables
43$(call soong_config_set,lyric,camera_hardware,slider)
Sasha Smundakfbe1c662021-12-15 09:17:53 -080044$(call soong_config_set,lyric,tuning_product,slider)
45$(call soong_config_set,google3a_config,target_device,slider)
Krzysztof Kosiński61162922021-11-04 11:34:21 -070046
Robin Pengcd374d82021-02-23 20:00:46 +080047# Init files
48PRODUCT_COPY_FILES += \
49 device/google/raviole/conf/init.whitefin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.whitefin.rc
50
51# Recovery files
52PRODUCT_COPY_FILES += \
53 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.whitefin.rc
54
Brian Norris1ea54292024-09-26 12:18:13 -070055# insmod files. Kernel 5.10 prebuilts don't provide these yet, so provide our
56# own copy if they're not in the prebuilts.
57# TODO(b/369686096): drop this when 5.10 is gone.
58ifeq ($(wildcard $(TARGET_KERNEL_DIR)/init.insmod.*.cfg),)
Robin Pengcd374d82021-02-23 20:00:46 +080059PRODUCT_COPY_FILES += \
Brian Norris1ea54292024-09-26 12:18:13 -070060 device/google/raviole/init.insmod.whitefin.cfg:$(TARGET_COPY_OUT_VENDOR_DLKM)/etc/init.insmod.whitefin.cfg
61endif
Robin Pengcd374d82021-02-23 20:00:46 +080062
63# Thermal Config
64PRODUCT_COPY_FILES += \
65 device/google/raviole/thermal_info_config_whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
66
67# Camera
68PRODUCT_COPY_FILES += \
69 device/google/raviole/media_profiles_whitefin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
70
71# Bluetooth
72PRODUCT_PROPERTY_OVERRIDES += \
73 ro.bluetooth.a2dp_offload.supported=false
74
Cheney Niab920162021-06-28 13:47:54 +080075PRODUCT_PRODUCT_PROPERTIES += \
76 persist.bluetooth.a2dp_aac.vbr_supported=true
77
Robin Pengcd374d82021-02-23 20:00:46 +080078# NFC
79PRODUCT_COPY_FILES += \
George Chang8933f1b2021-08-17 00:51:25 +080080 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
81 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
82 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
83 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
84 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
85 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
86 device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
87 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
88
89PRODUCT_PACKAGES += \
Roshan Piuscd3dd4d2023-12-01 19:19:56 +000090 $(RELEASE_PACKAGE_NFC_STACK) \
George Chang8933f1b2021-08-17 00:51:25 +080091 Tag \
George Chang91a40962022-03-30 22:13:09 +080092 android.hardware.nfc-service.st
Benjamin Schwartzc798cb32021-03-18 17:55:40 -070093
Eileen Lai013069b2024-10-09 08:13:38 +000094# Shared Modem Platform
95SHARED_MODEM_PLATFORM_VENDOR := lassen
96
97# Shared Modem Platform
98include device/google/gs-common/modem/shared_modem_platform/shared_modem_platform.mk
Jim Tangcf891d22024-10-04 15:30:30 +080099
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700100# PowerStats HAL
101PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/whitefin
Robin Peng6e4640b2021-06-01 18:03:27 +0800102
103# Trusty liboemcrypto.so
104PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
jonerlin972d2c22021-06-29 16:36:29 +0800105
Mars Lineabb3bf2022-06-08 22:11:37 +0800106# tetheroffload HAL
107PRODUCT_PACKAGES += \
108 vendor.samsung_slsi.hardware.tetheroffload@1.1-service
109
Wei Wang63fe7452022-01-28 22:07:30 -0800110# Power HAL config
111PRODUCT_COPY_FILES += \
112 device/google/raviole/powerhint-whitefin.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
113
Alex Hongb8033582021-11-17 19:10:08 +0800114# This device is shipped with 31 (Android S)
115PRODUCT_SHIPPING_API_LEVEL := 31
Ben Murdochb5b42572022-03-10 10:44:27 +0000116
117# Device features
118PRODUCT_COPY_FILES += \
119 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 +0800120
121# Location
122ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
123 PRODUCT_COPY_FILES += \
124 device/google/raviole/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
125else
126 PRODUCT_COPY_FILES += \
127 device/google/raviole/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
128endif
129
Alice Wangc88d3362024-05-21 15:17:46 +0000130# Disable AVF Remote Attestation
131PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED := true