android_device_allwinner-full/tulip-common/tulip-common.mk
2017-04-27 13:26:25 +02:00

134 lines
4.5 KiB
Makefile
Executable file

# inherit common.mk
$(call inherit-product, device/softwinner/common/common.mk)
PRODUCT_PACKAGES += \
lights.tulip \
hwcomposer.tulip \
camera.tulip
PRODUCT_PACKAGES += \
libion \
setmacaddr \
sunxi-nand-part
# add for bluetooth addr
PRODUCT_PROPERTY_OVERRIDES += \
ro.bt.bdaddr_path=/data/btaddr.txt
# audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.usb.default \
audio.r_submix.default \
audio.primary.tulip \
libAwSurround
PRODUCT_PACKAGES +=\
charger_res_images \
charger
# Set zygote config
# PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote64_32
# PRODUCT_COPY_FILES += system/core/rootdir/init.zygote64_32.rc:root/init.zygote64_32.rc
PRODUCT_COPY_FILES += \
device/softwinner/tulip-common/wpa_supplicant_overlay.conf:/system/etc/wifi/wpa_supplicant_overlay.conf
PRODUCT_COPY_FILES += \
hardware/aw/audio/tulip/audio_policy.conf:system/etc/audio_policy.conf \
hardware/aw/audio/tulip/phone_volume.conf:system/etc/phone_volume.conf
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml
PRODUCT_COPY_FILES += \
device/softwinner/tulip-common/media_codecs.xml:system/etc/media_codecs.xml \
device/softwinner/tulip-common/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
device/softwinner/tulip-common/cts_media_codecs.xml:system/etc/cts_media_codecs.xml \
device/softwinner/tulip-common/init.sun50iw1p1.usb.rc:root/init.sun50iw1p1.usb.rc \
device/softwinner/tulip-common/configs/cfg-videoplayer.xml:system/etc/cfg-videoplayer.xml
PRODUCT_COPY_FILES += \
device/softwinner/common/config/android.hardware.sensor.temperature.ambient.xml:system/etc/permissions/android.hardware.sensor.temperature.ambient.xml
# video libs
include frameworks/av/media/libcedarc/libcdclist.mk
include frameworks/av/media/libcedarx/libcdxlist.mk
# egl
PRODUCT_COPY_FILES += \
device/softwinner/tulip-common/egl/egl.cfg:system/lib64/egl/egl.cfg \
device/softwinner/tulip-common/egl/lib/gralloc.tulip.so:system/lib/hw/gralloc.tulip.so \
device/softwinner/tulip-common/egl/lib/libGLES_mali.so:system/lib/egl/libGLES_mali.so \
device/softwinner/tulip-common/egl/lib64/gralloc.tulip.so:system/lib64/hw/gralloc.tulip.so \
device/softwinner/tulip-common/egl/lib64/libGLES_mali.so:system/lib64/egl/libGLES_mali.so
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=15 \
keyguard.no_require_sim=true
PRODUCT_PROPERTY_OVERRIDES += \
ro.kernel.android.checkjni=0
# 131072=0x20000 196608=0x30000
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=131072
# For mali GPU only
PRODUCT_PROPERTY_OVERRIDES += \
debug.hwui.render_dirty_regions=false
PRODUCT_PROPERTY_OVERRIDES += \
ro.sys.cputype=QuadCore-A64
# Enabling type-precise GC results in larger optimized DEX files. The
# additional storage requirements for ".odex" files can cause /system
# to overflow on some devices, so this is configured separately for
# each product.
PRODUCT_TAGS += dalvik.gc.type-precise
# if DISPLAY_BUILD_NUMBER := true then
# BUILD_DISPLAY_ID := $(BUILD_ID).$(BUILD_NUMBER)
# required by gms.
DISPLAY_BUILD_NUMBER := true
BUILD_NUMBER := $(shell date +%Y%m%d)
# widevine
BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
SECURE_OS_OPTEE := yes
#add widevine libraries
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=true \
ro.sys.widevine_oemcrypto_level=0
PRODUCT_PACKAGES += \
libdrmwvmplugin \
libwvm \
libWVStreamControlAPI_L${BOARD_WIDEVINE_OEMCRYPTO_LEVEL} \
libwvdrm_L${BOARD_WIDEVINE_OEMCRYPTO_LEVEL} \
libdrmdecrypt \
libwvdrmengine
ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1)
PRODUCT_PACKAGES += \
liboemcrypto
ifeq ($(SECURE_OS_OPTEE),yes)
PRODUCT_PACKAGES += \
libteec \
tee_supplicant
else
PRODUCT_PACKAGES += \
libtee_client
endif
PRODUCT_COPY_FILES += \
device/softwinner/common/optee_ta/a98befed-d679-ce4a-a3c827dcd51d21ed.ta:system/bin/a98befed-d679-ce4a-a3c827dcd51d21ed.ta \
device/softwinner/common/optee_ta/4d78d2ea-a631-70fb-aaa787c2b5773052.ta:system/bin/4d78d2ea-a631-70fb-aaa787c2b5773052.ta \
device/softwinner/common/optee_ta/e41f7029-c73c-344a-8c5bae90c7439a47.ta:system/bin/e41f7029-c73c-344a-8c5bae90c7439a47.ta
endif