aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--BoardConfig.mk15
-rw-r--r--cm.dependencies4
-rw-r--r--device.mk7
3 files changed, 24 insertions, 2 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 0977f38..0bcea80 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -23,6 +23,9 @@
# Boldly go.
USE_CLANG_PLATFORM_BUILD := true
+# Inherit from oppo-common
+-include device/oppo/common/BoardConfigCommon.mk
+
TARGET_OTA_ASSERT_DEVICE := z2,Z2,z2plus,z2_plus
PLATFORM_PATH := device/zuk/z2_plus
@@ -142,6 +145,15 @@ OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
MAX_VIRTUAL_DISPLAY_DIMENSION := 4096
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
+# Enable dexpreopt to speed boot time
+ifeq ($(HOST_OS),linux)
+ ifeq ($(call match-word-in-list,$(TARGET_BUILD_VARIANT),user),true)
+ ifeq ($(WITH_DEXPREOPT),)
+ WITH_DEXPREOPT := true
+ endif
+ endif
+endif
+
# GPS
TARGET_NO_RPC := true
USE_DEVICE_SPECIFIC_GPS := true
@@ -171,6 +183,9 @@ PROTOBUF_SUPPORTED := true
# Recovery
TARGET_RECOVERY_FSTAB := device/zuk/z2_plus/rootdir/etc/recovery/recovery.fstab
+TARGET_RECOVERY_UI_LIB := librecovery_ui_msm
+TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_msm
+TARGET_RELEASETOOLS_EXTENSIONS := device/qcom/common
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
TW_INCLUDE_CRYPTO := true
diff --git a/cm.dependencies b/cm.dependencies
index 13aeb72..ee87359 100644
--- a/cm.dependencies
+++ b/cm.dependencies
@@ -1,4 +1,8 @@
[
+ {
+ "repository": "android_device_oppo_common",
+ "target_path": "device/oppo/common"
+ },
{
"remote": "cm",
"repository": "android_device_qcom_common",
diff --git a/device.mk b/device.mk
index 7a320a1..6d66f2c 100644
--- a/device.mk
+++ b/device.mk
@@ -135,8 +135,8 @@ PRODUCT_PACKAGES += \
Snap \
# Gestures
-PRODUCT_PACKAGES += \
- com.cyanogenmod.keyhandler
+#PRODUCT_PACKAGES += \
+# com.cyanogenmod.keyhandler
# Charger
PRODUCT_PACKAGES += \
@@ -292,3 +292,6 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \
$(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat
+
+# Inherit from oppo-common
+$(call inherit-product, device/oppo/common/common.mk)