forked from zuk-devs/android_device_zuk_msm8996-common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
443 changed files
with
92,898 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# | ||
# Copyright (C) 2016 The CyanogenMod Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# This contains the module build definitions for the hardware-specific | ||
# components for this device. | ||
# | ||
# As much as possible, those components should be built unconditionally, | ||
# with device-specific names to avoid collisions, to avoid device-specific | ||
# bitrot and build breakages. Building a component unconditionally does | ||
# *not* include it on all devices, so it is safe even with hardware-specific | ||
# components. | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
ifeq ($(TARGET_DEVICE),z2_plus) | ||
|
||
include $(call all-makefiles-under,$(LOCAL_PATH)) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_MODULE := wifi_symlinks | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE_CLASS := FAKE | ||
LOCAL_MODULE_SUFFIX := -timestamp | ||
|
||
include $(BUILD_SYSTEM)/base_rules.mk | ||
|
||
$(LOCAL_BUILT_MODULE): ACTUAL_INI_FILE := /system/etc/wifi/WCNSS_qcom_cfg.ini | ||
$(LOCAL_BUILT_MODULE): WCNSS_INI_SYMLINK := $(TARGET_OUT)/etc/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini | ||
|
||
$(LOCAL_BUILT_MODULE): ACTUAL_MAC_FILE := /persist/wlan_mac.bin | ||
$(LOCAL_BUILT_MODULE): WCNSS_MAC_SYMLINK := $(TARGET_OUT)/etc/firmware/wlan/qca_cld/wlan_mac.bin | ||
|
||
|
||
$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/Android.mk | ||
$(LOCAL_BUILT_MODULE): | ||
$(hide) echo "Making symlinks for wifi" | ||
$(hide) mkdir -p $(dir $@) | ||
$(hide) mkdir -p $(dir $(WCNSS_INI_SYMLINK)) | ||
$(hide) rm -rf $@ | ||
$(hide) rm -rf $(WCNSS_INI_SYMLINK) | ||
$(hide) ln -sf $(ACTUAL_INI_FILE) $(WCNSS_INI_SYMLINK) | ||
$(hide) rm -rf $(WCNSS_MAC_SYMLINK) | ||
$(hide) ln -sf $(ACTUAL_MAC_FILE) $(WCNSS_MAC_SYMLINK) | ||
$(hide) touch $@ | ||
|
||
include $(call all-makefiles-under,$(LOCAL_PATH)) | ||
|
||
IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so | ||
|
||
IMS_SYMLINKS := $(addprefix $(TARGET_OUT)/app/ims/lib/arm64/,$(notdir $(IMS_LIBS))) | ||
$(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE) | ||
@echo "IMS lib link: $@" | ||
@mkdir -p $(dir $@) | ||
@rm -rf $@ | ||
$(hide) ln -sf /system/vendor/lib64/$(notdir $@) $@ | ||
|
||
ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS) | ||
|
||
include device/zuk/z2_plus/tftp.mk | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
# Copyright (C) 2016 The CyanogenMod Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# | ||
# This file sets variables that control the way modules are built | ||
# thorughout the system. It should not be used to conditionally | ||
# disable makefiles (the proper mechanism to control what gets | ||
# included in a build is to use PRODUCT_PACKAGES in a product | ||
# definition file). | ||
# | ||
|
||
# Boldly go. | ||
USE_CLANG_PLATFORM_BUILD := true | ||
|
||
TARGET_OTA_ASSERT_DEVICE := z2,Z2,z2plus,z2_plus | ||
|
||
PLATFORM_PATH := device/zuk/z2_plus | ||
|
||
TARGET_SPECIFIC_HEADER_PATH := $(PLATFORM_PATH)/include | ||
|
||
BOARD_VENDOR := zuk | ||
|
||
# CM building options | ||
CM_DEVELOPER := Fedor917 | ||
CM_BUILDTYPE := UNOFFICIAL | ||
|
||
# Bootloader | ||
TARGET_BOOTLOADER_BOARD_NAME := msm8996 | ||
TARGET_NO_BOOTLOADER := true | ||
|
||
# Platform | ||
TARGET_BOARD_PLATFORM := msm8996 | ||
TARGET_BOARD_PLATFORM_GPU := qcom-adreno530 | ||
|
||
# Architecture | ||
TARGET_ARCH := arm64 | ||
TARGET_ARCH_VARIANT := armv8-a | ||
TARGET_CPU_ABI := arm64-v8a | ||
TARGET_CPU_ABI2 := | ||
TARGET_CPU_VARIANT := kryo | ||
|
||
TARGET_2ND_ARCH := arm | ||
TARGET_2ND_ARCH_VARIANT := armv7-a-neon | ||
TARGET_2ND_CPU_ABI := armeabi-v7a | ||
TARGET_2ND_CPU_ABI2 := armeabi | ||
TARGET_2ND_CPU_VARIANT := cortex-a53 | ||
|
||
ENABLE_CPUSETS := true | ||
|
||
TARGET_USES_64_BIT_BINDER := true | ||
|
||
# Kernel | ||
BOARD_KERNEL_CMDLINE := console=tty60,115200,n8 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=16M@0-0xffffffff androidboot.selinux=permissive | ||
BOARD_KERNEL_BASE := 0x80000000 | ||
BOARD_KERNEL_PAGESIZE := 4096 | ||
BOARD_KERNEL_TAGS_OFFSET := 0x00000100 | ||
BOARD_RAMDISK_OFFSET := 0x01000000 | ||
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb | ||
TARGET_KERNEL_APPEND_DTB := true | ||
TARGET_KERNEL_ARCH := arm64 | ||
TARGET_KERNEL_HEADER_ARCH := arm64 | ||
TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- | ||
TARGET_KERNEL_CONFIG := cyanogenmod_z2_defconfig | ||
TARGET_KERNEL_SOURCE := kernel/zuk/msm8996 | ||
|
||
# QCOM hardware | ||
BOARD_USES_QCOM_HARDWARE := true | ||
|
||
BLOCK_BASED_OTA := true | ||
|
||
# ANT+ | ||
BOARD_ANT_WIRELESS_DEVICE := "qualcomm-uart" | ||
|
||
# Audio | ||
USE_CUSTOM_AUDIO_POLICY := 1 | ||
BOARD_USES_ALSA_AUDIO := true | ||
AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true | ||
AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true | ||
AUDIO_FEATURE_ENABLED_ANC_HEADSET := true | ||
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true | ||
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true | ||
AUDIO_FEATURE_ENABLED_DEV_ARBI := true | ||
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true | ||
AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true | ||
AUDIO_FEATURE_ENABLED_FLUENCE := true | ||
AUDIO_FEATURE_ENABLED_HFP := true | ||
AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true | ||
AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true | ||
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true | ||
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true | ||
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true | ||
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true | ||
|
||
# Bluetooth | ||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(PLATFORM_PATH)/bluetooth | ||
BOARD_HAS_QCA_BT_ROME := true | ||
BOARD_HAVE_BLUETOOTH := true | ||
BOARD_HAVE_BLUETOOTH_QCOM := true | ||
QCOM_BT_USE_BTNV := true | ||
QCOM_BT_USE_SMD_TTY := true | ||
|
||
# Camera | ||
BOARD_QTI_CAMERA_32BIT_ONLY := true | ||
USE_DEVICE_SPECIFIC_CAMERA := true | ||
|
||
# Charger | ||
BOARD_CHARGER_ENABLE_SUSPEND := true | ||
BOARD_CHARGER_DISABLE_INIT_BLANK := true | ||
BOARD_HAL_STATIC_LIBRARIES += libhealthd.zuk | ||
|
||
# CM Hardware | ||
BOARD_HARDWARE_CLASS += $(PLATFORM_PATH)/cmhw | ||
TARGET_TAP_TO_WAKE_NODE := "/sys/devices/virtual/touch/tp_dev/gesture_on" | ||
|
||
# CNE and DPM | ||
TARGET_LDPRELOAD := libNimsWrap.so | ||
BOARD_USES_QCNE := true | ||
|
||
# Crypto | ||
TARGET_HW_DISK_ENCRYPTION := true | ||
|
||
# Display | ||
TARGET_CONTINUOUS_SPLASH_ENABLED := true | ||
TARGET_USES_C2D_COMPOSITION := true | ||
TARGET_USES_ION := true | ||
TARGET_USES_OVERLAY := true | ||
USE_OPENGL_RENDERER := true | ||
MAX_EGL_CACHE_KEY_SIZE := 12*1024 | ||
MAX_EGL_CACHE_SIZE := 2048*1024 | ||
OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so | ||
MAX_VIRTUAL_DISPLAY_DIMENSION := 4096 | ||
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true | ||
|
||
# GPS | ||
TARGET_NO_RPC := true | ||
USE_DEVICE_SPECIFIC_GPS := true | ||
|
||
# Init | ||
TARGET_INIT_VENDOR_LIB := libinit_z2_plus | ||
TARGET_RECOVERY_DEVICE_MODULES := libinit_z2_plus | ||
TARGET_PLATFORM_DEVICE_BASE := /devices/soc/ | ||
|
||
# Keystore | ||
TARGET_PROVIDES_KEYMASTER := true | ||
|
||
# Lights | ||
TARGET_PROVIDES_LIBLIGHT := true | ||
|
||
# Partitions | ||
BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 | ||
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 | ||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864 | ||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3154116608 | ||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 57436708864 | ||
BOARD_FLASH_BLOCK_SIZE := 262144 | ||
|
||
# RIL | ||
TARGET_RIL_VARIANT := caf | ||
PROTOBUF_SUPPORTED := true | ||
|
||
# Recovery | ||
TARGET_RECOVERY_FSTAB := device/zuk/z2_plus/rootdir/etc/recovery/recovery.fstab | ||
TARGET_USERIMAGES_USE_EXT4 := true | ||
TARGET_USERIMAGES_USE_F2FS := true | ||
TW_INCLUDE_CRYPTO := true | ||
BOARD_HAS_NO_REAL_SDCARD := true | ||
RECOVERY_SDCARD_ON_DATA := true | ||
BOARD_HAS_LARGE_FILESYSTEM := true | ||
DEVICE_RESOLUTION := 1080x1920 | ||
HAVE_SELINUX := true | ||
TARGET_RECOVERY_PIXEL_FORMAT := "BGBX_8888" | ||
|
||
# SELinux | ||
include device/qcom/sepolicy/sepolicy.mk | ||
|
||
BOARD_SEPOLICY_DIRS += $(PLATFORM_PATH)/sepolicy | ||
|
||
# Sensors | ||
USE_SENSOR_MULTI_HAL := true | ||
|
||
# Wifi | ||
BOARD_HAS_QCOM_WLAN := true | ||
BOARD_HAS_QCOM_WLAN_SDK := true | ||
BOARD_WLAN_DEVICE := qcwcn | ||
BOARD_HOSTAPD_DRIVER := NL80211 | ||
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) | ||
HOSTAPD_VERSION := VER_0_8_X | ||
BOARD_WPA_SUPPLICANT_DRIVER := NL80211 | ||
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) | ||
WIFI_DRIVER_FW_PATH_AP := "ap" | ||
WIFI_DRIVER_FW_PATH_STA := "sta" | ||
WIFI_DRIVER_FW_PATH_P2P := "p2p" | ||
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wlan.ko" | ||
WIFI_DRIVER_MODULE_NAME := "wlan" | ||
WPA_SUPPLICANT_VERSION := VER_0_8_X | ||
|
||
|
||
# Timeservice | ||
BOARD_USES_QC_TIME_SERVICES := true | ||
|
||
# inherit from the proprietary version | ||
-include vendor/zuk/z2_plus/BoardConfigVendor.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# android_device_zuk_z2_plus | ||
Device configuration for ZUK Z2 Plus by Fedor917 | ||
For CM13 and RR |
Oops, something went wrong.