173 lines
7.1 KiB
Makefile
173 lines
7.1 KiB
Makefile
#
|
|
# SPDX-FileCopyrightText: 2020 The Android Open-Source Project
|
|
# SPDX-FileCopyrightText: The LineageOS Project
|
|
# SPDX-FileCopyrightText: The Calyx Institute
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
ifdef RELEASE_GOOGLE_ORIOLE_RADIO_DIR
|
|
RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_ORIOLE_RADIO_DIR)
|
|
endif
|
|
RELEASE_GOOGLE_BOOTLOADER_ORIOLE_DIR ?= pdk# Keep this for pdk TODO: b/327119000
|
|
RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_ORIOLE_DIR)
|
|
$(call soong_config_set,raviole_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_ORIOLE_DIR))
|
|
|
|
TARGET_LINUX_KERNEL_VERSION := $(RELEASE_KERNEL_ORIOLE_VERSION)
|
|
TARGET_KERNEL_DIR := device/google/raviole-kernels/evolution
|
|
TARGET_BOARD_KERNEL_HEADERS := $(TARGET_KERNEL_DIR)/kernel-headers
|
|
TARGET_KERNEL_PLATFORM_SOURCE := google/gs-$(TARGET_LINUX_KERNEL_VERSION)
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += device/google/raviole/oriole/overlay
|
|
DEVICE_PACKAGE_OVERLAYS += device/google/raviole/oriole/overlay-lineage
|
|
DEVICE_PACKAGE_OVERLAYS += device/google/raviole/overlay-lineage
|
|
DEVICE_PACKAGE_OVERLAYS += device/google/raviole/$(DEVICE_CODENAME)/overlay-evolution
|
|
|
|
include device/google/gs101/device-shipping-common.mk
|
|
|
|
# Bluetooth
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.bluetooth.prebuilt.xml \
|
|
android.hardware.bluetooth_le.prebuilt.xml
|
|
|
|
# Recovery files
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.oriole.rc
|
|
|
|
# Thermal Config
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/raviole/thermal_info_config_oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
|
|
device/google/raviole/thermal_info_config_charge_oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json \
|
|
device/google/raviole/thermal_info_config_oriole_WHI_A.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_WHI_A.json
|
|
|
|
# Power HAL config
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/raviole/powerhint-oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json \
|
|
device/google/raviole/powerhint-oriole-mainline.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-mainline.json \
|
|
|
|
# Bluetooth
|
|
PRODUCT_PRODUCT_PROPERTIES += \
|
|
persist.bluetooth.a2dp_aac.vbr_supported=true \
|
|
persist.bluetooth.firmware.selection=BCM.hcd
|
|
|
|
# Bluetooth Tx power caps for oriole
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/raviole/bluetooth_power_limits_oriole.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \
|
|
device/google/raviole/bluetooth_power_limits_oriole_jp.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv \
|
|
device/google/raviole/bluetooth_power_limits_G9S9B_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G9S9B_US.csv \
|
|
device/google/raviole/bluetooth_power_limits_GB7N6_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB7N6_US.csv \
|
|
device/google/raviole/bluetooth_power_limits_G9S9B_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G9S9B_EU.csv \
|
|
device/google/raviole/bluetooth_power_limits_GB7N6_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB7N6_EU.csv
|
|
|
|
# Bluetooth HAL
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/raviole/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
|
|
|
|
# MIPI Coex Configs
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/raviole/radio/oriole_display_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/display_primary_mipi_coex_table.csv \
|
|
device/google/raviole/radio/oriole_camera_front_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_front_mipi_coex_table.csv \
|
|
device/google/raviole/radio/oriole_camera_rear_wide_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_rear_wide_mipi_coex_table.csv
|
|
|
|
# Camera
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/raviole/media_profiles_oriole.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
persist.vendor.camera.fixed_fps_range_boost=1
|
|
|
|
# Display Config
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/raviole/oriole/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb \
|
|
device/google/raviole/oriole/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb
|
|
|
|
# NFC
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
|
|
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml
|
|
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.nfc-service.st \
|
|
NfcOverlayOriole
|
|
|
|
# SecureElement
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.secure_element@1.2-service-gto \
|
|
android.hardware.secure_element@1.2-service-gto-ese2
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
|
|
frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
device/google/raviole
|
|
|
|
# Hide cutout overlays
|
|
PRODUCT_PACKAGES += \
|
|
NoCutoutOverlay \
|
|
AvoidAppsInCutoutOverlay
|
|
|
|
# Android DeviceAsWebcam specific overlay
|
|
PRODUCT_PACKAGES += \
|
|
DeviceAsWebcamOriole
|
|
|
|
# SKU specific RROs
|
|
PRODUCT_PACKAGES += \
|
|
SettingsOverlayGR1YH \
|
|
SettingsOverlayGB7N6 \
|
|
SettingsOverlayG9S9B
|
|
|
|
# This device is shipped with 31 (Android S)
|
|
PRODUCT_SHIPPING_API_LEVEL := 31
|
|
|
|
# Device features
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
|
|
|
|
# Disable AVF Remote Attestation
|
|
PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED := true
|
|
|
|
# ANGLE - Almost Native Graphics Layer Engine
|
|
PRODUCT_PACKAGES += \
|
|
ANGLE
|
|
|
|
# EUICC
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.telephony.euicc.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.hardware.telephony.euicc.xml
|
|
|
|
# Fingerprint
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
|
|
|
|
# GNSS
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.sensors-V2-ndk.vendor:64
|
|
|
|
# HBM
|
|
PRODUCT_PACKAGES += \
|
|
HbmSVManagerOverlay
|
|
|
|
# Init
|
|
PRODUCT_PACKAGES += \
|
|
init.recovery.oriole.touch.rc
|
|
|
|
# PowerShare
|
|
include hardware/google/pixel/powershare/device.mk
|
|
|
|
# Properties
|
|
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/product.prop
|
|
TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop
|
|
|
|
# Sensors
|
|
PRODUCT_PACKAGES += \
|
|
sensors.dynamic_sensor_hal
|
|
|
|
# VINTF
|
|
DEVICE_MANIFEST_FILE += \
|
|
$(DEVICE_PATH)/vintf/manifest.xml
|
|
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += \
|
|
$(DEVICE_PATH)/vintf/device_framework_matrix_product.xml
|