• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17TARGET_KERNEL_DIR ?= device/google/raviole-kernel
18TARGET_BOARD_KERNEL_HEADERS := device/google/raviole-kernel/kernel-headers
19
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)
23$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/slider/device-vendor-slider.mk)
24
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
30include device/google/gs-common/bcmbt/bluetooth.mk
31include device/google/gs-common/gps/brcm/cbd_gps.mk
32include device/google/gs-common/touch/stm/stm11.mk
33
34# go/lyric-soong-variables
35$(call soong_config_set,lyric,camera_hardware,slider)
36$(call soong_config_set,lyric,tuning_product,slider)
37$(call soong_config_set,google3a_config,target_device,slider)
38
39# 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
60PRODUCT_PRODUCT_PROPERTIES += \
61    persist.bluetooth.a2dp_aac.vbr_supported=true
62
63# Bluetooth default BDADDR for EVB only
64PRODUCT_PROPERTY_OVERRIDES += \
65    ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
66
67# SecureElement
68PRODUCT_PACKAGES += \
69    android.hardware.secure_element@1.2-service-gto
70
71PRODUCT_COPY_FILES += \
72    device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf
73
74# NFC
75PRODUCT_COPY_FILES += \
76	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 \
82	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
85PRODUCT_PACKAGES += \
86	NfcNci \
87	Tag \
88	android.hardware.nfc-service.st
89
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
100DEVICE_MANIFEST_FILE += \
101	device/google/raviole/nfc/manifest_se.xml
102
103# PowerStats HAL
104PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/slider
105
106# Trusty liboemcrypto.so
107PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
108
109# tetheroffload HAL
110PRODUCT_PACKAGES += \
111	vendor.samsung_slsi.hardware.tetheroffload@1.1-service
112
113# Power HAL config
114PRODUCT_COPY_FILES += \
115	device/google/raviole/powerhint-slider.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
116
117# This device is shipped with 31 (Android S)
118PRODUCT_SHIPPING_API_LEVEL := 31
119
120# Device features
121PRODUCT_COPY_FILES += \
122    frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
123
124# Location
125ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
126        PRODUCT_COPY_FILES += \
127		device/google/raviole/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
128else
129        PRODUCT_COPY_FILES += \
130		device/google/raviole/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
131endif
132
133