Commit 9c9929d6 authored by SnowCatPDA's avatar SnowCatPDA
Browse files

ADD Android 5 and Android 6 support

parent 71374b8f
Loading
Loading
Loading
Loading

X5PRO/BoardConfig.mk

100644 → 100755
+0 −0

File mode changed from 100644 to 100755.

+2 −1
Original line number Diff line number Diff line
@@ -106,7 +106,8 @@ LCM_FAKE_WIDTH = 0
LCM_HEIGHT = 1280
LCM_WIDTH = 720
LEGACY_DFO_GEN = no
LINUX_KERNEL_VERSION = kernel-3.18
#LINUX_KERNEL_VERSION = kernel-3.18
#LINUX_KERNEL_VERSION = kernel-3.10
MAXIM_SPEAKER_SUPPORT = no
MD32_TOOLCHAIN_MODULE = IPDesigner/12R2.36-64
MD5_SIZE = 0x01600000
+7 −28
Original line number Diff line number Diff line
########################################################
# inherit 6752 platform
$(call inherit-product, device/mediatek/mt6735/device.mk)

########################################################
# GSENSOR
@@ -33,7 +36,8 @@ DEVICE_PACKAGE_OVERLAYS += device/mediatek/common/overlay/navbar

# Add proprietary binary files
PRODUCT_COPY_FILES += \
    $(call find-copy-subdir-files,*,$(LOCAL_PATH)/system,system)
	$(call find-copy-subdir-files,*,$(LOCAL_PATH)/system,system) \
	$(call find-copy-subdir-files,*,$(LOCAL_PATH)/system-$(THIS_ANDROID_VERSION),system)

# Add proprietary files to ram-fs for boot.img
PRODUCT_COPY_FILES += \
@@ -75,32 +79,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
	ro.sf.lcd_density=320 \
	qemu.hw.mainkeys=1

########################################################
# inherit 6752 platform
$(call inherit-product, device/mediatek/mt6735/device.mk)
$(call inherit-product-if-exists, vendor/vanzo/libs/$(MTK_BASE_PROJECT)/device-vendor.mk)
$(call inherit-product-if-exists, vendor/DOOGEE/libs/$(MTK_BASE_PROJECT)/device-vendor.mk)

########################################################
# GAPPS apps
GAPPS_VARIANT := pico
PRODUCT_PACKAGES += PrebuiltGmail \
                    GoogleTTS \
                    Maps \
                    Drive \
                    TranslatePrebuilt \
                    GoogleHome \
                    PrebuiltDeskClockGoogle \
                    CalendarGooglePrebuilt \
                    LatinImeGoogle \
                    Chrome \
                    Music2 \
                    Music2 \
                    Newsstand \
                    YouTube

#PRODUCT_PACKAGES += 

#                    GoogleEarth \

$(call inherit-product, vendor/google/build/opengapps-packages.mk)
include $(LOCAL_PATH)/prebuilds.mk
+23 −3
Original line number Diff line number Diff line
# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)

ifeq (5.1, $(PLATFORM_VERSION))
THIS_ANDROID_VERSION :=5x
endif
ifeq (6.0, $(PLATFORM_VERSION))
THIS_ANDROID_VERSION :=6x
endif

# Set target and base project for flavor build
MTK_TARGET_PROJECT := $(subst full_,,$(TARGET_PRODUCT))
MTK_BASE_PROJECT := X5PRO
@@ -21,9 +28,22 @@ PRODUCT_MODEL := X5PRO
PRODUCT_POLICY := android.policy_phone
PRODUCT_LOCALES := en_US zh_CN zh_TW es_ES pt_BR ru_RU fr_FR de_DE tr_TR vi_VN ms_MY in_ID th_TH it_IT ar_EG hi_IN bn_IN ur_PK fa_IR pt_PT nl_NL el_GR hu_HU tl_PH ro_RO cs_CZ ko_KR km_KH iw_IL my_MM pl_PL es_US bg_BG hr_HR lv_LV lt_LT sk_SK uk_UA de_AT da_DK fi_FI nb_NO sv_SE en_GB hy_AM zh_HK et_EE ja_JP kk_KZ sr_RS sl_SI ca_ES

PRELOADER_TARGET_PRODUCT ?= X5PRO_6735m
LK_PROJECT ?= X5PRO_6735m
TRUSTY_PROJECT ?= X5PRO_6735m
#PRELOADER_TARGET_PRODUCT ?= X5PRO_6735m
#LK_PROJECT ?= X5PRO_6735m
#TRUSTY_PROJECT ?= X5PRO_6735m

ifeq ($(TARGET_BUILD_VARIANT), eng)
KERNEL_DEBUG := _debug
endif

KERNEL_DEFCONFIG ?= X5PRO_6735m$(KERNEL_DEBUG)_defconfig

ifeq (5x, $(THIS_ANDROID_VERSION))
LINUX_KERNEL_VERSION = kernel-3.10
endif
ifeq (6x, $(THIS_ANDROID_VERSION))
LINUX_KERNEL_VERSION = kernel-3.18
endif

# overlay has priorities. high <-> low.
DEVICE_PACKAGE_OVERLAYS += device/DOOGEE/$(MTK_BASE_PROJECT)/overlay
+0 −6
Original line number Diff line number Diff line

include $(LOCAL_PATH)/full_X5PRO.mk
ifeq ($(TARGET_BUILD_VARIANT), eng)
KERNEL_DEFCONFIG ?= X5PRO_6735m_35u_i_m_debug_defconfig
else
KERNEL_DEFCONFIG ?= X5PRO_6735m_35u_i_m_defconfig
endif
Loading