128 lines
5.4 KiB
Makefile
128 lines
5.4 KiB
Makefile
#
|
|
# Copyright (c) 2020 Rockchip Electronics Co., Ltd
|
|
#
|
|
|
|
PRODUCT_VENDOR_PROPERTIES += ro.soc.model=RK3588
|
|
|
|
# GPU Profiling
|
|
PRODUCT_VENDOR_PROPERTIES += graphics.gpu.profiler.support=true
|
|
|
|
PRODUCT_PACKAGES += \
|
|
displayd \
|
|
libion
|
|
|
|
PRODUCT_PACKAGES += \
|
|
RockchipPinnerService
|
|
|
|
PRODUCT_PACKAGES += \
|
|
candump \
|
|
cansend
|
|
|
|
# Disable partial updates
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
debug.hwui.use_partial_updates=false
|
|
|
|
# hdcp2
|
|
PRODUCT_PACKAGES += \
|
|
hdcp2_tx_rx
|
|
|
|
# enable this for support ext4 with data partion
|
|
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
# This ensures the needed build tools are available.
|
|
# TODO: make non-linux builds happy with external/f2fs-tool; system/extras/f2fs_utils
|
|
ifeq ($(HOST_OS),linux)
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
|
endif
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
vendor/rockchip/common/bin/$(TARGET_ARCH)/busybox:recovery/root/sbin/busybox
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/init.rk3588.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.rk3588.rc \
|
|
$(LOCAL_PATH)/wake_lock_filter.xml:system/etc/wake_lock_filter.xml \
|
|
$(LOCAL_PATH)/package_performance.xml:$(TARGET_COPY_OUT_ODM)/etc/package_performance.xml \
|
|
$(TARGET_DEVICE_DIR)/media_profiles_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml\
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml
|
|
|
|
# copy xml files for Vulkan features.
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
|
|
frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-0.xml \
|
|
frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-1.xml \
|
|
frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_0_3.xml \
|
|
frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \
|
|
frameworks/native/data/etc/android.hardware.vulkan.version-1_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_3.xml \
|
|
frameworks/native/data/etc/android.software.vulkan.deqp.level-2019-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level-2019-03-01.xml \
|
|
frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level-2020-03-01.xml \
|
|
frameworks/native/data/etc/android.software.vulkan.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level-2021-03-01.xml \
|
|
frameworks/native/data/etc/android.software.vulkan.deqp.level-2022-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level-2022-03-01.xml
|
|
|
|
# Get the long list of APNs
|
|
PRODUCT_COPY_FILES += vendor/rockchip/common/phone/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
|
PRODUCT_COPY_FILES += vendor/rockchip/common/phone/etc/spn-conf.xml:system/etc/spn-conf.xml
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.product.ota.host = 192.168.1.1:8888 \
|
|
ro.vendor.sdkversion = $(CURRENT_SDK_VERSION) \
|
|
vendor.gralloc.disable_afbc = 0
|
|
|
|
ifneq ($(BOARD_CAMERA360_SUPPORT),true)
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/public.libraries.txt:vendor/etc/public.libraries.txt
|
|
endif
|
|
|
|
USE_PRODUCT_HDCP2_HDMI_FW := $(shell test -f $(LOCAL_PATH)/hdcp2_hdmi.fw && echo true)
|
|
ifeq ($(strip $(USE_PRODUCT_HDCP2_HDMI_FW)), true)
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/hdcp2_hdmi.fw:vendor/firmware/hdcp2_hdmi.fw
|
|
endif
|
|
|
|
#
|
|
# add Rockchip properties here
|
|
#
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.ril.ecclist=112,911 \
|
|
ro.opengles.version=196610 \
|
|
wifi.interface=wlan0 \
|
|
ro.audio.monitorOrientation=true \
|
|
debug.nfc.fw_download=false \
|
|
debug.nfc.se=false \
|
|
vendor.hwc.compose_policy=1 \
|
|
sys.wallpaper.rgb565=0 \
|
|
sf.power.control=2073600 \
|
|
sys.rkadb.root=0 \
|
|
ro.sf.fakerotation=false \
|
|
ro.tether.denied=false \
|
|
sys.resolution.changed=false \
|
|
ro.default.size=100 \
|
|
ro.product.usbfactory=rockchip_usb \
|
|
wifi.supplicant_scan_interval=15 \
|
|
ro.factory.tool=0 \
|
|
ro.kernel.android.checkjni=0 \
|
|
ro.build.shutdown_timeout=6 \
|
|
persist.enable_task_snapshots=false \
|
|
ro.vendor.frameratelock=true
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += ro.wifi.sleep.power.down=true
|
|
PRODUCT_PROPERTY_OVERRIDES += persist.wifi.sleep.delay.ms=0
|
|
PRODUCT_PROPERTY_OVERRIDES += persist.bt.power.down=true
|
|
PRODUCT_PROPERTY_OVERRIDES += sys.mouse.presentation=1
|
|
PRODUCT_PROPERTY_OVERRIDES += service.adb.tcp.port=5555
|
|
PRODUCT_PROPERTY_OVERRIDES += vendor.hwc.compose_policy=1
|
|
|
|
#
|
|
# PRODUCT_PROPERTY_OVERRIDES += persist.sys.hdmiinmode="2"
|
|
#
|
|
# PRODUCT_PACKAGES += rkCamera2
|
|
#
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.factory.storage_suppexfat=true
|
|
|
|
PRODUCT_PACKAGES += \
|
|
fsck.exfat \
|
|
mkfs.exfat \
|
|
tune.exfat \
|
|
dump.exfat
|