/
BoardConfig.mk~
102 lines (84 loc) · 3.23 KB
/
BoardConfig.mk~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Copyright (C) 2014 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).
#
TARGET_OTA_ASSERT_DEVICE := a11,a11chl,a11ul
BOARD_VENDOR := htc
# inherit from the proprietary version
-include vendor/htc/a11chlspr/BoardConfigVendor.mk
#Bootloader
TARGET_BOOTLOADER_BOARD_NAME := msm8226
TARGET_NO_BOOTLOADER := true
#Platform
TARGET_BOARD_PLATFORM := msm8226
TARGET_BOARD_PLATFORM_GPU := qcom-adreno305
USE_OPENGL_RENDERER := false
#Architecture
TARGET_ARCH := arm
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a7
TARGET_CPU_SMP := true
ARCH_ARM_HAVE_TLS_REGISTER := true
#Flags
COMMON_GLOBAL_CFLAGS += -DHTCLOG
#Kernel
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=qcom user_debug=31 echi-hcd.park=3 zcache
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 2048
# TARGET_KERNEL_CONFIG := a11chl_defconfig
TARGET_KERNEL_CONFIG := cm_a11_defconfig
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02008000 --tags_offset 0x01e00000
BOARD_CUSTOM_BOOTIMG_MK := device/htc/a11chlspr/mkbootimg.mk #Test
TARGET_KERNEL_SOURCE := kernel/htc/msm8974 #Test
# QCOM hardware
BOARD_USES_QCOM_HARDWARE := true
# Audio
AUDIO_FEATURE_DISABLED_MULTI_VOICE_SESSIONS := true
BOARD_USES_ALSA_AUDIO := true
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_QCOM := true
BLUETOOTH_HCI_USE_MCT := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/htc/a11chlspr/bluetooth
# fix this up by examining /proc/emmc on a running device
# if I totally borked this, refer to other devices
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x01000000 #16777216
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x01000000 #16777216
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x80000000 #2147483648
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x48000000 #1207959552
BOARD_FLASH_BLOCK_SIZE := 512
# Bring this back if necessary - currently set in the Kernel area to
# build from source for A5
# TARGET_PREBUILT_KERNEL := device/htc/a11chlspr/kernel
BOARD_HAS_NO_SELECT_BUTTON := true
USE_CAMERA_STUB := true
#TWRP config:
DEVICE_RESOLUTION := 480x854
TW_NO_USB_STORAGE := true
TW_NO_SCREEN_BLANK := true
TW_MAX_BRIGHTNESS := 255
TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness
TW_INTERNAL_STORAGE_PATH := "/data/media"
TW_INTERNAL_STORAGE_MOUNT_POINT := "data"
TW_EXTERNAL_STORAGE_PATH := "/external_sd"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_sd"
TW_EXTERNAL_STORAGE_PATH := "/usb-otg"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "usb-otg"