87 lines
3.6 KiB
Makefile
87 lines
3.6 KiB
Makefile
#
|
|
# Copyright 2018 The Android Open Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
# Inherit the fusion-common definitions
|
|
$(call inherit-product, device/xiaomi/sdm660-common/platform.mk)
|
|
|
|
# setup dalvik vm configs
|
|
$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
|
|
|
|
# setup HWUI configs
|
|
$(call inherit-product, frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk)
|
|
|
|
DEVICE_PATH := device/xiaomi/clover
|
|
|
|
# Overlays
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
|
$(DEVICE_PATH)/overlay
|
|
|
|
# These are the hardware-specific features
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/tablet_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tablet_core_hardware.xml
|
|
|
|
# Audio
|
|
PRODUCT_COPY_FILES += \
|
|
$(DEVICE_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
|
|
$(DEVICE_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
|
|
$(DEVICE_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
|
|
$(DEVICE_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
|
$(DEVICE_PATH)/audio/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
|
|
$(DEVICE_PATH)/audio/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
|
|
$(DEVICE_PATH)/audio/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml \
|
|
$(DEVICE_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
|
|
$(DEVICE_PATH)/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
|
|
$(DEVICE_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
|
|
|
|
# Init
|
|
PRODUCT_PACKAGES += \
|
|
libinit_clover
|
|
|
|
# IRSC
|
|
PRODUCT_COPY_FILES += \
|
|
$(DEVICE_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
|
|
|
|
# Keylayouts
|
|
PRODUCT_COPY_FILES += \
|
|
$(DEVICE_PATH)/keylayout/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl
|
|
|
|
# Lights
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.light@2.0-service.xiaomi_clover
|
|
|
|
# Media
|
|
PRODUCT_COPY_FILES += \
|
|
$(DEVICE_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
|
|
$(DEVICE_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
|
|
$(DEVICE_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml \
|
|
$(DEVICE_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
|
|
$(DEVICE_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \
|
|
$(DEVICE_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
|
|
|
|
# Device is a Tablet
|
|
PRODUCT_AAPT_CONFIG := normal large
|
|
PRODUCT_AAPT_PREF_CONFIG := hdpi
|
|
|
|
# Boot animation
|
|
TARGET_SCREEN_HEIGHT := 1920
|
|
TARGET_SCREEN_WIDTH := 1200
|
|
|
|
# Set those variables here to overwrite the inherited values.
|
|
PRODUCT_NAME := aosp_clover
|
|
PRODUCT_DEVICE := clover
|
|
PRODUCT_MODEL := Mi PAD 4 (AOSP)
|
|
PRODUCT_BRAND := Xiaomi
|
|
PRODUCT_MANUFACTURER := Xiaomi
|