This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
BoardConfigCommon.mk
157 lines (122 loc) · 4.64 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
#
# Copyright 2013 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.
#
# Architecture
TARGET_ARCH := x86
TARGET_ARCH_VARIANT := atom
TARGET_CPU_ABI := x86
TARGET_BOARD_PLATFORM := clovertrail
TARGET_BOOTLOADER_BOARD_NAME := clovertrail
ENABLE_CPUSETS := true
ENABLE_SCHEDBOOST := true
MALLOC_SVELTE := true
# Legacy libraries support
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true
LINKER_FORCED_SHIM_LIBS := /system/vendor/lib/libmultidisplay.so|libshim_mds.so:/system/vendor/lib/libsepdrm.so|libshim_drm.so:/system/vendor/bin/gpsd|libshim_gps.so:/system/vendor/lib/hw/camera.vendor.santos10.so|libshim_camera.so
# Houdini
TARGET_CPU_ABI2 := armeabi-v7a
TARGET_CPU_ABI_LIST_32_BIT := x86,armeabi-v7a,armeabi
BUILD_ARM_FOR_X86 := true
# Specific headers
TARGET_BOARD_KERNEL_HEADERS := device/samsung/santos10-common/kernel-headers
TARGET_SPECIFIC_HEADER_PATH := device/samsung/santos10-common/include
# Inline kernel building
TARGET_KERNEL_SOURCE := kernel/samsung/santos10
TARGET_KERNEL_CONFIG := lineage_santos10_defconfig
KERNEL_TOOLCHAIN_PREFIX := x86_64-linux-android-
BOARD_KERNEL_IMAGE_NAME := bzImage
LZMA_RAMDISK_TARGETS := boot,recovery
# Filesystem
TARGET_KERNEL_HAVE_EXFAT := true
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 20971520
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 20971520
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2474639360
BOARD_USERDATAIMAGE_PARTITION_SIZE := 12654198784 # 12654215168 - 16384
BOARD_CACHEIMAGE_PARTITION_SIZE := 367001600
BOARD_FLASH_BLOCK_SIZE := 1024
# Use samsung specific code
BOARD_VENDOR := samsung
TARGET_POWERHAL_VARIANT := samsung
TARGET_AUDIOHAL_VARIANT := samsung
# Init
TARGET_INIT_VENDOR_LIB := libinit_santos10
# OpenGL
TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true
# Video
TARGET_DISABLE_CURSOR_LAYER := true
# Audio (HDMI)
BOARD_USES_ALSA_AUDIO := true
BOARD_USES_TINY_ALSA_AUDIO := true
# Multimedia
ENABLE_IMG_GRAPHICS := true
BUILD_WITH_FULL_STAGEFRIGHT := true
BOARD_USES_WRS_OMXIL_CORE := true
INTEL_VA := true
BOARD_USES_MRST_OMX := true
#https://groups.google.com/forum/#!topic/android-building/U_IkbMv-_MY
ASUS_ZENFONE2_LP_BLOBS := true
BOARD_GLOBAL_CFLAGS += -DASUS_ZENFONE2_LP_BLOBS
# Camera
TARGET_HAS_LEGACY_CAMERA_HAL1 := true
# Wifi
BOARD_WLAN_DEVICE := bcmdhd
WPA_SUPPLICANT_VERSION := VER_0_8_X
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/firmware/bcmdhd_sta.bin"
WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/bcmdhd_apsta.bin"
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_CUSTOM_BT_CONFIG := device/samsung/santos10-common/bluetooth/vnd_santos10.txt
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/samsung/santos10-common/bluetooth
# Sensors
BOARD_USE_LEGACY_SENSORS_FUSION := true
# CMHW
BOARD_HARDWARE_CLASS += device/samsung/santos10-common/cmhw
# RIL
BOARD_PROVIDES_LIBRIL := true
BOARD_MODEM_TYPE := xmm7260
BOARD_MODEM_NEEDS_VIDEO_CALL_FIELD := true
BOARD_RIL_CLASS := ../../../device/samsung/santos10-common/ril
# Security
BOARD_SEPOLICY_DIRS += device/samsung/santos10-common/sepolicy
# Charger mode
WITH_CM_CHARGER := false
BOARD_CHARGER_ENABLE_SUSPEND := true
BOARD_NO_CHARGER_LED := true
BOARD_HEALTHD_CUSTOM_CHARGER_RES := device/samsung/santos10-common/charger/images
# Recovery
TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
ifneq ($(RECOVERY_VARIANT),twrp)
TARGET_RECOVERY_FSTAB := device/samsung/santos10-common/rootdir/fstab.santos10
else
TW_THEME := landscape_hdpi
TARGET_RECOVERY_FSTAB := device/samsung/santos10-common/rootdir/recovery.fstab
TW_NO_EXFAT_FUSE := true
TW_INCLUDE_NTFS_3G := true
BOARD_UMS_LUNFILE := "/sys/class/android_usb/f_mass_storage/lun/file"
BOARD_HAS_NO_REAL_SDCARD := true
RECOVERY_SDCARD_ON_DATA := true
TW_NO_REBOOT_BOOTLOADER := true
TW_HAS_DOWNLOAD_MODE := true
TW_INCLUDE_CRYPTO := true
TW_EXCLUDE_SUPERSU := true
endif