Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I0d07ce8c018c29c516d0268fea9251da14a58d7d
- Loading branch information
0 parents
commit 8b9f3af
Showing
174 changed files
with
60,741 additions
and
0 deletions.
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,86 @@ | ||
# | ||
# Copyright 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) | ||
|
||
ifneq ($(filter pme,$(TARGET_DEVICE)),) | ||
|
||
include $(call all-makefiles-under,$(LOCAL_PATH)) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
ADSP_IMAGES := \ | ||
adsp.b00 adsp.b01 adsp.b02 adsp.b03 adsp.b04 adsp.b05 adsp.b06 adsp.b07 \ | ||
adsp.b08 adsp.b09 adsp.b10 adsp.b11 adsp.mdt adpver.cfg | ||
|
||
ADSP_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/firmware/,$(notdir $(ADSP_IMAGES))) | ||
$(ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE) | ||
@echo "ADSP firmware link: $@" | ||
@mkdir -p $(dir $@) | ||
@rm -rf $@ | ||
$(hide) ln -sf /firmware/adsp/$(notdir $@) $@ | ||
|
||
ALL_DEFAULT_INSTALLED_MODULES += $(ADSP_SYMLINKS) | ||
|
||
MBA_IMAGES := \ | ||
mba.b00 mba.b01 mba.b02 mba.b03 mba.b04 mba.b05 mba.mbn mba.mdt | ||
|
||
MBA_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/firmware/,$(notdir $(MBA_IMAGES))) | ||
$(MBA_SYMLINKS): $(LOCAL_INSTALLED_MODULE) | ||
@echo "MBA firmware link: $@" | ||
@mkdir -p $(dir $@) | ||
@rm -rf $@ | ||
$(hide) ln -sf /firmware/radio/$(notdir $@) $@ | ||
|
||
ALL_DEFAULT_INSTALLED_MODULES += $(MBA_SYMLINKS) | ||
|
||
MISC_IMAGES := \ | ||
qdsp6m.qdb radiover.cfg version.cfg | ||
|
||
MISC_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/firmware/,$(notdir $(MISC_IMAGES))) | ||
$(MISC_SYMLINKS): $(LOCAL_INSTALLED_MODULE) | ||
@echo "Misc firmware link: $@" | ||
@mkdir -p $(dir $@) | ||
@rm -rf $@ | ||
$(hide) ln -sf /firmware/radio/$(notdir $@) $@ | ||
|
||
ALL_DEFAULT_INSTALLED_MODULES += $(MISC_SYMLINKS) | ||
|
||
MODEM_IMAGES := \ | ||
modem.b00 modem.b01 modem.b02 modem.b03 modem.b04 modem.b05 \ | ||
modem.b06 modem.b07 modem.b08 modem.b09 modem.b10 modem.b11 \ | ||
modem.b12 modem.b13 modem.b15 modem.b16 modem.b17 modem.b18 \ | ||
modem.b19 modem.b20 modem.mdt | ||
|
||
MODEM_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/firmware/,$(notdir $(MODEM_IMAGES))) | ||
$(MODEM_SYMLINKS): $(LOCAL_INSTALLED_MODULE) | ||
@echo "Modem firmware link: $@" | ||
@mkdir -p $(dir $@) | ||
@rm -rf $@ | ||
$(hide) ln -sf /firmware/radio/$(notdir $@) $@ | ||
|
||
ALL_DEFAULT_INSTALLED_MODULES += $(MODEM_SYMLINKS) | ||
|
||
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,158 @@ | ||
# | ||
# 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. | ||
# | ||
|
||
BOARD_VENDOR := htc | ||
|
||
DEVICE_PATH := device/htc/pme | ||
|
||
TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include | ||
|
||
# Asserts | ||
TARGET_OTA_ASSERT_DEVICE := pme,pmeuhl,pmewhl,pmewl,pmeul,htc_pmeuhl,htc_pmewhl,htc_pmewl,htc_pmeul | ||
|
||
# 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 | ||
|
||
TARGET_BOARD_PLATFORM := msm8996 | ||
TARGET_BOARD_PLATFORM_GPU := qcom-adreno530 | ||
|
||
TARGET_USES_64_BIT_BINDER := true | ||
|
||
# Bootloader | ||
TARGET_BOOTLOADER_BOARD_NAME := MSM8996 | ||
TARGET_NO_BOOTLOADER := true | ||
|
||
# Kernel | ||
BOARD_KERNEL_CMDLINE := ehci-hcd.park=3 androidboot.bootdevice=7464900.sdhci lpm_levels.sleep_disabled=1 cma=16M@0-0xffffffff androidboot.hardware=qcom androidboot.selinux=permissive | ||
TARGET_KERNEL_APPEND_DTB := true | ||
BOARD_KERNEL_BASE := 0x80000000 | ||
BOARD_KERNEL_PAGESIZE := 4096 | ||
BOARD_KERNEL_TAGS_OFFSET := 0x02000000 | ||
BOARD_RAMDISK_OFFSET := 0x02200000 | ||
|
||
TARGET_KERNEL_ARCH := arm64 | ||
TARGET_KERNEL_SOURCE := kernel/htc/msm8996 | ||
TARGET_KERNEL_CONFIG := cm_pme_defconfig | ||
TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- | ||
TARGET_USES_UNCOMPRESSED_KERNEL := true | ||
|
||
# Audio | ||
AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true | ||
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true | ||
AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true | ||
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true | ||
AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY := true | ||
BOARD_USES_ALSA_AUDIO := true | ||
USE_CUSTOM_AUDIO_POLICY := 1 | ||
|
||
# Bluetooth | ||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth | ||
BOARD_HAVE_BLUETOOTH := true | ||
BOARD_HAVE_BLUETOOTH_QCOM := true | ||
BLUETOOTH_HCI_USE_MCT := true | ||
|
||
# Camera | ||
TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY := libcamera_parameters_ext | ||
USE_DEVICE_SPECIFIC_CAMERA := true | ||
|
||
# CMHW | ||
BOARD_USES_CYANOGEN_HARDWARE := true | ||
|
||
# Display | ||
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 | ||
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := 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 | ||
|
||
HAVE_ADRENO_SOURCE:= false | ||
OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so | ||
|
||
# Encryption | ||
TARGET_HW_DISK_ENCRYPTION := true | ||
|
||
# Filesystem | ||
BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64) | ||
TARGET_USERIMAGES_USE_EXT4 := true | ||
TARGET_USERIMAGES_USE_F2FS := true | ||
BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 | ||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864 | ||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3640655872 | ||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 26323451904 | ||
|
||
# Init | ||
TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/ | ||
TARGET_UNIFIED_DEVICE := true | ||
TARGET_INIT_VENDOR_LIB := libinit_pme | ||
TARGET_RECOVERY_DEVICE_MODULES := libinit_pme | ||
|
||
# Keymaster | ||
TARGET_PROVIDES_KEYMASTER := true | ||
|
||
# Lights | ||
TARGET_PROVIDES_LIBLIGHT := true | ||
|
||
# NFC | ||
BOARD_NFC_CHIPSET := pn548 | ||
|
||
# Power | ||
TARGET_POWERHAL_VARIANT := qcom | ||
|
||
# Properties | ||
TARGET_SYSTEM_PROP := $(DEVICE_PATH)/system.prop | ||
|
||
# Qualcomm | ||
BOARD_USES_QCOM_HARDWARE := true | ||
BOARD_USES_QC_TIME_SERVICES := true | ||
|
||
# Recovery | ||
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom | ||
|
||
# RIL | ||
BOARD_PROVIDES_LIBRIL := true | ||
|
||
# SELinux | ||
include device/qcom/sepolicy/sepolicy.mk | ||
BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy | ||
|
||
# Wifi | ||
WPA_SUPPLICANT_VERSION := VER_0_8_X | ||
BOARD_WLAN_DEVICE := bcmdhd | ||
BOARD_WPA_SUPPLICANT_DRIVER := NL80211 | ||
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) | ||
BOARD_HOSTAPD_DRIVER := NL80211 | ||
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) | ||
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" | ||
WIFI_DRIVER_FW_PATH_AP := "/system/etc/firmware/fw_bcmdhd_apsta.bin" | ||
WIFI_DRIVER_FW_PATH_P2P := "/system/etc/firmware/fw_bcmdhd.bin" | ||
WIFI_DRIVER_FW_PATH_STA := "/system/etc/firmware/fw_bcmdhd.bin" | ||
|
||
# inherit from the proprietary version | ||
-include vendor/htc/pme/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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Unified Device Tree for HTC 10 (pme) | ||
=========================================== | ||
|
||
The HTC 10 (codenamed _"pme"_) is a flagship smartphone from HTC. | ||
It was released in April 2016. | ||
|
||
Basic | Spec Sheet | ||
-------:|:------------------------- | ||
CPU | Quad-core 2.15/1.6 GHz Kyro | ||
Chipset | Qualcomm MSM8996 Snapdragon 820 | ||
GPU | Adreno 530 | ||
Memory | 4 GB RAM | ||
Shipped Android Version | 6.0.1 | ||
Storage | 32/64 GB | ||
MicroSD | Up to 200 GB | ||
Battery | Li-Ion 3000 mAh battery | ||
Display | 1440 x 2560 pixels, 5.2 inches (~565 ppi pixel density) | ||
Camera | 12 MP, 4000 x 3000 pixels, autofocus, LED flash, OIS | ||
|
||
Copyright 2016 - The CyanogenMod Project. | ||
|
||
![HTC 10](http://cdn2.gsmarena.com/vv/pics/htc/htc-10-5.jpg "HTC 10") |
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,30 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_SHARED_LIBRARIES := \ | ||
liblog libutils libtinyalsa | ||
|
||
LOCAL_CFLAGS += \ | ||
-DPLATFORM_MSM8916 \ | ||
-DRECORD_PLAY_CONCURRENCY \ | ||
-DMULTI_VOICE_SESSION_ENABLED | ||
|
||
LOCAL_C_INCLUDES := \ | ||
external/tinyalsa/include \ | ||
hardware/libhardware/include \ | ||
$(call project-path-for,qcom-audio)/hal | ||
|
||
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include | ||
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr | ||
|
||
LOCAL_SRC_FILES := \ | ||
rt5501.c \ | ||
tfa9887.c \ | ||
audio_amplifier.c | ||
|
||
LOCAL_MODULE := audio_amplifier.msm8996 | ||
LOCAL_MODULE_RELATIVE_PATH := hw | ||
LOCAL_MODULE_TAGS := optional | ||
|
||
include $(BUILD_SHARED_LIBRARY) |
Oops, something went wrong.