-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBoardConfig.mk
151 lines (134 loc) · 4.82 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
147
148
149
150
# Copyright (C) 2010 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).
#
# DoPa (2014/02/11) - a fusion of grouper's & randomblame's TakTik BoardConfig.mk
# with various mods
TARGET_BOARD_PLATFORM := tegra
TARGET_TEGRA_VERSION := t30
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_SMP := true
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a9
NEED_WORKAROUND_CORTEX_A9_745320 := true
# Image info
# - userdata is actually 5972688896 but has been reduced by 16384
# to allow room for a footer needed to support encryption
# - commenting-out some entries prevents them from being created
BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 8388608
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 805306368
#BOARD_CACHEIMAGE_PARTITION_SIZE := 536870912
#BOARD_USERDATAIMAGE_PARTITION_SIZE := 5972672512
# patches to AOSP Recovery use TARGET_USERIMAGES_USE_F2FS
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
BOARD_FLASH_BLOCK_SIZE := 4096
# Bootloader & Kernel
TARGET_NO_BOOTLOADER := true
TARGET_PREBUILT_KERNEL := device/hisense/m470/prebuilt/kernel/kernel
BOARD_KERNEL_CMDLINE := androidboot.selinux=enforcing
BOARD_HAL_STATIC_LIBRARIES := \
libdumpstate.m470 \
libhealthd.m470
# Audio
BOARD_USES_GENERIC_AUDIO := false
BOARD_USES_ALSA_AUDIO := true
# BT
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR ?= device/hisense/m470/bluetooth
# Crypto
BOARD_HAS_TF_CRYPTO_SST := true
# Recovery
# comment-out RECOVERY_VARIANT to build the AOSP version of recovery
RECOVERY_VARIANT := twrp
#
ifeq ($(RECOVERY_VARIANT),twrp)
TARGET_RECOVERY_INITRC := device/hisense/m470/prebuilt/twrp/init.rc
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
RECOVERY_SDCARD_ON_DATA := true
TW_EXCLUDE_DEFAULT_USB_INIT := true
TW_THEME := portrait_hdpi
TW_EXCLUDE_SUPERSU := true
TW_NO_EXFAT_FUSE := true
TW_INCLUDE_NTFS_3G := true
TW_INCLUDE_L_CRYPTO := true
# re-include to update path to recovery_variant
include $(BUILD_SYSTEM)/pathmap.mk
else
TARGET_RECOVERY_UI_LIB := librecovery_ui_m470
endif
# the OTA packaging scripts don't like twrp.fstab so we have to include
# the standard fstab regardless of which recovery is being built
TARGET_RECOVERY_FSTAB := device/hisense/m470/prebuilt/ramdisk/fstab.m470
# Sensors
BOARD_USES_GENERIC_INVENSENSE := false
# Video
USE_OPENGL_RENDERER := true
BOARD_EGL_CFG := vendor/hisense/m470/prebuilt/lib/egl/egl.cfg
BOARD_HAVE_PIXEL_FORMAT_INFO := true
TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true
# Wifi
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_WLAN_DEVICE := bcmdhd
WIFI_DRIVER_MODULE_NAME := "bcmdhd"
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcmdhd.ko"
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
WIFI_DRIVER_FW_PATH_STA := "/system/vendor/firmware/bcm4330/fw_bcmdhd.bin"
WIFI_DRIVER_FW_PATH_AP := "/system/vendor/firmware/bcm4330/fw_bcmdhd_apsta.bin"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/vendor/firmware/bcm4330/fw_bcmdhd.bin nvram_path=/system/etc/nvram.txt iface_name=wlan0"
# SELinux
BOARD_SEPOLICY_DIRS += \
device/hisense/m470/sepolicy
BOARD_SEPOLICY_UNION += \
app.te \
btmacwriter.te \
device.te \
drmserver.te \
file.te \
file_contexts \
genfs_contexts \
gpsd.te \
healthd.te \
init.te \
init_shell.te \
kernel.te \
keystore.te \
logcat.te \
logd.te \
mediaserver.te \
netd.te \
nvcpud.te \
sdcardd.te \
service.te \
service_contexts \
surfaceflinger.te \
system_app.te \
system_server.te \
ueventd.te \
untrusted_app.te \
vold.te \
zygote.te