-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathBoardConfigCommon.mk
263 lines (202 loc) · 6.86 KB
/
BoardConfigCommon.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
LOCAL_PATH := device/samsung/gts2-common
### PLATFORM
TARGET_ARCH := arm
TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true
BOARD_VENDOR := samsung
# CPU
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv8-a
TARGET_CPU_VARIANT := cortex-a53
# Platform
TARGET_BOARD_PLATFORM := exynos5
TARGET_SLSI_VARIANT := bsp
TARGET_SOC := exynos5433
# big.LITTLE load balancing
#ENABLE_CPUSETS := true
TARGET_BOOTLOADER_BOARD_NAME := universal5433
# Audio
USE_XML_AUDIO_POLICY_CONF := 1
# Binder
TARGET_USES_64_BIT_BINDER := true
### FILESYSTEM
BOARD_BOOTIMAGE_PARTITION_SIZE := 14680064
BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3145728000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 27657240576
BOARD_FLASH_BLOCK_SIZE := 4096
BOARD_HAS_LARGE_FILESYSTEM := true
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_KERNEL_HAVE_EXFAT := true
TARGET_KERNEL_HAVE_NTFS := true
# Extended Filesystem Support
TARGET_EXFAT_DRIVER := sdfat
BOARD_RAMDISK_USE_XZ := true
BOARD_ROOT_EXTRA_FOLDERS += efs
TARGET_FS_CONFIG_GEN := $(LOCAL_PATH)/config.fs
BUILD_BROKEN_DUP_RULES := true
### KERNEL
BOARD_KERNEL_BASE := 0x10000000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_SEPARATED_DT := true
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100
TARGET_CUSTOM_DTBTOOL := dtbhtoolExynos
BOARD_CUSTOM_BOOTIMG := true
BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk
TARGET_KERNEL_SOURCE := kernel/samsung/universal5433
KERNEL_TOOLCHAIN_PREFIX := arm-linux-androideabi-
BOARD_KERNEL_IMAGE_NAME := zImage
TARGET_LINUX_KERNEL_VERSION := 3.10
# Ant+
BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"
# Audio
BOARD_USE_ALP_AUDIO := true
# Audio HAL variant
TARGET_AUDIOHAL_VARIANT := samsung
# Bootanimation
TARGET_BOOTANIMATION_PRELOAD := true
TARGET_BOOTANIMATION_TEXTURE_CACHE := true
TARGET_SCREEN_HEIGHT := 2048
TARGET_SCREEN_WIDTH := 1536
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_CUSTOM_BT_CONFIG := $(LOCAL_PATH)/bluetooth/libbt_vndcfg.txt
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
# Camera
BOARD_USE_SAMSUNG_CAMERAFORMAT_NV21 := true
# Charger/Healthd
BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging
CHARGING_ENABLED_PATH := /sys/class/power_supply/battery/batt_lp_charging
# Dexpreopt
ifeq ($(HOST_OS),linux)
ifneq ($(TARGET_BUILD_VARIANT),eng)
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= false
WITH_DEXPREOPT := true
endif
endif
# Display
TARGET_SCREEN_DENSITY := 320
# FIMG2D
BOARD_USES_SKIA_FIMGAPI := true
BOARD_USES_NEON_BLITANTIH := true
BOARD_USES_FIMGAPI_V4L2 := false
# Fingerprint
TARGET_SEC_FP_CALL_NOTIFY_ON_CANCEL := true
TARGET_SEC_FP_USES_PERCENTAGE_SAMPLES := true
TARGET_SEC_FP_CALL_CANCEL_ON_ENROLL_COMPLETION := true
# Fonts
EXTENDED_FONT_FOOTPRINT := true
# Graphics
USE_OPENGL_RENDERER := true
# Low memory devices
MALLOC_SVELTE := true
BOARD_USES_EXYNOS5_COMMON_GRALLOC := true
# (G)SCALER
BOARD_USES_SCALER := true
BOARD_USES_DT := true
# Gralloc
TARGET_USES_GRALLOC1_ADAPTER := true
# ION
TARGET_USES_ION := true
# Hidl
DEVICE_MANIFEST_FILE := $(LOCAL_PATH)/manifest.xml
PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
# Lineage hardware
ifneq ($(findstring lineage, $(TARGET_PRODUCT)),)
JAVA_SOURCE_OVERLAYS := \
org.lineageos.hardware|$(LOCAL_PATH)/lineagehw|**/*.java
endif
# HDMI
BOARD_HDMI_INCAPABLE := true
# Hidl
DEVICE_MANIFEST_FILE := device/samsung/gts2-common/manifest.xml
# HWCServices
#BOARD_USES_HWC_SERVICES := true
SKIP_DISPLAY_BLANK_CTRL := true
# Include path
TARGET_SPECIFIC_HEADER_PATH += $(LOCAL_PATH)/include
# Legacy BLOB Support
TARGET_PROCESS_SDK_VERSION_OVERRIDE := \
ro.product.first_api_level=21
# Lights
TARGET_PROVIDES_LIBLIGHT := false
# Enable memfd - needed otherwise you get crashes like Jit thread pool >>> system_server <<<
TARGET_HAS_MEMFD_BACKPORT := true
# Samsung OpenMAX Video
BOARD_USE_STOREMETADATA := true
BOARD_USE_METADATABUFFERTYPE := true
BOARD_USE_DMA_BUF := true
BOARD_USE_ANB_OUTBUF_SHARE := true
BOARD_USE_IMPROVED_BUFFER := true
BOARD_USE_NON_CACHED_GRAPHICBUFFER := true
BOARD_USE_GSC_RGB_ENCODER := true
BOARD_USE_CSC_HW := false
BOARD_USE_QOS_CTRL := false
BOARD_USE_S3D_SUPPORT := true
BOARD_USE_TIMESTAMP_REORDER_SUPPORT := false
BOARD_USE_DEINTERLACING_SUPPORT := false
BOARD_USE_VP8ENC_SUPPORT := true
BOARD_USE_HEVCDEC_SUPPORT := true
BOARD_USE_HEVCENC_SUPPORT := false
BOARD_USE_HEVC_HWIP := true
BOARD_USE_VP9DEC_SUPPORT := false
BOARD_USE_VP9ENC_SUPPORT := false
BOARD_USE_CUSTOM_COMPONENT_SUPPORT := true
BOARD_USE_VIDEO_EXT_FOR_WFD_HDCP := false
BOARD_USE_SINGLE_PLANE_IN_DRM := false
# Power
TARGET_POWERHAL_VARIANT := samsung
# Properties
TARGET_SYSTEM_PROP += $(LOCAL_PATH)/system.prop
# Properties
#TARGET_VENDOR_PROP_OVERRIDE := true
#TARGET_VENDOR_PROP += device/samsung/gts2-common/vendor.prop
# Recovery
BOARD_HAS_DOWNLOAD_MODE := true
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/etc/fstab.universal5433
# SELinux
#BOARD_SEPOLICY_DIRS += device/samsung/gts2-common/sepolicy
BOARD_SEPOLICY_VERS := $(PLATFORM_SDK_VERSION).0
BOARD_SEPOLICY_DIRS += device/samsung/gts2-common/sepolicy-rt
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/samsung/gts2-common/sepolicy-rt/private
SELINUX_IGNORE_NEVERALLOWS := true
# Sensors
#TARGET_NO_SENSOR_PERMISSION_CHECK := true
# Shims
TARGET_LD_SHIM_LIBS := \
/system/vendor/lib/libbauthserver.so|libbauthtzcommon_shim.so \
/system/vendor/lib/libexynoscamera.so|libexynoscamera_shim.so \
/system/vendor/bin/gpsd|libshim_gpsd.so \
/system/bin/mediaserver|/vendor/lib/libstagefright_shim.so
# Legacy BLOB Support
TARGET_PROCESS_SDK_VERSION_OVERRIDE += \
/system/vendor/bin/hw/rild=27
# Network Routing
TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE := true
# WFD
BOARD_USES_WFD := true
# WiFi
BOARD_HAVE_SAMSUNG_WIFI := true
BOARD_WLAN_DEVICE := bcmdhd
WPA_SUPPLICANT_VERSION := VER_0_8_X
WPA_SUPPLICANT_USE_HIDL := true
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path"
WIFI_DRIVER_FW_PATH_STA := "/vendor/etc/wifi/bcmdhd_sta.bin"
WIFI_DRIVER_FW_PATH_AP := "/vendor/etc/wifi/bcmdhd_apsta.bin"
#WIFI_BAND := 802_11_ABG
WPA_SUPPLICANT_USE_HIDL := true
# WiFi Configs
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/vendor/etc/wifi/wpa_supplicant_overlay.conf \
$(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/vendor/etc/wifi/p2p_supplicant_overlay.conf
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)