/
BoardConfig.mk
146 lines (128 loc) · 4.01 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
136
137
138
139
140
141
142
143
144
145
146
#
# Copyright (C) 2015 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 variable is set first, so it can be overridden
# by BoardConfigVendor.mk
TARGET_SPECIFIC_HEADER_PATH := device/hp/phobos/include
# Architecture
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a15
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := dalmore
TARGET_NO_BOOTLOADER := true
# Platform
TARGET_BOARD_PLATFORM := tegra4
# Kernel
BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive
TARGET_KERNEL_SOURCE := kernel/hp/phobos
TARGET_KERNEL_CONFIG := cyanogenmod_phobos_defconfig
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR ?= device/hp/phobos/bluetooth
# Graphics
USE_OPENGL_RENDERER := true
SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
VSYNC_EVENT_PHASE_OFFSET_NS := 7500000
# Include an expanded selection of fonts
EXTENDED_FONT_FOOTPRINT := true
# Malloc
MALLOC_IMPL := dlmalloc
# This device includes a partition TRD that mounts to vendor/app/ we may
# be able to use this as a vendor partition to store proprietary files and firmware to save system space
# Size 367001600 roughly 350mb
# Partition
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 805306368
BOARD_USERDATAIMAGE_PARTITION_SIZE := 5385486336
BOARD_FLASH_BLOCK_SIZE := 4096
# Pre-L blob support
COMMON_GLOBAL_CFLAGS += \
-DADD_LEGACY_MEMORY_DEALER_CONSTRUCTOR_SYMBOL \
-DADD_LEGACY_ACQUIRE_BUFFER_SYMBOL
# Recovery
BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_23x41.h\"
COMMON_GLOBAL_CFLAGS += -DNO_SECURE_DISCARD
TARGET_RECOVERY_DEVICE_DIRS += device/hp/phobos
TARGET_RECOVERY_FSTAB := device/hp/phobos/rootdir/etc/fstab.dalmore
# SELinux
BOARD_SEPOLICY_DIRS += \
device/hp/phobos/sepolicy
#BOARD_SEPOLICY_UNION += \
# app.te \
# bluetooth.te \
# bootanim.te \
# cpuvoltcap.te \
# debuggerd.te \
# device.te \
# domain.te \
# drmserver.te \
# dumpstate.te \
# file_contexts \
# file.te \
# genfs_contexts \
# gpload.te \
# gpsd.te \
# healthd.te \
# hostapd.te \
# init.te \
# installd.te \
# mediaserver.te \
# netd.te \
# platform_app.te \
# property_contexts \
# property.te \
# service_contexts \
# set_hwui.te \
# setup_fs.te \
# shell.te \
# surfaceflinger.te \
# system_app.te \
# system_server.te \
# tee.te \
# te_macros \
# ueventd.te \
# untrusted_app.te \
# usb.te \
# usdwatchdog.te \
# ussrd.te \
# ussr_setup.te \
# vold.te \
# wifi_loader.te \
# wl18xx.te \
# wpa.te \
# zygote.te
# Wifi
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_WLAN_DEVICE := bcmdhd
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
WIFI_DRIVER_FW_PATH_AP := "/system/vendor/firmware/bcm4334/fw_bcmdhd_apsta.bin"
WIFI_DRIVER_FW_PATH_STA := "/system/vendor/firmware/bcm4334/fw_bcmdhd.bin"
TW_THEME := landscape_hdpi
BOARD_HAS_NO_REAL_SDCARD := true
RECOVERY_GRAPHICS_USE_LINELENGTH := true
RECOVERY_SDCARD_ON_DATA := true
TW_BRIGHTNESS_PATH := "/sys/class/backlight/pwm-backlight/brightness"
TW_NO_BATT_PERCENT := true
TW_NO_USB_STORAGE := true