-
Notifications
You must be signed in to change notification settings - Fork 9
/
BoardConfig.mk
148 lines (120 loc) · 3.81 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
#
# Copyright (C) 2011 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.
#
TARGET_BOARD_INFO_FILE := device/friendly-arm/nanopi3/board-info.txt
TARGET_BOARD_PLATFORM := slsiap
TARGET_BOOTLOADER_BOARD_NAME := nanopi3
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
ARCH_ARM_HAVE_TLS_REGISTER := true
# chip variation
TARGET_CPU_VARIANT2 := s5p6818
TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := true
TARGET_NO_RADIOIMAGE := true
TARGET_BOOTLOADER_IS_2ND := false
TARGET_PROVIDES_INIT_RC := true
# recovery
TARGET_RECOVERY_FSTAB := device/friendly-arm/nanopi3/recovery.fstab
TARGET_RELEASETOOLS_EXTENSIONS := device/friendly-arm/nanopi3
TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_nanopi3
# certificate
PRODUCT_DEFAULT_DEV_CERTIFICATE := vendor/friendly-arm/nanopi3/security/releasekey
# opengl
BOARD_EGL_CFG := device/friendly-arm/nanopi3/egl.cfg
USE_OPENGL_RENDERER := true
IGN_EGL_BUFFERCOUNT := true
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
# audio
BOARD_USES_GENERIC_AUDIO := false
BOARD_USES_ALSA_AUDIO := false
BOARD_USES_CARD_SPDIF := false
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/friendly-arm/nanopi3/bluetooth
# camera
BOARD_HAS_CAMERA := true
BOARD_CAMERA_BACK:= true
# v4l2
BOARD_USES_HDMI := true
BOARD_USES_RESOL := true
# sensor
BOARD_HAS_SENSOR := false
BOARD_SENSOR_TYPE := general
# external ffmpeg plugin
-include device/friendly-arm/nanopi3/BoardConfigFFmpeg.mk
# Nexell Dual Audio
EN_DUAL_AUDIO := false
# wifi
BOARD_WIFI_VENDOR := ap6212
# Wi-Fi related defines
ifeq ($(BOARD_WIFI_VENDOR),ap6212)
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_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 := "/vendor/firmware/fw_bcm43438a0.bin"
WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcm43438a0_apsta.bin"
endif
# RIL
BOARD_HAS_RIL := false
# HWC
SLSIAP_HWC_VERSION := 2
# sepolicy
BOARD_SEPOLICY_DIRS := \
device/friendly-arm/nanopi3/sepolicy
BOARD_SEPOLICY_REPLACE := \
app.te
BOARD_SEPOLICY_UNION := \
file_contexts \
genfs_contexts \
adbd.te \
boardinit.te \
device.te \
domain.te \
file.te \
mediaserver.te \
surfaceflinger.te \
system_server.te \
init.te \
kernel.te \
servicemanager.te \
netd.te \
healthd.te \
sdcardd.te
# ART
ART_USE_HSPACE_COMPACT := true
WITH_DEXPREOPT := true
# for google gms
#-include vendor/google/gapps/BoardConfigPartial.mk
# packaging for emmc, sd
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 # 64MB
BOARD_BOOTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 790626304 # 754MB
BOARD_USERDATAIMAGE_PARTITION_SIZE := 2466250752 # 2.3GB
BOARD_CACHEIMAGE_PARTITION_SIZE := 448790528 # 428MB
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_FLASH_BLOCK_SIZE := 4096