140 lines
5.3 KiB
Makefile
140 lines
5.3 KiB
Makefile
$(call inherit-product, device/softwinner/tulip-common/tulip_64_bit.mk)
|
|
$(call inherit-product, device/softwinner/tulip-common/tulip-common.mk)
|
|
$(call inherit-product, frameworks/native/build/tablet-7in-xhdpi-2048-dalvik-heap.mk)
|
|
$(call inherit-product, hardware/realtek/bluetooth/firmware/rtlbtfw_cfg.mk)
|
|
$(call inherit-product, vendor/supersu/vendor.mk)
|
|
|
|
KERNEL_SRC_DIR ?= $(ANDROID_BUILD_TOP)/linux/kernel-tulip
|
|
KERNEL_CFG_NAME ?= sun50iw1p1smp_android
|
|
TARGET_KERNEL_ARCH ?= arm64
|
|
|
|
MALI_EXTRA_DEFINES := -DCONFIG_MALI400=1 -DCONFIG_MALI450=1 \
|
|
-DCONFIG_MALI400_PROFILING=1 -DCONFIG_MALI_DMA_BUF_MAP_ON_ATTACH \
|
|
-DCONFIG_MALI_DT
|
|
|
|
MALI_BUILD_FLAGS := CONFIG_MALI400=m CONFIG_MALI450=y CONFIG_MALI400_PROFILING=y \
|
|
CONFIG_MALI_DMA_BUF_MAP_ON_ATTACH=y CONFIG_MALI_DT=y \
|
|
EXTRA_DEFINES="$(MALI_EXTRA_DEFINES)"
|
|
|
|
# Check for availability of kernel source
|
|
ifneq ($(wildcard $(KERNEL_SRC_DIR)/Makefile),)
|
|
# Give precedence to TARGET_PREBUILT_KERNEL
|
|
ifeq ($(TARGET_PREBUILT_KERNEL),)
|
|
TARGET_KERNEL_BUILT_FROM_SOURCE := true
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(TARGET_KERNEL_BUILT_FROM_SOURCE), true)
|
|
# Use prebuilt kernel
|
|
ifeq ($(TARGET_PREBUILT_KERNEL),)
|
|
LOCAL_KERNEL := device/softwinner/tulip-chiphd/kernel
|
|
else
|
|
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
|
|
PRODUCT_COPY_FILES += $(TARGET_PREBUILT_KERNEL_MODULES)
|
|
endif
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_KERNEL):kernel
|
|
|
|
endif # TARGET_KERNEL_BUILT_FROM_SOURCE
|
|
|
|
PRODUCT_PACKAGES += \
|
|
hdmi_cec.tulip \
|
|
power.tulip \
|
|
input.evdev.default \
|
|
static_busybox \
|
|
ethtool
|
|
|
|
PRODUCT_PACKAGES += \
|
|
ESFileExplorer \
|
|
Bluetooth \
|
|
WIFIADB
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
|
device/softwinner/tulip-chiphd/overlay
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
device/softwinner/tulip-chiphd/init.sun50iw1p1.rc:root/init.sun50iw1p1.rc \
|
|
device/softwinner/tulip-chiphd/init.recovery.sun50iw1p1.rc:root/init.recovery.sun50iw1p1.rc \
|
|
device/softwinner/tulip-chiphd/ueventd.sun50iw1p1.rc:root/ueventd.sun50iw1p1.rc \
|
|
device/softwinner/tulip-chiphd/initialize_disk.sh:root/initialize_disk.sh \
|
|
device/softwinner/tulip-chiphd/configure_system.sh:system/bin/configure_system.sh \
|
|
device/softwinner/tulip-chiphd/recovery.fstab:recovery.fstab
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
device/softwinner/tulip-chiphd/twrp.fstab:recovery/root/etc/twrp.fstab
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
device/softwinner/tulip-chiphd/bluetooth/rtkbt.conf:system/etc/bluetooth/rtkbt.conf
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.camera.external.xml:system/etc/permissions/android.hardware.camera.external.xml \
|
|
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
|
|
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
|
|
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
|
|
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
|
|
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
|
|
frameworks/native/data/etc/android.hardware.hdmi.cec.xml:system/etc/permissions/android.hardware.hdmi.cec.xml \
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
device/softwinner/tulip-chiphd/configs/camera.cfg:system/etc/camera.cfg \
|
|
device/softwinner/tulip-chiphd/configs/gsensor.cfg:system/usr/gsensor.cfg \
|
|
device/softwinner/tulip-chiphd/configs/media_profiles.xml:system/etc/media_profiles.xml \
|
|
device/softwinner/tulip-chiphd/configs/sunxi-keyboard.kl:system/usr/keylayout/sunxi-keyboard.kl \
|
|
device/softwinner/tulip-chiphd/configs/sunxi_ir_recv.kl:system/usr/keylayout/sunxi_ir_recv.kl \
|
|
device/softwinner/tulip-chiphd/configs/gt9xxf_ts.idc:system/usr/idc/gt9xxf_ts.idc
|
|
|
|
#PRODUCT_COPY_FILES += \
|
|
device/softwinner/tulip-chiphd/hawkview/sensor_list_cfg.ini:system/etc/hawkview/sensor_list_cfg.ini
|
|
|
|
# bootanimation
|
|
PRODUCT_COPY_FILES += \
|
|
device/softwinner/tulip-chiphd/media/bootanimation.zip:system/media/bootanimation.zip
|
|
|
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
|
|
ro.boot.console=console
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.product.8723b_bt.used=true
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
persist.fw.force_adoptable=1 \
|
|
persist.sys.usb.config=mtp,adb \
|
|
ro.adb.secure=0 \
|
|
rw.logger=0 \
|
|
persist.sys.root_access=2 # Allow ADB access only
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.product.firmware=v1.2.5
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.zygote.disable_gl_preload=false
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.spk_dul.used=false \
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
persist.ota.server.ip=ota.pine64.org
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
persist.sys.timezone=America/Los_Angeles \
|
|
persist.sys.country=US \
|
|
persist.sys.language=en
|
|
|
|
#define virtual mouse key
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.softmouse.left.code=16 \
|
|
ro.softmouse.right.code=17 \
|
|
ro.softmouse.top.code=11 \
|
|
ro.softmouse.bottom.code=14 \
|
|
ro.softmouse.leftbtn.code=13 \
|
|
ro.softmouse.midbtn.code=-1 \
|
|
ro.softmouse.rightbtn.code=-1
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.software.app_widgets.xml:system/etc/permissions/android.software.app_widgets.xml
|
|
|
|
# Some CTS tests will be skipped based on what the initial API level that
|
|
# shipped on device was.
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.product.first_api_level=21
|