forked from Evervolv/android_device_htc_bravo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfig.mk
135 lines (109 loc) · 4.05 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Copyright (C) 2009 The Android Open Source 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).
#
# WARNING: This line must come *before* including the proprietary
# variant, so that it gets overwritten by the parent (which goes
# against the traditional rules of inheritance).
# Camera
USE_CAMERA_STUB := false
ifeq ($(USE_CAMERA_STUB),false)
BOARD_CAMERA_LIBRARIES := libcamera
endif
SK_SUPPORT_LEGACY_SETCONFIG := true
# inherit from the proprietary version
-include vendor/htc/bravo/BoardConfigVendor.mk
# inherit common defines for all qsd8k devices
include device/htc/qsd8k-common/BoardConfigCommon.mk
TARGET_BOOTLOADER_BOARD_NAME := bravo
BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive androidboot.hardware=bravo
BOARD_KERNEL_BASE := 0x20000000
BOARD_KERNEL_NEW_PPPOX := true
TARGET_KERNEL_CONFIG := bravo_defconfig
TARGET_RAMDISK_COMPRESSION := xz --check=crc32 --arm --lzma2=dict=1MiB
# to enable the GPS HAL
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := bravo
# AMSS version to use for GPS
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 3200
# Pull all dictionaries
TARGET_USE_KEYBOARD := international
# Use legacy touchscreen
BOARD_USE_LEGACY_TOUCHSCREEN := true
# Hacks
TARGET_NO_NETD_AF_INET := true
BOARD_USE_LEGACY_TRACKPAD := true
BOARD_NO_WIFI_HAL := true
BOARD_HAVE_PRE_KITKAT_AUDIO_POLICY_BLOB := true
# USB
BOARD_USE_USB_MASS_STORAGE_SWITCH := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/class/android_usb/android0/f_mass_storage/lun0/file
BOARD_UMS_LUNFILE := "/sys/class/android_usb/android0/f_mass_storage/lun0/file"
# ART
WITH_DEXPREOPT := true
WITH_DEXPREOPT_BOOT_IMG_ONLY := true
MALLOC_IMPL := dlmalloc
TARGET_CPU_SMP := false
# Fonts
EXTENDED_FONT_FOOTPRINT := false
# Slim down fonts
REMOVE_PRODUCT_PACKAGES += NotoSansSC-Regular.otf NotoSansJP-Regular.otf NotoSansTC-Regular.otf
# Remove packages
REMOVE_PRODUCT_PACKAGES += CMUpdater CyanogenSetupWizard PhotoTable PhotoPhase PhaseBeam HoloSpiralWallpaper LiveWallpapers
# Bootanimation
TARGET_BOOTANIMATION_PRELOAD := true
TARGET_BOOTANIMATION_TEXTURE_CACHE := true
# Recovery
TARGET_RECOVERY_FSTAB := device/htc/bravo/fstab.bravo
# TWRP Flags
DEVICE_RESOLUTION := 480x800
BOARD_HAS_NO_REAL_SDCARD := true
TW_EXCLUDE_SU := true
TW_EXCLUDE_ENCRYPTED_BACKUPS := true
TW_NO_SCREEN_BLANK := true
TW_USE_TOOLBOX := true
HAVE_SELINUX := true
# # cat /proc/mtd
# dev: size erasesize name
# mtd0: 000a0000 00020000 "misc"
# mtd1: 00500000 00020000 "recovery"
# mtd2: 00280000 00020000 "boot"
# mtd3: 0fa00000 00020000 "system"
# mtd4: 02800000 00020000 "cache"
# mtd5: 093a0000 00020000 "userdata"
BOARD_BOOTIMAGE_PARTITION_SIZE := 3433024 # 3.3M
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 7151616 # > 7M
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1048576000 # 1000M
#BOARD_USERDATAIMAGE_PARTITION_SIZE := 1572864000 # 1500M
BOARD_FLASH_BLOCK_SIZE := 4096
TARGET_USERIMAGES_USE_EXT4 := true
#BLOCK_BASED_OTA := false
# SELinux
include device/qcom/sepolicy/sepolicy.mk
# Legacy ril (for CM)
LEGACY_RIL := true
BOARD_USES_LEGACY_RIL := true
# Legacy Patches
USE_SET_METADATA := false
BOARD_USES_LEGACY_MMAP := true
TARGET_QCOM_LEGACY_OMX := true
QCOM_NO_SECURE_PLAYBACK := true
# Kernel target toolchain
TARGET_GCC_VERSION_ARM := 5.3
KERNEL_TOOLCHAIN_PREFIX := arm-eabi-
KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/$(HOST_OS)-x86/arm/arm-eabi-5.3/bin