You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
4.9 KiB
120 lines
4.9 KiB
#
|
|
# 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
|
|
|
|
# Disable partial updates
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
debug.hwui.use_partial_updates=false
|
|
|
|
BOARD_SEPOLICY_DIRS += vendor/rockchip/hardware/interfaces/neuralnetworks/1.0/default/sepolicy
|
|
PRODUCT_PACKAGES += \
|
|
public.libraries-rockchip \
|
|
librknn_api_android \
|
|
librknnhal_bridge.rockchip \
|
|
rockchip.hardware.neuralnetworks@1.0-impl \
|
|
rockchip.hardware.neuralnetworks@1.0-service \
|
|
rknn_server \
|
|
hdcp2_tx_rx
|
|
|
|
#$(call inherit-product-if-exists, vendor/rockchip/common/npu/npu.mk)
|
|
|
|
#BOARD_SEPOLICY_DIRS += device/rockchip/rk3588/sepolicy_vendor
|
|
# enable this for support f2fs with data partion
|
|
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs
|
|
|
|
# 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 += \
|
|
vendor/rockchip/common/bin/$(TARGET_ARCH)/sfdisk:recovery/root/sbin/sfdisk
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
vendor/rockchip/common/bin/$(TARGET_ARCH)/parted:recovery/root/sbin/parted
|
|
|
|
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.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
|
|
|
|
# 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
|
|
|
|
# Use FUSE passthrough
|
|
PRODUCT_PRODUCT_PROPERTIES += \
|
|
persist.sys.fuse.passthrough.enable=true
|
|
|
|
#
|
|
# 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
|